本文整理汇总了Python中DLLM.DLLMGeom.wing_param.Wing_param.get_thetaY方法的典型用法代码示例。如果您正苦于以下问题:Python Wing_param.get_thetaY方法的具体用法?Python Wing_param.get_thetaY怎么用?Python Wing_param.get_thetaY使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类DLLM.DLLMGeom.wing_param.Wing_param
的用法示例。
在下文中一共展示了Wing_param.get_thetaY方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: f
# 需要导入模块: from DLLM.DLLMGeom.wing_param import Wing_param [as 别名]
# 或者: from DLLM.DLLMGeom.wing_param.Wing_param import get_thetaY [as 别名]
wing_param.convert_to_design_variable("span", (10.0, 50.0))
wing_param.convert_to_design_variable("sweep", (0.0, 40.0))
wing_param.convert_to_design_variable("break_percent", (20.0, 40.0))
wing_param.convert_to_design_variable("root_chord", (5.0, 7.0))
wing_param.convert_to_design_variable("break_chord", (3.0, 5.0))
wing_param.convert_to_design_variable("tip_chord", (1.0, 2.0))
wing_param.convert_to_design_variable("root_height", (1.0, 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.build_linear_airfoil(OC, AoA0=-2.0, Cm0=-0.1, set_as_ref=True)
wing_param.build_airfoils_from_ref()
wing_param.update()
print wing_param
thetaY0 = wing_param.get_thetaY()
print "thetaY0 shape", thetaY0.shape
print "thetaY0=", thetaY0
DLLM = DLLMSolver("Simple", wing_param, OC)
DLLM.run_direct()
iAoA = DLLM.get_iAoA()
def f(x):
wing_param.set_thetaY(x)
func = DLLM.comp_R(iAoA)
return func
def df(x):