Skip to content

Commit b63684c

Browse files
committed
Merge branch 'develop' of https://github.com/suavecode/Tutorials into develop
2 parents 0758da2 + 49af83e commit b63684c

1 file changed

Lines changed: 13 additions & 56 deletions

File tree

tut_concorde.py

Lines changed: 13 additions & 56 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@
2222
# Main
2323
# ----------------------------------------------------------------------
2424

25-
def main(source_ratio=1.):
25+
def main():
2626

27-
configs, analyses = full_setup(source_ratio)
27+
configs, analyses = full_setup()
2828

2929
simple_sizing(configs)
3030

@@ -49,10 +49,10 @@ def main(source_ratio=1.):
4949
# Analysis Setup
5050
# ----------------------------------------------------------------------
5151

52-
def full_setup(source_ratio=1.):
52+
def full_setup():
5353

5454
# vehicle data
55-
vehicle = vehicle_setup(source_ratio)
55+
vehicle = vehicle_setup()
5656
configs = configs_setup(vehicle)
5757

5858
# vehicle analyses
@@ -134,7 +134,7 @@ def base_analysis(vehicle):
134134
# done!
135135
return analyses
136136

137-
def vehicle_setup(source_ratio=1.):
137+
def vehicle_setup():
138138

139139
# ------------------------------------------------------------------
140140
# Initialize the Vehicle
@@ -187,20 +187,15 @@ def vehicle_setup(source_ratio=1.):
187187
wing.areas.affected = .6 * wing.areas.reference
188188
wing.twists.root = 0.0 * Units.degrees
189189
wing.twists.tip = 0.0 * Units.degrees
190-
wing.origin = [14,0,-.8]
191-
wing.aerodynamic_center = [35,0,0]
190+
wing.origin = [14,0,-.8] # meters
191+
wing.aerodynamic_center = [35,0,0] # meters
192192
wing.vertical = False
193193
wing.symmetric = True
194194
wing.high_lift = True
195195
wing.vortex_lift = True
196196
wing.high_mach = True
197197
wing.dynamic_pressure_ratio = 1.0
198198

199-
wing_airfoil = SUAVE.Components.Wings.Airfoils.Airfoil()
200-
wing_airfoil.coordinate_file = 'NACA65-203.dat'
201-
202-
wing.append_airfoil(wing_airfoil)
203-
204199
# set root sweep with inner section
205200
segment = SUAVE.Components.Wings.Segment()
206201
segment.tag = 'section_1'
@@ -209,13 +204,6 @@ def vehicle_setup(source_ratio=1.):
209204
segment.root_chord_percent = 33.8/33.8
210205
segment.dihedral_outboard = 0.
211206
segment.sweeps.quarter_chord = 67. * Units.deg
212-
segment.vsp_mesh = Data()
213-
segment.vsp_mesh.inner_radius = 1./source_ratio
214-
segment.vsp_mesh.outer_radius = 1./source_ratio
215-
segment.vsp_mesh.inner_length = .044/source_ratio
216-
segment.vsp_mesh.outer_length = .044/source_ratio
217-
segment.vsp_mesh.matching_TE = False
218-
segment.append_airfoil(wing_airfoil)
219207
wing.Segments.append(segment)
220208

221209
# set mid section start point
@@ -226,13 +214,6 @@ def vehicle_setup(source_ratio=1.):
226214
segment.root_chord_percent = 13.8/33.8
227215
segment.dihedral_outboard = 0.
228216
segment.sweeps.quarter_chord = 48. * Units.deg
229-
segment.vsp_mesh = Data()
230-
segment.vsp_mesh.inner_radius = 1./source_ratio
231-
segment.vsp_mesh.outer_radius = .88/source_ratio
232-
segment.vsp_mesh.inner_length = .044/source_ratio
233-
segment.vsp_mesh.outer_length = .044/source_ratio
234-
segment.vsp_mesh.matching_TE = False
235-
segment.append_airfoil(wing_airfoil)
236217
wing.Segments.append(segment)
237218

238219
# set tip section start point
@@ -243,12 +224,6 @@ def vehicle_setup(source_ratio=1.):
243224
segment.root_chord_percent = 4.4/33.8
244225
segment.dihedral_outboard = 0.
245226
segment.sweeps.quarter_chord = 71. * Units.deg
246-
segment.vsp_mesh = Data()
247-
segment.vsp_mesh.inner_radius = .88/source_ratio
248-
segment.vsp_mesh.outer_radius = .22/source_ratio
249-
segment.vsp_mesh.inner_length = .044/source_ratio
250-
segment.vsp_mesh.outer_length = .011/source_ratio
251-
segment.append_airfoil(wing_airfoil)
252227
wing.Segments.append(segment)
253228

254229
# add to vehicle
@@ -277,18 +252,13 @@ def vehicle_setup(source_ratio=1.):
277252
wing.areas.affected = 33.91 * Units['meter**2']
278253
wing.twists.root = 0.0 * Units.degrees
279254
wing.twists.tip = 0.0 * Units.degrees
280-
wing.origin = [42.,0,1.]
281-
wing.aerodynamic_center = [50,0,0]
255+
wing.origin = [42.,0,1.] # meters
256+
wing.aerodynamic_center = [50,0,0] # meters
282257
wing.vertical = True
283258
wing.symmetric = False
284259
wing.t_tail = False
285260
wing.high_mach = True
286261
wing.dynamic_pressure_ratio = 1.0
287-
288-
tail_airfoil = SUAVE.Components.Wings.Airfoils.Airfoil()
289-
tail_airfoil.coordinate_file = 'supertail_refined.dat'
290-
291-
wing.append_airfoil(tail_airfoil)
292262

293263
# set root sweep with inner section
294264
segment = SUAVE.Components.Wings.Segment()
@@ -298,12 +268,6 @@ def vehicle_setup(source_ratio=1.):
298268
segment.root_chord_percent = 14.5/14.5
299269
segment.dihedral_outboard = 0.
300270
segment.sweeps.quarter_chord = 63 * Units.deg
301-
segment.vsp_mesh = Data()
302-
segment.vsp_mesh.inner_radius = 2.9/source_ratio
303-
segment.vsp_mesh.outer_radius = 1.5/source_ratio
304-
segment.vsp_mesh.inner_length = .044/source_ratio
305-
segment.vsp_mesh.outer_length = .044/source_ratio
306-
segment.append_airfoil(tail_airfoil)
307271
wing.Segments.append(segment)
308272

309273
# set mid section start point
@@ -314,12 +278,6 @@ def vehicle_setup(source_ratio=1.):
314278
segment.root_chord_percent = 7.5/14.5
315279
segment.dihedral_outboard = 0.
316280
segment.sweeps.quarter_chord = 40. * Units.deg
317-
segment.vsp_mesh = Data()
318-
segment.vsp_mesh.inner_radius = 1.5/source_ratio
319-
segment.vsp_mesh.outer_radius = .54/source_ratio
320-
segment.vsp_mesh.inner_length = .044/source_ratio
321-
segment.vsp_mesh.outer_length = .027/source_ratio
322-
segment.append_airfoil(tail_airfoil)
323281
wing.Segments.append(segment)
324282

325283
# add to vehicle
@@ -365,7 +323,7 @@ def vehicle_setup(source_ratio=1.):
365323
turbojet.inlet_diameter = 1.1 * Units.meter
366324
turbojet.areas = Data()
367325
turbojet.areas.wetted = 12.5*4.7*2. * Units['meter**2'] # 4.7 is outer perimeter on one side
368-
turbojet.origin = [[37.,6.,-1.3],[37.,5.3,-1.3],[37.,-5.3,-1.3],[37.,-6.,-1.3]]
326+
turbojet.origin = [[37.,6.,-1.3],[37.,5.3,-1.3],[37.,-5.3,-1.3],[37.,-6.,-1.3]] # meters
369327

370328
# working fluid
371329
turbojet.working_fluid = SUAVE.Attributes.Gases.Air()
@@ -460,8 +418,7 @@ def vehicle_setup(source_ratio=1.):
460418
combustor.tag = 'combustor'
461419

462420
# setup
463-
combustor.efficiency = 0.99
464-
combustor.alphac = 1.0
421+
combustor.efficiency = 0.99
465422
combustor.turbine_inlet_temperature = 1450.
466423
combustor.pressure_ratio = 1.0
467424
combustor.fuel_data = SUAVE.Attributes.Propellants.Jet_A()
@@ -489,11 +446,11 @@ def vehicle_setup(source_ratio=1.):
489446
thrust = SUAVE.Components.Energy.Processes.Thrust()
490447
thrust.tag ='compute_thrust'
491448

492-
#total design thrust (includes all the engines)
449+
# total design thrust (includes all the engines)
493450
thrust.total_design = 4*140000. * Units.N #Newtons
494451

495452
# Note: Sizing builds the propulsor. It does not actually set the size of the turbojet
496-
#design sizing conditions
453+
# design sizing conditions
497454
altitude = 0.0*Units.ft
498455
mach_number = 0.01
499456
isa_deviation = 0.

0 commit comments

Comments
 (0)