From b27281b7f5750bbc277bc1fd32ab37717a86430b Mon Sep 17 00:00:00 2001 From: Su Tian Date: Sat, 6 Feb 2021 22:20:35 -0500 Subject: [PATCH] 0206 --- dakota_interface.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/dakota_interface.py b/dakota_interface.py index 04e2f8a..e35afa8 100644 --- a/dakota_interface.py +++ b/dakota_interface.py @@ -84,8 +84,8 @@ def process(fn_json_args): # Location of the origin relative to a ref point # e.g., leading edge of the airfoil - origin_ref_2 = interface_args['origin_ref_2'] - sc_ref_2 = ms.shear_center[1] + origin_ref_2 + # origin_ref_2 = interface_args['origin_ref_2'] + # sc_ref_2 = ms.shear_center[1] + origin_ref_2 xo2 = 0 xo3 = 0 @@ -121,6 +121,11 @@ def process(fn_json_args): results[rn].function = r elif type(interface_args['post_process']).__name__ == 'dict': + # Location of the origin relative to a ref point + # e.g., leading edge of the airfoil + origin_ref_2 = interface_args['origin_ref_2'] + sc_ref_2 = ms.shear_center[1] + origin_ref_2 + for k, v in interface_args['post_process'].items(): # print('') # print('v[0]:', v[0])