Commit 01633581 authored by Frederik Zahle's avatar Frederik Zahle
Browse files

changed another varname

parent 8a3a9090
......@@ -174,7 +174,7 @@ class SEAMBladeStructure(Component):
def solve_text_flap(self, t, C, thick, Mext_flap, norm):
Ine = (2./3.)*self.sc_frac_flap*C*t**3-self.sc_frac_flap*C*thick*t**2+self.sc_frac_flap*C*thick**2/2.*t
W = Ine/(thick/2.)
sext = self.SF_blade*1e3*Mext_flap/W/1e6
sext = self.safety_factor_blade*1e3*Mext_flap/W/1e6
# print 'text_flap', abs(sext - self.stress_limit_extreme_blade)
return abs(sext - self.stress_limit_extreme_blade) / norm
......@@ -182,14 +182,14 @@ class SEAMBladeStructure(Component):
def solve_text_edge(self, t, C, thick, Mext_edge, norm):
Ine = (2/3.)*self.sc_frac_edge*thick*t**3-self.sc_frac_edge*thick*C*t**2+self.sc_frac_edge*thick*C**2/2.*t
W = Ine/(C/2.);
sext = self.SF_blade*1.e3*Mext_edge/W/1.e6
sext = self.safety_factor_blade*1.e3*Mext_edge/W/1.e6
return abs(sext - self.stress_limit_extreme_blade) / norm
# Solving for t in flap direction, fatigue
def solve_tfat_flap(self, t, C, thick, Mfat_flap, norm):
Ine = (2/3.)*self.sc_frac_flap*C*t**3-self.sc_frac_flap*C*thick*t**2+self.sc_frac_flap*C*thick**2/2.*t
W = Ine/(thick/2.)
sfat = np.maximum(1.e-6, self.SF_blade*1.e3*Mfat_flap/ W / 1.e6)
sfat = np.maximum(1.e-6, self.safety_factor_blade*1.e3*Mfat_flap/ W / 1.e6)
PM = self.lifetime_cycles/(pow(10, (self.stress_limit_fatigue_blade - self.wohler_exponent_blade_flap*np.log10(sfat))))
return abs(PM - self.PMtarget) / norm
......@@ -197,7 +197,7 @@ class SEAMBladeStructure(Component):
def solve_tfat_edge(self, t, C, thick, Mfat_edge, norm):
Ine = (2/3.)*self.sc_frac_edge*thick*t**3-self.sc_frac_edge*thick*C*t**2+self.sc_frac_edge*thick*C**2/2.*t
W = Ine/(C/2.)
sfat = np.maximum(1.e-6, self.SF_blade*1.e3*Mfat_edge/W/1.e6)
sfat = np.maximum(1.e-6, self.safety_factor_blade*1.e3*Mfat_edge/W/1.e6)
PM = self.lifetime_cycles/(pow(10, (self.stress_limit_fatigue_blade - self.wohler_exponent_blade_flap*np.log10(sfat))))
return abs(PM - self.PMtarget) / norm
......
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