本文整理汇总了Python中DLLM.DLLMGeom.wing_param.Wing_param.get_AR方法的典型用法代码示例。如果您正苦于以下问题:Python Wing_param.get_AR方法的具体用法?Python Wing_param.get_AR怎么用?Python Wing_param.get_AR使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类DLLM.DLLMGeom.wing_param.Wing_param
的用法示例。
在下文中一共展示了Wing_param.get_AR方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: DLLMTargetCl
# 需要导入模块: from DLLM.DLLMGeom.wing_param import Wing_param [as 别名]
# 或者: from DLLM.DLLMGeom.wing_param.Wing_param import get_AR [as 别名]
OC.set_P0(101325.)
OC.set_humidity(0.)
OC.compute_atmosphere()
wing_param=Wing_param('test_param',geom_type='Broken',n_sect=20)
wing_param.build_wing()
wing_param.set_value('span',40.)
wing_param.set_value('sweep',0.)
wing_param.set_value('break_percent',33.)
wing_param.set_value('root_chord',1.0)
wing_param.set_value('break_chord',1.0)
wing_param.set_value('tip_chord',1.0)
wing_param.set_value('root_height',0.15)
wing_param.set_value('break_height',0.15)
wing_param.set_value('tip_height',0.15)
wing_param.build_linear_airfoil(OC, AoA0=0., Cm0=0.0, set_as_ref=True)
wing_param.build_airfoils_from_ref()
wing_param.update()
print wing_param
print 'AR=',wing_param.get_AR()
DLLM = DLLMTargetCl('Rectsweep0',wing_param,OC)
DLLM.set_target_Cl(0.5)
DLLM.run_direct()
DLLM.run_post()
示例2: len
# 需要导入模块: from DLLM.DLLMGeom.wing_param import Wing_param [as 别名]
# 或者: from DLLM.DLLMGeom.wing_param.Wing_param import get_AR [as 别名]
wing_param.set_value('root_chord',4.)
wing_param.set_value('root_height',0.0)
wing_param.set_value('tip_height',0.0)
wing_param.build_linear_airfoil(OC, AoA0=0., Cm0=-0.1, set_as_ref=True)
wing_param.build_airfoils_from_ref()
wing_param.update()
airfoils=wing_param.get_linked_airfoils()
Cla=airfoils[24].ClAlpha(0.0,0.3)
print "Cla=",Cla
#list_file = ['SimpleRect_3.00E-01.dat','SimpleRect_6.00E-01.dat','SimpleRect_8.00E-01.dat']
list_file = ['Elliptic_2.00E-01.dat']
e=0.70
AR = wing_param.get_AR()
print 'AR=',AR
for i,file_name in enumerate(list_file):
fid=open(file_name,'r')
lines=fid.readlines()
fid.close()
fid=open('Cdp_'+file_name,'w')
for j,line in enumerate(lines):
words=string.split(line)
new_words=words
if j == 1:
new_words = ['#','AoA','Cl','Cdp','Cl_theory','Cdp_theory','Cdp_elliptic']
if len(words)> 0:
if words[0] != '#':