Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Frederik Zahle
SEAMRotor
Commits
0d5bcb50
Commit
0d5bcb50
authored
Nov 20, 2015
by
Frederik Zahle
Browse files
fixing PMtarget in old OpenMDAO model
parent
16d90cea
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/SEAMRotor/SEAMRotor.py
View file @
0d5bcb50
...
...
@@ -16,7 +16,7 @@ class SEAMBladeStructure(Component):
lifetime_cycles
=
Float
(
1.e7
,
iotype
=
'in'
,
desc
=
'Equivalent lifetime cycles'
)
wohler_exponent_blade_flap
=
Float
(
iotype
=
'in'
,
desc
=
'Blade flap fatigue Wohler exponent'
)
PMtarget
=
Float
(
iotype
=
'in'
,
desc
=
''
)
PMtarget
_blades
=
Float
(
1.
,
iotype
=
'in'
,
desc
=
''
)
rotor_diameter
=
Float
(
iotype
=
'in'
,
units
=
'm'
,
desc
=
'Rotor diameter'
)
MaxChordrR
=
Float
(
iotype
=
'in'
,
units
=
'm'
,
desc
=
'Spanwise position of maximum chord'
)
...
...
@@ -189,7 +189,7 @@ class SEAMBladeStructure(Component):
W
=
Ine
/
(
thick
/
2.
)
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
return
abs
(
PM
-
self
.
PMtarget
_blades
)
/
norm
# Solving for t in edge direction, fatigue
def
solve_tfat_edge
(
self
,
t
,
C
,
thick
,
Mfat_edge
,
norm
):
...
...
@@ -197,7 +197,7 @@ class SEAMBladeStructure(Component):
W
=
Ine
/
(
C
/
2.
)
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
return
abs
(
PM
-
self
.
PMtarget
_blades
)
/
norm
def
plot
(
self
,
fig
):
"""
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment