|
14 | 14 | from SUAVE.Methods.Propulsion.turbofan_sizing import turbofan_sizing |
15 | 15 | from SUAVE.Methods.Geometry.Two_Dimensional.Planform import wing_planform |
16 | 16 |
|
| 17 | +from copy import deepcopy |
| 18 | + |
17 | 19 | # ---------------------------------------------------------------------- |
18 | 20 | # Define the Vehicle |
19 | 21 | # ---------------------------------------------------------------------- |
@@ -196,33 +198,45 @@ def base_setup(): |
196 | 198 |
|
197 | 199 | # add to vehicle |
198 | 200 | vehicle.append_component(fuselage) |
| 201 | + |
| 202 | + |
| 203 | + |
| 204 | + # ----------------------------------------------------------------- |
| 205 | + # Design the Nacelle |
| 206 | + # ----------------------------------------------------------------- |
| 207 | + nacelle = SUAVE.Components.Nacelles.Nacelle() |
| 208 | + nacelle.diameter = 2.05 |
| 209 | + nacelle.length = 2.71 |
| 210 | + nacelle.tag = 'nacelle_1' |
| 211 | + nacelle.inlet_diameter = 2.0 |
| 212 | + nacelle.origin = [[12.0,4.38,-2.1]] |
| 213 | + Awet = 1.1*np.pi*nacelle.diameter*nacelle.length # 1.1 is simple coefficient |
| 214 | + nacelle.areas.wetted = Awet |
| 215 | + nacelle_airfoil = SUAVE.Components.Airfoils.Airfoil() |
| 216 | + nacelle_airfoil.naca_4_series_airfoil = '2410' |
| 217 | + nacelle.append_airfoil(nacelle_airfoil) |
| 218 | + |
| 219 | + nacelle_2 = deepcopy(nacelle) |
| 220 | + nacelle_2.tag = 'nacelle_2' |
| 221 | + nacelle_2.origin = [[12.0,-4.38,-2.1]] |
| 222 | + |
| 223 | + vehicle.append_component(nacelle) |
| 224 | + vehicle.append_component(nacelle_2) |
| 225 | + |
199 | 226 |
|
200 | 227 | # ------------------------------------------------------------------ |
201 | 228 | # Turbofan Network |
202 | 229 | # ------------------------------------------------------------------ |
203 | 230 |
|
204 | | - |
205 | 231 | #initialize the gas turbine network |
206 | 232 | gt_engine = SUAVE.Components.Energy.Networks.Turbofan() |
207 | 233 | gt_engine.tag = 'turbofan' |
208 | 234 | gt_engine.origin = [[12.0,4.38,-2.1],[12.0,-4.38,-2.1]] |
209 | 235 | gt_engine.number_of_engines = 2.0 |
210 | 236 | gt_engine.bypass_ratio = 5.4 |
211 | | - gt_engine.engine_length = 2.71 |
212 | | - gt_engine.nacelle_diameter = 2.05 |
213 | | - gt_engine.inlet_diameter = 2.0 |
214 | | - |
215 | | - #compute engine areas) |
216 | | - Awet = 1.1*np.pi*gt_engine.nacelle_diameter*gt_engine.engine_length # 1.1 is simple coefficient |
217 | | - |
218 | | - #Assign engine area |
219 | | - gt_engine.areas.wetted = Awet |
220 | | - |
221 | | - #set the working fluid for the network |
222 | | - working_fluid = SUAVE.Attributes.Gases.Air() |
223 | 237 |
|
224 | 238 | #add working fluid to the network |
225 | | - gt_engine.working_fluid = working_fluid |
| 239 | + gt_engine.working_fluid = SUAVE.Attributes.Gases.Air() |
226 | 240 |
|
227 | 241 |
|
228 | 242 | #Component 1 : ram, to convert freestream static to stagnation quantities |
@@ -332,6 +346,7 @@ def base_setup(): |
332 | 346 | fuel.mass_properties.mass = vehicle.mass_properties.max_takeoff-vehicle.mass_properties.max_fuel |
333 | 347 | fuel.origin = vehicle.wings.main_wing.mass_properties.center_of_gravity |
334 | 348 | fuel.mass_properties.center_of_gravity= vehicle.wings.main_wing.aerodynamic_center |
| 349 | + |
335 | 350 | # ------------------------------------------------------------------ |
336 | 351 | # Vehicle Definition Complete |
337 | 352 | # ------------------------------------------------------------------ |
|
0 commit comments