Skip to content

Commit ccb317d

Browse files
committed
Merge pull request #2 from suavecode/develop
Develop
2 parents b9bac81 + 7efb878 commit ccb317d

File tree

1 file changed

+3
-18
lines changed

1 file changed

+3
-18
lines changed

tut_payload_range.py

Lines changed: 3 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,7 @@
1-
# tut_mission_Embraer_E190_constThr.py
1+
# tut_payload_range.py
22
#
33
# Created: Aug 2014, SUAVE Team
4-
# Modified: Jun 2015, SUAVE Team
5-
6-
""" setup file for a mission with a E190
7-
"""
8-
4+
# Modified: Apr 2016, T. Orra
95

106
# ----------------------------------------------------------------------
117
# Imports
@@ -58,7 +54,6 @@ def main():
5854

5955
return
6056

61-
6257
# ----------------------------------------------------------------------
6358
# Analysis Setup
6459
# ----------------------------------------------------------------------
@@ -355,7 +350,7 @@ def vehicle_setup():
355350

356351
#initialize the gas turbine network
357352
gt_engine = SUAVE.Components.Energy.Networks.Turbofan()
358-
gt_engine.tag = 'turbo_fan'
353+
gt_engine.tag = 'turbofan'
359354

360355
gt_engine.number_of_engines = 2.0
361356
gt_engine.bypass_ratio = 5.4
@@ -904,16 +899,6 @@ def plot_mission(results,line_style='bo-'):
904899
axes.set_ylabel('Thrust (N)')
905900
axes.grid(True)
906901

907-
try:
908-
Pitching_moment = segment.conditions.stability.static.cm_alpha[:,0]
909-
axes = fig.add_subplot(4,1,4)
910-
axes.plot( time , Pitching_moment , line_style )
911-
axes.set_xlabel('Time (min)')
912-
axes.set_ylabel('Pitching_moment (~)')
913-
axes.grid(True)
914-
except:
915-
pass
916-
917902
# ------------------------------------------------------------------
918903
# Aerodynamics 1
919904
# ------------------------------------------------------------------

0 commit comments

Comments
 (0)