当前位置: 首页>>代码示例>>Python>>正文


Python Wing_param.build_meta_airfoil方法代码示例

本文整理汇总了Python中DLLM.DLLMGeom.wing_param.Wing_param.build_meta_airfoil方法的典型用法代码示例。如果您正苦于以下问题:Python Wing_param.build_meta_airfoil方法的具体用法?Python Wing_param.build_meta_airfoil怎么用?Python Wing_param.build_meta_airfoil使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在DLLM.DLLMGeom.wing_param.Wing_param的用法示例。


在下文中一共展示了Wing_param.build_meta_airfoil方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。

示例1: DLLMSolver

# 需要导入模块: from DLLM.DLLMGeom.wing_param import Wing_param [as 别名]
# 或者: from DLLM.DLLMGeom.wing_param.Wing_param import build_meta_airfoil [as 别名]
wing_param.build_wing()
wing_param.set_value('span',2.392)  #34.1
wing_param.set_value('sweep',26.7)
wing_param.set_value('break_percent',33.) #33.
wing_param.set_value('root_chord',0.806)  #6.1
wing_param.set_value('break_chord',0.689)
wing_param.set_value('tip_chord',0.451) #1.5
wing_param.set_value('root_height',0.0782)
wing_param.set_value('break_height',0.0668)
wing_param.set_value('tip_height',0.0438)
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',(0.7,1.))
wing_param.convert_to_design_variable('break_height',(0.45,0.8))
wing_param.convert_to_design_variable('tip_height',(0.10,0.26))
wing_param.build_linear_airfoil(OC, AoA0=-2., Cm0=-0.1, set_as_ref=True)
wing_param.build_meta_airfoil(OC, '../ONERA_D.xml', relative_thickness=.0, camber=0., Sref=1., Lref=1., sweep=.0, set_as_ref=True)
wing_param.build_airfoils_from_ref()
wing_param.update()

print wing_param

DLLM = DLLMSolver('M6wing',wing_param,OC)
DLLM.run_direct()
DLLM.run_post()
#DLLM.run_adjoint()
开发者ID:regislebrun,项目名称:DLLM,代码行数:32,代码来源:onera_M6.py

示例2: DLLMSolver

# 需要导入模块: from DLLM.DLLMGeom.wing_param import Wing_param [as 别名]
# 或者: from DLLM.DLLMGeom.wing_param.Wing_param import build_meta_airfoil [as 别名]
wing_param.build_wing()
wing_param.set_value('span',34.1)  #34.1
wing_param.set_value('sweep',34.)
wing_param.set_value('break_percent',23.) #33.
wing_param.set_value('root_chord',5.4)  #6.1
wing_param.set_value('break_chord',4.6)
wing_param.set_value('tip_chord',1.2) #1.5
wing_param.set_value('root_height',.98)
wing_param.set_value('break_height',0.70)
wing_param.set_value('tip_height',0.18)
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',(0.7,1.))
wing_param.convert_to_design_variable('break_height',(0.45,0.8))
wing_param.convert_to_design_variable('tip_height',(0.10,0.26))
#wing_param.build_linear_airfoil(OC, AoA0=-2., Cm0=-0.1, set_as_ref=True)
wing_param.build_meta_airfoil(OC, '../MetaModelCleaning.xml', relative_thickness=.12, camber=0., Sref=1., Lref=1., sweep=.0, set_as_ref=True)
wing_param.build_airfoils_from_ref()
wing_param.update()

print wing_param

DLLM = DLLMSolver('Meta',wing_param,OC)
DLLM.run_direct()
DLLM.run_post()

开发者ID:regislebrun,项目名称:DLLM,代码行数:31,代码来源:test_meta_airfoil.py


注:本文中的DLLM.DLLMGeom.wing_param.Wing_param.build_meta_airfoil方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。