本文整理匯總了Python中DLLM.DLLMGeom.wing_param.Wing_param.add_AoA_design_variable方法的典型用法代碼示例。如果您正苦於以下問題:Python Wing_param.add_AoA_design_variable方法的具體用法?Python Wing_param.add_AoA_design_variable怎麽用?Python Wing_param.add_AoA_design_variable使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類DLLM.DLLMGeom.wing_param.Wing_param
的用法示例。
在下文中一共展示了Wing_param.add_AoA_design_variable方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Python代碼示例。
示例1: f
# 需要導入模塊: from DLLM.DLLMGeom.wing_param import Wing_param [as 別名]
# 或者: from DLLM.DLLMGeom.wing_param.Wing_param import add_AoA_design_variable [as 別名]
wing_param.set_value('root_chord',6.1)
wing_param.set_value('break_chord',4.6)
wing_param.set_value('tip_chord',1.5)
wing_param.set_value('root_height',1.28)
wing_param.set_value('break_height',0.97)
wing_param.set_value('tip_height',0.33)
wing_param.convert_to_design_variable('span',(10.,50.))
wing_param.convert_to_design_variable('sweep',(0.,40.))
wing_param.convert_to_design_variable('break_percent',(20.,40.))
wing_param.convert_to_design_variable('root_chord',(5.,7.))
wing_param.convert_to_design_variable('break_chord',(3.,5.))
wing_param.convert_to_design_variable('tip_chord',(1.,2.))
wing_param.convert_to_design_variable('root_height',(1.,1.5))
wing_param.convert_to_design_variable('break_height',(0.8,1.2))
wing_param.convert_to_design_variable('tip_height',(0.2,0.5))
wing_param.add_AoA_design_variable(3.5,(-10.,10.))
wing_param.build_linear_airfoil(OC, AoA0=-2., Cm0=-0.1, set_as_ref=True)
wing_param.build_airfoils_from_ref()
wing_param.update()
print wing_param
x0=wing_param.get_dv_array()
print 'dv array shape',x0.shape
print 'dv_array=',x0
def f(x):
wing_param.update_from_x_list(x)
DLLM = DLLMSolver('Simple',wing_param,OC)
DLLM.run_direct()
DLLM.run_post()