|
19 | 19 |
|
20 | 20 | # SUAVE Imports |
21 | 21 | import SUAVE |
| 22 | +if not SUAVE.__version__=='2.5.0': |
| 23 | + assert('These tutorials only work with the SUAVE 2.5.0 release') |
22 | 24 | from SUAVE.Core import Data, Units |
23 | 25 | # The Data import here is a native SUAVE data structure that functions similarly to a dictionary. |
24 | 26 | # However, iteration directly returns values, and values can be retrieved either with the |
|
28 | 30 | # This is because SUAVE functions generally operate using metric units, so inputs must be |
29 | 31 | # converted. To use a length of 20 feet, set l = 20 * Units.ft . Additionally, to convert to SUAVE |
30 | 32 | # output back to a desired units, use l_ft = l_m / Units.ft |
31 | | -from SUAVE.Plots.Mission_Plots import * |
| 33 | +from SUAVE.Plots.Performance.Mission_Plots import * |
32 | 34 | # These are a variety of plotting routines that simplify the plotting process for commonly |
33 | 35 | # requested metrics. Plots of specifically desired metrics can also be manually created. |
34 | 36 | from SUAVE.Methods.Propulsion.turbofan_sizing import turbofan_sizing |
@@ -139,8 +141,8 @@ def base_analysis(vehicle): |
139 | 141 |
|
140 | 142 | # ------------------------------------------------------------------ |
141 | 143 | # Energy |
142 | | - energy= SUAVE.Analyses.Energy.Energy() |
143 | | - energy.network = vehicle.propulsors |
| 144 | + energy = SUAVE.Analyses.Energy.Energy() |
| 145 | + energy.network = vehicle.networks |
144 | 146 | analyses.append(energy) |
145 | 147 |
|
146 | 148 | # ------------------------------------------------------------------ |
|
0 commit comments