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
The Gitlab server is succesfully updated to version 15.1.0
Open sidebar
Frederik Zahle
SEAMRotor
Commits
7817cca4
Commit
7817cca4
authored
Oct 02, 2015
by
Frederik Zahle
Browse files
renamed a variable
parent
c36830fe
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/SEAMRotor/SEAMRotor.py
View file @
7817cca4
...
...
@@ -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
...
...
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