Commit 7817cca4 authored by Frederik Zahle's avatar Frederik Zahle
Browse files

renamed a variable

parent c36830fe
......@@ -19,8 +19,6 @@ class SEAMBladeStructure(Component):
PMtarget = Float(iotype='in', desc='')
rotor_diameter = Float(iotype='in', units='m', desc='Rotor diameter')
# root_chord = Float(iotype='in', units='m', desc='')
# MaxChord = Float(iotype='in', units='m', desc='')
MaxChordrR = Float(iotype='in', units='m', desc='Spanwise position of maximum chord')
blade_root_flap_max = Float(iotype='in', units='kN*m', desc='Max blade root flapwise moment')
......@@ -43,7 +41,7 @@ class SEAMBladeStructure(Component):
blade_material_density = Float(iotype='in', units='kg/m**3', desc='Average density of blade materials')
blade_mass = Float(iotype = 'out', units = 'kg', desc = 'Blade mass' )
root_chord = Float(iotype = 'out', units = 'm', desc = 'blade root chord') # 07/09/2015 added for HubSE model
root_diameter = Float(iotype = 'out', units = 'm', desc = 'blade root chord') # 07/09/2015 added for HubSE model
def execute(self):
......@@ -51,15 +49,15 @@ class SEAMBladeStructure(Component):
r = np.linspace(0, self.rotor_diameter/2., self.blade_sections)
C = np.zeros(r.shape)
thick = np.zeros(r.shape)
root_chord = (self.rotor_diameter/2.)/25.
if root_chord < 1:
root_chord = 1
root_diameter = (self.rotor_diameter/2.)/25.
if root_diameter < 1:
root_diameter = 1
MaxChord = 0.001*(self.rotor_diameter/2.)**2-0.0354*(self.rotor_diameter/2.)+1.6635 #Empirical
if MaxChord < 1.5:
root_chord = 1.5
root_diameter = 1.5
self.root_chord = root_chord
self.root_diameter = root_diameter
for i in range(self.blade_sections):
......@@ -81,7 +79,7 @@ class SEAMBladeStructure(Component):
C[i] = MaxChord-(MaxChord)/((self.rotor_diameter/2.) - \
self.MaxChordrR*(self.rotor_diameter/2.)) * \
(self.MaxChordrR*(self.rotor_diameter/2.)-r[i])
thick[i] = root_chord
thick[i] = root_diameter
if thick[i]<0.001:
thick[i] = 0.001
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment