The Gitlab server is succesfully updated to version 14.4.0

Many users are receiving emails regarding excessive amounts of log-in attempts, which are brute-force attempts to crack your password. We are working on a 2FA solution, so no action is needed yet. If you receive emails regarding "sign-in from new location", please check the IP address and if unknown, notify frza@dtu.dk immediately.

Commit 16d90cea authored by Frederik Zahle's avatar Frederik Zahle
Browse files

renamed a variable

parent 7817cca4
......@@ -41,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_diameter = Float(iotype = 'out', units = 'm', desc = 'blade root chord') # 07/09/2015 added for HubSE model
blade_root_diameter = Float(iotype = 'out', units = 'm', desc = 'blade root chord') # 07/09/2015 added for HubSE model
def execute(self):
......@@ -49,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_diameter = (self.rotor_diameter/2.)/25.
if root_diameter < 1:
root_diameter = 1
blade_root_diameter = (self.rotor_diameter/2.)/25.
if blade_root_diameter < 1:
blade_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_diameter = 1.5
blade_root_diameter = 1.5
self.root_diameter = root_diameter
self.blade_root_diameter = blade_root_diameter
for i in range(self.blade_sections):
......@@ -79,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_diameter
thick[i] = blade_root_diameter
if thick[i]<0.001:
thick[i] = 0.001
......
Markdown is supported
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