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
cbad7f60
Commit
cbad7f60
authored
Oct 02, 2015
by
Frederik Zahle
Browse files
Merge branch 'renaming'
parents
3ddd6d68
61701e26
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/SEAMRotor/SEAMRotor.py
View file @
cbad7f60
...
...
@@ -12,56 +12,56 @@ from openmdao.lib.datatypes.api import Float, Array, Bool, Int
class
SEAMBladeStructure
(
Component
):
N
sections
=
Int
(
iotype
=
'in'
,
desc
=
'number of sections'
)
Neq
=
Float
(
1.e7
,
iotype
=
'in'
,
desc
=
''
)
blade_
sections
=
Int
(
iotype
=
'in'
,
desc
=
'number of sections
along blade
'
)
lifetime_cycles
=
Float
(
1.e7
,
iotype
=
'in'
,
desc
=
'
Equivalent lifetime cycles
'
)
W
ohler
ExpF
lap
=
Float
(
iotype
=
'in'
,
desc
=
''
)
w
ohler
_exponent_blade_f
lap
=
Float
(
iotype
=
'in'
,
desc
=
'
Blade flap fatigue Wohler exponent
'
)
PMtarget
=
Float
(
iotype
=
'in'
,
desc
=
''
)
rotor_diameter
=
Float
(
iotype
=
'in'
,
units
=
'm'
,
desc
=
'Rotor diameter'
)
#
R
oot
C
hord = Float(iotype='in', units='m', desc='')
#
r
oot
_c
hord = 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'
)
overallMaxFlap
=
Float
(
iotype
=
'in'
,
desc
=
'Max blade root flap moment'
)
overallMaxEdge
=
Float
(
iotype
=
'in'
,
desc
=
'Max blade root edge moment'
)
TIF_FLext
=
Float
(
iotype
=
'in'
,
desc
=
'Technology improvement factor flap extreme
'
)
TIF_EDext
=
Float
(
iotype
=
'in'
,
desc
=
'Technology improvement factor edge extreme
'
)
blade_root_flap_max
=
Float
(
iotype
=
'in'
,
units
=
'kN*m'
,
desc
=
'Max blade root flap
wise
moment'
)
blade_root_edge_max
=
Float
(
iotype
=
'in'
,
units
=
'kN*m'
,
desc
=
'Max blade root edge
wise
moment'
)
blade_root_flap_leq
=
Float
(
iotype
=
'in'
,
units
=
'kN*m'
,
desc
=
'Blade root flapwise lifetime eq. moment
'
)
blade_root_edge_leq
=
Float
(
iotype
=
'in'
,
units
=
'kN*m'
,
desc
=
'Blade root edgewise lifetime eq. moment
'
)
FlapLEQ
=
Float
(
iotype
=
'in'
,
desc
=
'
Blade root flap lifetime eq. moment
'
)
EdgeLEQ
=
Float
(
iotype
=
'in'
,
desc
=
'
Blade root edge lifetime eq. moment
'
)
TIF_FL
fat
=
Float
(
iotype
=
'in'
,
desc
=
'Technology improvement factor
F
lapLEQ'
)
tif_blade_root_flap_ext
=
Float
(
1.
,
iotype
=
'in'
,
desc
=
'
Technology improvement factor flap extreme
'
)
tif_blade_root_edge_ext
=
Float
(
1.
,
iotype
=
'in'
,
desc
=
'
Technology improvement factor edge extreme
'
)
tif_blade_root_flap_
fat
=
Float
(
1.
,
iotype
=
'in'
,
desc
=
'Technology improvement factor
f
lap
LEQ'
)
sc_frac_flap
=
Float
(
iotype
=
'in'
,
desc
=
'spar cap fraction of chord'
)
sc_frac_edge
=
Float
(
iotype
=
'in'
,
desc
=
'spar cap fraction of thickness'
)
SF_blade
=
Float
(
iotype
=
'in'
,
desc
=
''
)
#[factor]
Slim_ext_blade
=
Float
(
iotype
=
'in'
,
units
=
'MPa'
,
desc
=
''
)
Slim_fat_blade
=
Float
(
iotype
=
'in'
,
units
=
'MPa'
,
desc
=
''
)
SF_blade
=
Float
(
iotype
=
'in'
,
desc
=
''
)
Slim_ext_blade
=
Float
(
iotype
=
'in'
,
units
=
'MPa'
,
desc
=
'
Ultimate strength
'
)
Slim_fat_blade
=
Float
(
iotype
=
'in'
,
units
=
'MPa'
,
desc
=
'
Fatigue strength
'
)
AddWeightFactorBlade
=
Float
(
iotype
=
'in'
,
desc
=
'Additional weight factor for blade shell'
)
B
lade
Dens
=
Float
(
iotype
=
'in'
,
units
=
'kg/m**3'
,
desc
=
'density of blades'
)
b
lade
_material_density
=
Float
(
iotype
=
'in'
,
units
=
'kg/m**3'
,
desc
=
'
Average
density of blade
material
s'
)
B
lade
Weight
=
Float
(
iotype
=
'out'
,
units
=
'kg'
,
desc
=
'Blade
M
ass'
)
R
oot
C
hord
=
Float
(
iotype
=
'out'
,
units
=
'm'
,
desc
=
'blade root chord'
)
# 07/09/2015 added for HubSE model
b
lade
_mass
=
Float
(
iotype
=
'out'
,
units
=
'kg'
,
desc
=
'Blade
m
ass'
)
r
oot
_c
hord
=
Float
(
iotype
=
'out'
,
units
=
'm'
,
desc
=
'blade root chord'
)
# 07/09/2015 added for HubSE model
def
execute
(
self
):
volumen
=
0.
r
=
np
.
linspace
(
0
,
self
.
rotor_diameter
/
2.
,
self
.
N
sections
)
r
=
np
.
linspace
(
0
,
self
.
rotor_diameter
/
2.
,
self
.
blade_
sections
)
C
=
np
.
zeros
(
r
.
shape
)
thick
=
np
.
zeros
(
r
.
shape
)
R
oot
C
hord
=
(
self
.
rotor_diameter
/
2.
)
/
25.
if
R
oot
C
hord
<
1
:
R
oot
C
hord
=
1
r
oot
_c
hord
=
(
self
.
rotor_diameter
/
2.
)
/
25.
if
r
oot
_c
hord
<
1
:
r
oot
_c
hord
=
1
MaxChord
=
0.001
*
(
self
.
rotor_diameter
/
2.
)
**
2
-
0.0354
*
(
self
.
rotor_diameter
/
2.
)
+
1.6635
#Empirical
if
MaxChord
<
1.5
:
R
oot
C
hord
=
1.5
r
oot
_c
hord
=
1.5
self
.
R
oot
C
hord
=
R
oot
C
hord
self
.
r
oot
_c
hord
=
r
oot
_c
hord
for
i
in
range
(
self
.
N
sections
):
for
i
in
range
(
self
.
blade_
sections
):
# Calculating the chord and thickness
if
r
[
i
]
>
(
self
.
MaxChordrR
*
self
.
rotor_diameter
/
2.
):
...
...
@@ -81,7 +81,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
]
=
R
oot
C
hord
thick
[
i
]
=
r
oot
_c
hord
if
thick
[
i
]
<
0.001
:
thick
[
i
]
=
0.001
...
...
@@ -92,23 +92,23 @@ class SEAMBladeStructure(Component):
self
.
chord
=
C
# Calculating load flapwise extreme
Mext_flap
=
(
self
.
overallMaxFlap
-
1.75
*
self
.
overallMaxFlap
*
r
/
(
self
.
rotor_diameter
/
2.
)
+
\
0.75
*
self
.
overallMaxFlap
*
r
/
(
self
.
rotor_diameter
/
2.
)
*
r
/
\
(
self
.
rotor_diameter
/
2.
))
*
self
.
TIF_FL
ext
Mext_flap
=
(
self
.
blade_root_flap_max
-
1.75
*
self
.
blade_root_flap_max
*
r
/
(
self
.
rotor_diameter
/
2.
)
+
\
0.75
*
self
.
blade_root_flap_max
*
r
/
(
self
.
rotor_diameter
/
2.
)
*
r
/
\
(
self
.
rotor_diameter
/
2.
))
*
self
.
tif_blade_root_flap_
ext
# Calculating load edgewise extreme
Mext_edge
=
(
self
.
overallMaxEdge
-
1.75
*
self
.
overallMaxEdge
*
r
/
(
self
.
rotor_diameter
/
2.
)
+
\
0.75
*
self
.
overallMaxEdge
*
r
/
(
self
.
rotor_diameter
/
2.
)
*
r
/
\
(
self
.
rotor_diameter
/
2.
))
*
self
.
TIF_ED
ext
Mext_edge
=
(
self
.
blade_root_edge_max
-
1.75
*
self
.
blade_root_edge_max
*
r
/
(
self
.
rotor_diameter
/
2.
)
+
\
0.75
*
self
.
blade_root_edge_max
*
r
/
(
self
.
rotor_diameter
/
2.
)
*
r
/
\
(
self
.
rotor_diameter
/
2.
))
*
self
.
tif_blade_root_edge_
ext
# Calculating load flapwise fatigue
Mfat_flap
=
(
self
.
FlapLEQ
-
1.75
*
self
.
FlapLEQ
*
r
/
(
self
.
rotor_diameter
/
2.
)
+
\
0.75
*
self
.
FlapLEQ
*
r
/
(
self
.
rotor_diameter
/
2.
)
*
r
/
\
(
self
.
rotor_diameter
/
2.
))
*
self
.
TIF_FL
fat
Mfat_flap
=
(
self
.
blade_root_flap_leq
-
1.75
*
self
.
blade_root_flap_leq
*
r
/
(
self
.
rotor_diameter
/
2.
)
+
\
0.75
*
self
.
blade_root_flap_leq
*
r
/
(
self
.
rotor_diameter
/
2.
)
*
r
/
\
(
self
.
rotor_diameter
/
2.
))
*
self
.
tif_blade_root_flap_
fat
# Calculating load edgewise fatigue
Mfat_edge
=
(
self
.
EdgeLEQ
-
1.75
*
self
.
EdgeLEQ
*
r
/
(
self
.
rotor_diameter
/
2.
)
+
\
0.75
*
self
.
EdgeLEQ
*
r
/
(
self
.
rotor_diameter
/
2.
)
*
r
/
(
self
.
rotor_diameter
/
2.
))
*
self
.
TIF_ED
ext
Mfat_edge
=
(
self
.
blade_root_edge_leq
-
1.75
*
self
.
blade_root_edge_leq
*
r
/
(
self
.
rotor_diameter
/
2.
)
+
\
0.75
*
self
.
blade_root_edge_leq
*
r
/
(
self
.
rotor_diameter
/
2.
)
*
r
/
(
self
.
rotor_diameter
/
2.
))
*
self
.
tif_blade_root_edge_
ext
self
.
Mext_flap
=
Mext_flap
self
.
Mext_edge
=
Mext_edge
...
...
@@ -116,8 +116,8 @@ class SEAMBladeStructure(Component):
self
.
Mfat_edge
=
Mfat_edge
# Calculating thickness flapwise extreme
text_flap
=
np
.
zeros
(
self
.
N
sections
)
for
i
in
range
(
self
.
N
sections
):
text_flap
=
np
.
zeros
(
self
.
blade_
sections
)
for
i
in
range
(
self
.
blade_
sections
):
norm
=
self
.
solve_text_flap
(
0.01
,
C
[
i
],
thick
[
i
],
Mext_flap
[
i
],
1.
)
res
=
minimize
(
self
.
solve_text_flap
,
0.01
,
args
=
(
C
[
i
],
thick
[
i
],
Mext_flap
[
i
],
norm
),
bounds
=
[(
1.e-6
,
0.5
)],
method
=
'SLSQP'
,
tol
=
1.e-8
)
text_flap
[
i
]
=
res
[
'x'
]
...
...
@@ -125,25 +125,26 @@ class SEAMBladeStructure(Component):
if
not
res
[
'success'
]:
print
'WARNING enter text_flap'
,
i
,
res
# Calculating thickness edgewise extreme
text_edge
=
np
.
zeros
(
self
.
N
sections
)
for
i
in
range
(
self
.
N
sections
):
text_edge
=
np
.
zeros
(
self
.
blade_
sections
)
for
i
in
range
(
self
.
blade_
sections
):
norm
=
self
.
solve_text_edge
(
0.01
,
C
[
i
],
thick
[
i
],
Mext_flap
[
i
],
1.
)
res
=
minimize
(
self
.
solve_text_edge
,
0.01
,
args
=
(
C
[
i
],
thick
[
i
],
Mext_edge
[
i
],
norm
),
bounds
=
[(
1.e-6
,
0.5
)],
method
=
'SLSQP'
,
tol
=
1.e-8
)
text_edge
[
i
]
=
res
[
'x'
]
if
not
res
[
'success'
]:
print
'WARNING solve_text_edge'
,
i
,
res
# Calculating thickness flapwise fatigue
tfat_flap
=
np
.
zeros
(
self
.
Nsections
)
for
i
in
range
(
self
.
Nsections
):
tfat_flap
=
np
.
zeros
(
self
.
blade_sections
)
for
i
in
range
(
self
.
blade_sections
):
norm
=
self
.
solve_tfat_flap
(
0.01
,
C
[
i
],
thick
[
i
],
Mfat_flap
[
i
],
1.
)
res
=
minimize
(
self
.
solve_tfat_flap
,
0.01
,
args
=
(
C
[
i
],
thick
[
i
],
Mfat_flap
[
i
],
norm
),
bounds
=
[(
1.e-6
,
0.5
)],
method
=
'SLSQP'
,
tol
=
1.e-8
)
tfat_flap
[
i
]
=
res
[
'x'
]
if
not
res
[
'success'
]:
print
'WARNING solve_tfat_flap'
,
i
,
res
# Calculating thickness edgewise fatigue
tfat_edge
=
np
.
zeros
(
self
.
N
sections
)
for
i
in
range
(
self
.
N
sections
):
norm
=
self
.
solve_tfat_edge
(
0.01
,
C
[
i
],
thick
[
i
],
Mfat_
flap
[
i
],
1.
)
tfat_edge
=
np
.
zeros
(
self
.
blade_
sections
)
for
i
in
range
(
self
.
blade_
sections
):
norm
=
self
.
solve_tfat_edge
(
0.01
,
C
[
i
],
thick
[
i
],
Mfat_
edge
[
i
],
1.
)
res
=
minimize
(
self
.
solve_tfat_edge
,
0.01
,
args
=
(
C
[
i
],
thick
[
i
],
Mfat_edge
[
i
],
norm
),
bounds
=
[(
1.e-6
,
0.5
)],
method
=
'SLSQP'
,
tol
=
1.e-8
)
tfat_edge
[
i
]
=
res
[
'x'
]
if
not
res
[
'success'
]:
print
'WARNING solve_tfat_edge'
,
i
,
res
...
...
@@ -163,31 +164,9 @@ class SEAMBladeStructure(Component):
self
.
volume
=
np
.
trapz
(
2
*
(
self
.
sc_frac_flap
*
C
*
tfinal_flap
+
\
self
.
sc_frac_edge
*
thick
*
tfinal_edge
),
r
)
self
.
volume
*=
self
.
AddWeightFactorBlade
self
.
BladeWeight
=
self
.
BladeDens
*
self
.
volume
print
'BladeWeigth'
,
self
.
BladeWeight
#
# rotor = self.BladeWeight*self.BladeCostPerMass/1e6 # Meuro
# print 'rotor', rotor
# # Scaling laws for hub, spinner, pitch
# HubMass = 0.954*self.BladeWeight+5680.3
# print 'HubMass', HubMass
#
# HubCost = HubMass*self.HubCostPerMass/1e6
# print 'HubCost', HubCost
#
# #PitchCost
#
# SpinnerMass = 18.5*self.rotor_diameter-520.5
# print 'SpinnerMass', SpinnerMass
#
# SpinnerCost = SpinnerMass*self.SpinnerCostPerMass/1e6
# print 'SpinnerCost', SpinnerCost
#Rotor = 3*(self.BladeWeight*self.BladeCostPerMass/1e6)+HubCost+PitchCost+SpinnerCost
self
.
blade_mass
=
self
.
blade_material_density
*
self
.
volume
print
'blade mass'
,
self
.
blade_mass
# Defining functions in order to solve for the thickness
...
...
@@ -211,7 +190,7 @@ class SEAMBladeStructure(Component):
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
)
PM
=
self
.
Neq
/
(
pow
(
10
,
(
self
.
Slim_fat_blade
-
self
.
W
ohler
ExpF
lap
*
np
.
log10
(
sfat
))))
PM
=
self
.
lifetime_cycles
/
(
pow
(
10
,
(
self
.
Slim_fat_blade
-
self
.
w
ohler
_exponent_blade_f
lap
*
np
.
log10
(
sfat
))))
return
abs
(
PM
-
self
.
PMtarget
)
/
norm
# Solving for t in edge direction, fatigue
...
...
@@ -219,7 +198,7 @@ class SEAMBladeStructure(Component):
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
)
PM
=
self
.
Neq
/
(
pow
(
10
,
(
self
.
Slim_fat_blade
-
self
.
W
ohler
ExpF
lap
*
np
.
log10
(
sfat
))))
PM
=
self
.
lifetime_cycles
/
(
pow
(
10
,
(
self
.
Slim_fat_blade
-
self
.
w
ohler
_exponent_blade_f
lap
*
np
.
log10
(
sfat
))))
return
abs
(
PM
-
self
.
PMtarget
)
/
norm
def
plot
(
self
,
fig
):
...
...
src/SEAMRotor/test/test_SEAMRotor.py
View file @
cbad7f60
...
...
@@ -3,27 +3,12 @@ import numpy as np
import
unittest
from
SEAMRotor.SEAMRotor
import
SEAMBladeStructure
class
SEAMRotorTestCase
(
unittest
.
TestCase
):
def
setUp
(
self
):
pass
def
tearDown
(
self
):
pass
# add some tests here...
#def test_SEAMRotor(self):
#pass
if
__name__
==
"__main__"
:
# unittest.main()
def
configure
():
top
=
SEAMBladeStructure
()
top
.
N
sections
=
21
top
.
Neq
=
1e7
top
.
W
ohler
ExpF
lap
=
10.0
top
.
blade_
sections
=
21
top
.
lifetime_cycles
=
1e7
top
.
w
ohler
_exponent_blade_f
lap
=
10.0
top
.
PMtarget
=
1.0
top
.
rotor_diameter
=
177.
#[m]
...
...
@@ -31,66 +16,77 @@ if __name__ == "__main__":
# top.MaxChord = 2.5 #[m]
top
.
MaxChordrR
=
0.2
#[m]
top
.
OverallMaxFlap
=
47225.
top
.
OverallMaxEdge
=
26712.
top
.
TIF_FLext
=
1.
# Tech Impr Factor _ flap extreme
top
.
TIF_EDext
=
1.
top
.
FlapLEQ
=
26975.
top
.
EdgeLEQ
=
24252.
top
.
TIF_FLfat
=
1.
top
.
blade_root_flap_max
=
47225.
top
.
blade_root_edge_max
=
26712.
top
.
blade_root_flap_leq
=
26975.
top
.
blade_root_edge_leq
=
24252.
top
.
sc_frac_flap
=
0.3
# sparcap fraction of chord flap
top
.
sc_frac_edge
=
0.8
# sparcap fraction of thickness edge
top
.
SF_blade
=
1.1
#[factor]
top
.
Slim_ext_blade
=
200.0
top
.
Slim_fat_blade
=
27
top
.
Slim_fat_blade
=
27
.
top
.
AddWeightFactorBlade
=
1.2
# Additional weight factor for blade shell
top
.
BladeDens
=
2100.
# [kg / m^3]
top
.
BladeCostPerMass
=
15.0
#[e/kg]
top
.
HubCostPerMass
=
3.5
#[e/kg]
top
.
SpinnerCostPerMass
=
4.5
#[e/kg]
top
.
execute
()
data
=
np
.
loadtxt
(
'Rotor_outputfile.txt'
)
# Comparing found values for thickness with Kenneth's
datacompare_text_flap
=
(
abs
(
data
[:,
5
]
-
top
.
text_flap
))
datacompare_text_edge
=
(
abs
(
data
[:,
7
]
-
top
.
text_edge
))
datacompare_tfat_flap
=
(
abs
(
data
[:,
9
]
-
top
.
tfat_flap
))
datacompare_tfat_edge
=
(
abs
(
data
[:,
11
]
-
top
.
tfat_edge
))
import
matplotlib.pylab
as
plt
# Plot illustrating the absolute differences for the thicknesses as function of the radius
plt
.
figure
(
1
)
plt
.
plot
(
top
.
r
,
datacompare_text_flap
,
'o-'
,
label
=
'text_flap'
)
plt
.
plot
(
top
.
r
,
datacompare_text_edge
,
'o-'
,
label
=
'text_edge'
)
plt
.
plot
(
top
.
r
,
datacompare_tfat_flap
,
'o-'
,
label
=
'tfat_flap'
)
plt
.
plot
(
top
.
r
,
datacompare_tfat_edge
,
'o-'
,
label
=
'tfat_edge'
)
plt
.
legend
()
plt
.
title
(
"abs differences between thickness's as function of radius"
)
plt
.
axis
([
0
,
90
,
0
,
0.0003
])
plt
.
xlabel
(
'radius [m]'
)
plt
.
ylabel
(
"abs difference between thickness's"
)
plt
.
grid
()
plt
.
show
()
# Plot illustrating the 4 thicknesess's as function of the radius
plt
.
figure
(
2
)
plt
.
plot
(
top
.
r
,
top
.
text_flap
,
'>-'
,
label
=
'text_flap'
)
plt
.
plot
(
top
.
r
,
top
.
text_edge
,
'>-'
,
label
=
'text_edge'
)
plt
.
plot
(
top
.
r
,
top
.
tfat_flap
,
'>-'
,
label
=
'tfat_flap'
)
plt
.
plot
(
top
.
r
,
top
.
tfat_edge
,
'>-'
,
label
=
'tfat_edge'
)
plt
.
legend
()
plt
.
title
(
'Thickness
\'
s as function of radius'
)
plt
.
xlabel
(
'radius [m]'
)
plt
.
ylabel
(
'spar thickness [m]'
)
plt
.
grid
()
plt
.
show
()
top
.
blade_material_density
=
2100.
# [kg / m^3]
return
top
class
SEAMRotorTestCase
(
unittest
.
TestCase
):
def
setUp
(
self
):
pass
def
test_mass
(
self
):
top
=
configure
()
top
.
run
()
self
.
assertAlmostEqual
(
top
.
blade_mass
,
33485.1942627
,
places
=
6
)
if
__name__
==
"__main__"
:
unittest
.
main
()
# data = np.loadtxt('Rotor_outputfile.txt')
#
# # Comparing found values for thickness with Kenneth's
# datacompare_text_flap = (abs(data[:, 5]-top.text_flap))
# datacompare_text_edge = (abs(data[:, 7]-top.text_edge))
# datacompare_tfat_flap = (abs(data[:, 9]-top.tfat_flap))
# datacompare_tfat_edge = (abs(data[:,11]-top.tfat_edge))
#
# import matplotlib.pylab as plt
#
# # Plot illustrating the absolute differences for the thicknesses as function of the radius
# plt.figure(1)
# plt.plot(top.r, datacompare_text_flap, 'o-', label = 'text_flap')
# plt.plot(top.r, datacompare_text_edge, 'o-', label = 'text_edge')
# plt.plot(top.r, datacompare_tfat_flap, 'o-', label = 'tfat_flap')
# plt.plot(top.r, datacompare_tfat_edge, 'o-', label = 'tfat_edge')
#
# plt.legend()
# plt.title("abs differences between thickness's as function of radius")
# plt.axis([0, 90, 0, 0.0003])
# plt.xlabel('radius [m]')
# plt.ylabel("abs difference between thickness's")
# plt.grid()
# plt.show()
#
# # Plot illustrating the 4 thicknesess's as function of the radius
# plt.figure(2)
# plt.plot(top.r, top.text_flap, '>-', label = 'text_flap')
# plt.plot(top.r, top.text_edge, '>-', label = 'text_edge')
# plt.plot(top.r, top.tfat_flap, '>-', label = 'tfat_flap')
# plt.plot(top.r, top.tfat_edge, '>-', label = 'tfat_edge')
#
# plt.legend()
# plt.title('Thickness\'s as function of radius')
# plt.xlabel('radius [m]')
# plt.ylabel('spar thickness [m]')
# plt.grid()
#
# plt.show()
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