當前位置: 首頁>>代碼示例>>Python>>正文


Python Wing_param.get_thetaY方法代碼示例

本文整理匯總了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):
開發者ID:FrancoisGallard,項目名稱:DLLM,代碼行數:33,代碼來源:valid_dpR_dpthetaY.py


注:本文中的DLLM.DLLMGeom.wing_param.Wing_param.get_thetaY方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。