本文整理汇总了Python中openmdao.main.api.Assembly.blade_length方法的典型用法代码示例。如果您正苦于以下问题:Python Assembly.blade_length方法的具体用法?Python Assembly.blade_length怎么用?Python Assembly.blade_length使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类openmdao.main.api.Assembly
的用法示例。
在下文中一共展示了Assembly.blade_length方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: configure_blade
# 需要导入模块: from openmdao.main.api import Assembly [as 别名]
# 或者: from openmdao.main.api.Assembly import blade_length [as 别名]
def configure_blade():
top = Assembly()
configure_bladesurface(top, os.path.join(PATH, 'data/DTU_10MW_RWT_blade_axis_prebend.dat'), planform_nC=6)
# load the planform file
top.blade_length = 86.366
top.span_ni = 5
b = top.blade_surface
# distribute 200 points evenly along the airfoil sections
b.chord_ni = 40
# load the airfoil shapes defining the blade
for f in [os.path.join(PATH, 'data/ffaw3241.dat'),
os.path.join(PATH, 'data/ffaw3301.dat'),
os.path.join(PATH, 'data/ffaw3360.dat'),
os.path.join(PATH, 'data/ffaw3480.dat') ,
os.path.join(PATH, 'data/cylinder.dat')]:
b.base_airfoils.append(np.loadtxt(f))
b.blend_var = np.array([0.241, 0.301, 0.36, 0.48, 1.])
return top
示例2: lofted_blade_shape_example
# 需要导入模块: from openmdao.main.api import Assembly [as 别名]
# 或者: from openmdao.main.api.Assembly import blade_length [as 别名]
def lofted_blade_shape_example():
top = Assembly()
configure_bladesurface(top, 'data/DTU_10MW_RWT_blade_axis_prebend.dat', planform_nC=6)
# load the planform file
top.blade_length = 86.366
top.span_ni = 50
print 'planform variables: ', top.pf_splines.pfOut.list_vars()
b = top.blade_surface
# distribute 200 points evenly along the airfoil sections
b.chord_ni = 200
# load the airfoil shapes defining the blade
for f in ['data/ffaw3241.dat',
'data/ffaw3301.dat',
'data/ffaw3360.dat',
'data/ffaw3480.dat' ,
'data/tc72.dat' ,
'data/cylinder.dat']:
b.base_airfoils.append(np.loadtxt(f))
b.blend_var = np.array([0.241, 0.301, 0.36, 0.48, 0.72, 1.])
top.run()
pf = top.pf_splines.pfOut
plt.figure()
plt.title('chord')
plt.plot(pf.s, pf.chord)
plt.savefig('chord.eps')
plt.figure()
plt.title('twist')
plt.plot(pf.s, pf.rot_z)
plt.savefig('twist.eps')
plt.figure()
plt.title('relative thickness')
plt.plot(pf.s, pf.rthick)
plt.savefig('rthick.eps')
plt.figure()
plt.title('pitch axis aft leading edge')
plt.plot(pf.s, pf.p_le)
plt.savefig('p_le.eps')
plt.figure()
plt.axis('equal')
for i in range(b.span_ni):
plt.plot(b.surfout.surface[:, i, 0], b.surfout.surface[:, i, 1])
plt.savefig('lofted_blade.eps')
plt.savefig('lofted_blade.png')
return top
示例3: VarTree
# 需要导入模块: from openmdao.main.api import Assembly [as 别名]
# 或者: from openmdao.main.api.Assembly import blade_length [as 别名]
rotor_loads = VarTree(RotorLoadsVT(), iotype='out', desc='Rotor torque, power, and thrust')
blade_loads = VarTree(DistributedLoadsExtVT(), iotype='out', desc='Spanwise load distributions')
blade_disps = VarTree(BeamDisplacementsVT(), iotype='out', desc='Blade deflections and rotations')
def execute(self):
print 'run some analysis here'
# --- 2 ---
top = Assembly()
# add splined planform description
configure_planform(top, 'data/DTU_10MW_RWT_blade_axis_prebend.dat')
top.blade_length = 86.366
top.span_ni = 30
# add aeroelastic solver
top.add('ae', AEsolver())
top.driver.workflow.add('ae')
# --- 3 ---
# configure the turbine with standard sub-components
configure_turbine(top.ae.wt)
# define overall dimensions
wt = top.ae.wt
wt.turbine_name = 'DTU 10MW RWT'
wt.doc = 'FUSED-Wind definition of the DTU 10MW RWT'