Skip to content

Commit 84aaf55

Browse files
committed
Merge branch 'develop' of https://github.com/suavecode/Tutorials into develop
2 parents a917259 + 3f72c69 commit 84aaf55

4 files changed

Lines changed: 55 additions & 106 deletions

File tree

tut_concorde.py

Lines changed: 2 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -194,37 +194,7 @@ def vehicle_setup():
194194
wing.high_lift = True
195195
wing.vortex_lift = True
196196
wing.high_mach = True
197-
wing.dynamic_pressure_ratio = 1.0
198-
199-
# set root sweep with inner section
200-
segment = SUAVE.Components.Wings.Segment()
201-
segment.tag = 'section_1'
202-
segment.percent_span_location = 0.
203-
segment.twist = 0. * Units.deg
204-
segment.root_chord_percent = 33.8/33.8
205-
segment.dihedral_outboard = 0.
206-
segment.sweeps.quarter_chord = 67. * Units.deg
207-
wing.Segments.append(segment)
208-
209-
# set mid section start point
210-
segment = SUAVE.Components.Wings.Segment()
211-
segment.tag = 'section_2'
212-
segment.percent_span_location = 6.15/(25.6/2) + wing.Segments['section_1'].percent_span_location
213-
segment.twist = 0. * Units.deg
214-
segment.root_chord_percent = 13.8/33.8
215-
segment.dihedral_outboard = 0.
216-
segment.sweeps.quarter_chord = 48. * Units.deg
217-
wing.Segments.append(segment)
218-
219-
# set tip section start point
220-
segment = SUAVE.Components.Wings.Segment()
221-
segment.tag = 'section_3'
222-
segment.percent_span_location = 5.95/(25.6/2) + wing.Segments['section_2'].percent_span_location
223-
segment.twist = 0. * Units.deg
224-
segment.root_chord_percent = 4.4/33.8
225-
segment.dihedral_outboard = 0.
226-
segment.sweeps.quarter_chord = 71. * Units.deg
227-
wing.Segments.append(segment)
197+
wing.dynamic_pressure_ratio = 1.0
228198

229199
# add to vehicle
230200
vehicle.append_component(wing)
@@ -259,26 +229,6 @@ def vehicle_setup():
259229
wing.t_tail = False
260230
wing.high_mach = True
261231
wing.dynamic_pressure_ratio = 1.0
262-
263-
# set root sweep with inner section
264-
segment = SUAVE.Components.Wings.Segment()
265-
segment.tag = 'section_1'
266-
segment.percent_span_location = 0.0
267-
segment.twist = 0. * Units.deg
268-
segment.root_chord_percent = 14.5/14.5
269-
segment.dihedral_outboard = 0.
270-
segment.sweeps.quarter_chord = 63 * Units.deg
271-
wing.Segments.append(segment)
272-
273-
# set mid section start point
274-
segment = SUAVE.Components.Wings.Segment()
275-
segment.tag = 'section_2'
276-
segment.percent_span_location = 2.4/(6.0) + wing.Segments['section_1'].percent_span_location
277-
segment.twist = 0. * Units.deg
278-
segment.root_chord_percent = 7.5/14.5
279-
segment.dihedral_outboard = 0.
280-
segment.sweeps.quarter_chord = 40. * Units.deg
281-
wing.Segments.append(segment)
282232

283233
# add to vehicle
284234
vehicle.append_component(wing)
@@ -290,7 +240,7 @@ def vehicle_setup():
290240
fuselage = SUAVE.Components.Fuselages.Fuselage()
291241
fuselage.tag = 'fuselage'
292242
fuselage.seats_abreast = 4
293-
fuselage.seat_pitch = 1
243+
fuselage.seat_pitch = 1 * Units.meter
294244
fuselage.fineness.nose = 4.3 * Units.meter
295245
fuselage.fineness.tail = 6.4 * Units.meter
296246
fuselage.lengths.total = 61.66 * Units.meter

tut_mission_B737.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,7 @@ def vehicle_setup():
309309

310310
fuselage.number_coach_seats = vehicle.passengers
311311
fuselage.seats_abreast = 6
312-
fuselage.seat_pitch = 1
312+
fuselage.seat_pitch = 1 * Units.meter
313313
fuselage.fineness.nose = 1.6
314314
fuselage.fineness.tail = 2.
315315
fuselage.lengths.nose = 6.4 * Units.meter

tut_payload_range.py

Lines changed: 34 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ def vehicle_setup():
198198
wing.areas.affected = 0.6 * wing.areas.wetted
199199
wing.twists.root = 2.0 * Units.degrees
200200
wing.twists.tip = 0.0 * Units.degrees
201-
wing.origin = [20.,0,0]
201+
wing.origin = [20.,0,0] # meters
202202
wing.vertical = False
203203
wing.symmetric = True
204204
wing.dynamic_pressure_ratio = 1.0
@@ -228,8 +228,8 @@ def vehicle_setup():
228228
wing.areas.affected = 0.6 * wing.areas.wetted
229229
wing.twists.root = 2.0 * Units.degrees
230230
wing.twists.tip = 2.0 * Units.degrees
231-
wing.origin = [50,0,0]
232-
wing.aerodynamic_center = [2,0,0]
231+
wing.origin = [50,0,0] # meters
232+
wing.aerodynamic_center = [2,0,0] # meters
233233
wing.vertical = False
234234
wing.symmetric = True
235235
wing.dynamic_pressure_ratio = 0.9
@@ -244,7 +244,7 @@ def vehicle_setup():
244244
wing = SUAVE.Components.Wings.Wing()
245245
wing.tag = 'vertical_stabilizer'
246246

247-
wing.aspect_ratio = 1.7 #
247+
wing.aspect_ratio = 1.7
248248
wing.sweeps.quarter_chord = 25 * Units.deg
249249
wing.thickness_to_chord = 0.12
250250
wing.taper = 0.10
@@ -259,8 +259,8 @@ def vehicle_setup():
259259
wing.areas.affected = 0.6 * wing.areas.wetted
260260
wing.twists.root = 0.0 * Units.degrees
261261
wing.twists.tip = 0.0 * Units.degrees
262-
wing.origin = [50,0,0]
263-
wing.aerodynamic_center = [2,0,0]
262+
wing.origin = [50,0,0] # meters
263+
wing.aerodynamic_center = [2,0,0] # meters
264264
wing.vertical = True
265265
wing.symmetric = False
266266
wing.dynamic_pressure_ratio = 1.0
@@ -277,7 +277,7 @@ def vehicle_setup():
277277

278278
fuselage.number_coach_seats = vehicle.passengers
279279
fuselage.seats_abreast = 4
280-
fuselage.seat_pitch = 0.7455
280+
fuselage.seat_pitch = 0.7455 * Units.meters
281281
fuselage.fineness.nose = 2.0
282282
fuselage.fineness.tail = 3.0
283283
fuselage.lengths.nose = 6.0 * Units.meter
@@ -305,7 +305,7 @@ def vehicle_setup():
305305
# ------------------------------------------------------------------
306306

307307

308-
#initialize the gas turbine network
308+
# initialize the gas turbine network
309309
gt_engine = SUAVE.Components.Energy.Networks.Turbofan()
310310
gt_engine.tag = 'turbofan'
311311

@@ -314,124 +314,124 @@ def vehicle_setup():
314314
gt_engine.engine_length = 2.71
315315
gt_engine.nacelle_diameter = 2.05
316316

317-
#set the working fluid for the network
317+
# set the working fluid for the network
318318
gt_engine.working_fluid = SUAVE.Attributes.Gases.Air
319319

320-
#Component 1 : ram, to convert freestream static to stagnation quantities
320+
# Component 1 : ram, to convert freestream static to stagnation quantities
321321
ram = SUAVE.Components.Energy.Converters.Ram()
322322
ram.tag = 'ram'
323323

324-
#add ram to the network
324+
# add ram to the network
325325
gt_engine.ram = ram
326326

327-
#Component 2 : inlet nozzle
327+
# Component 2 : inlet nozzle
328328
inlet_nozzle = SUAVE.Components.Energy.Converters.Compression_Nozzle()
329329
inlet_nozzle.tag = 'inlet nozzle'
330330

331331
inlet_nozzle.polytropic_efficiency = 0.98
332332
inlet_nozzle.pressure_ratio = 0.99
333333

334-
#add inlet nozzle to the network
334+
# add inlet nozzle to the network
335335
gt_engine.inlet_nozzle = inlet_nozzle
336336

337-
#Component 3 :low pressure compressor
337+
# Component 3 :low pressure compressor
338338
low_pressure_compressor = SUAVE.Components.Energy.Converters.Compressor()
339339
low_pressure_compressor.tag = 'lpc'
340340

341341
low_pressure_compressor.polytropic_efficiency = 0.91
342342
low_pressure_compressor.pressure_ratio = 1.9
343343

344-
#add low pressure compressor to the network
344+
# add low pressure compressor to the network
345345
gt_engine.low_pressure_compressor = low_pressure_compressor
346346

347-
#Component 4 :high pressure compressor
347+
# Component 4 :high pressure compressor
348348
high_pressure_compressor = SUAVE.Components.Energy.Converters.Compressor()
349349
high_pressure_compressor.tag = 'hpc'
350350

351351
high_pressure_compressor.polytropic_efficiency = 0.91
352352
high_pressure_compressor.pressure_ratio = 10.0
353353

354-
#add the high pressure compressor to the network
354+
# add the high pressure compressor to the network
355355
gt_engine.high_pressure_compressor = high_pressure_compressor
356356

357-
#Component 5 :low pressure turbine
357+
# Component 5 :low pressure turbine
358358
low_pressure_turbine = SUAVE.Components.Energy.Converters.Turbine()
359359
low_pressure_turbine.tag='lpt'
360360

361361
low_pressure_turbine.mechanical_efficiency = 0.99
362362
low_pressure_turbine.polytropic_efficiency = 0.99
363363

364-
#add low pressure turbine to the network
364+
# add low pressure turbine to the network
365365
gt_engine.low_pressure_turbine = low_pressure_turbine
366366

367-
#Component 5 :high pressure turbine
367+
# Component 5 :high pressure turbine
368368
high_pressure_turbine = SUAVE.Components.Energy.Converters.Turbine()
369369
high_pressure_turbine.tag='hpt'
370370

371371
high_pressure_turbine.mechanical_efficiency = 0.99
372372
high_pressure_turbine.polytropic_efficiency = 0.99
373373

374-
#add the high pressure turbine to the network
374+
# add the high pressure turbine to the network
375375
gt_engine.high_pressure_turbine = high_pressure_turbine
376376

377-
#Component 6 :combustor
377+
# Component 6 :combustor
378378
combustor = SUAVE.Components.Energy.Converters.Combustor()
379-
combustor.tag = 'Comb'
379+
combustor.tag = 'comb'
380380
combustor.efficiency = 0.99
381381
combustor.alphac = 1.0
382382
combustor.turbine_inlet_temperature = 1500
383383
combustor.pressure_ratio = 0.95
384384
combustor.fuel_data = SUAVE.Attributes.Propellants.Jet_A()
385385

386-
#add the combustor to the network
386+
# add the combustor to the network
387387
gt_engine.combustor = combustor
388388

389-
#Component 7 :core nozzle
389+
# Component 7 :core nozzle
390390
core_nozzle = SUAVE.Components.Energy.Converters.Expansion_Nozzle()
391391
core_nozzle.tag = 'core nozzle'
392392

393393
core_nozzle.polytropic_efficiency = 0.95
394394
core_nozzle.pressure_ratio = 0.99
395395

396-
#add the core nozzle to the network
396+
# add the core nozzle to the network
397397
gt_engine.core_nozzle = core_nozzle
398398

399-
#Component 8 :fan nozzle
399+
# Component 8 :fan nozzle
400400
fan_nozzle = SUAVE.Components.Energy.Converters.Expansion_Nozzle()
401401
fan_nozzle.tag = 'fan nozzle'
402402

403403
fan_nozzle.polytropic_efficiency = 0.95
404404
fan_nozzle.pressure_ratio = 0.98
405405

406-
#add the fan nozzle to the network
406+
# add the fan nozzle to the network
407407
gt_engine.fan_nozzle = fan_nozzle
408408

409-
#Component 9 : fan
409+
# Component 9 : fan
410410
fan = SUAVE.Components.Energy.Converters.Fan()
411411
fan.tag = 'fan'
412412

413413
fan.polytropic_efficiency = 0.93
414414
fan.pressure_ratio = 1.7
415415

416-
#add the fan to the network
416+
# add the fan to the network
417417
gt_engine.fan = fan
418418

419-
#Component 10 : thrust (to compute the thrust)
419+
# Component 10 : thrust (to compute the thrust)
420420
thrust = SUAVE.Components.Energy.Processes.Thrust()
421421
thrust.tag ='compute_thrust'
422422

423-
#total design thrust (includes all the engines)
423+
# total design thrust (includes all the engines)
424424
thrust.total_design = 37278.0* Units.N #Newtons
425425

426-
#design sizing conditions
426+
# design sizing conditions
427427
altitude = 35000.0*Units.ft
428428
mach_number = 0.78
429429
isa_deviation = 0.
430430

431431
# add thrust to the network
432432
gt_engine.thrust = thrust
433433

434-
#size the turbofan
434+
# size the turbofan
435435
turbofan_sizing(gt_engine,mach_number,altitude)
436436

437437
# add gas turbine network gt_engine to the vehicle

0 commit comments

Comments
 (0)