Skip to content

Commit d90d41e

Browse files
committed
moved vsp mesh settings
1 parent 272442b commit d90d41e

File tree

1 file changed

+29
-25
lines changed

1 file changed

+29
-25
lines changed

BWB_CFD/BWB.py

Lines changed: 29 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -106,13 +106,37 @@ def base_analysis(vehicle):
106106
# Aerodynamics Analysis
107107
aerodynamics = SUAVE.Analyses.Aerodynamics.SU2_Euler()
108108
aerodynamics.geometry = vehicle
109-
109+
110+
aerodynamics.geometry.wings.main_wing.Segments.section_1.vsp_mesh = Data()
111+
aerodynamics.geometry.wings.main_wing.Segments.section_1.vsp_mesh.inner_radius = 4.
112+
aerodynamics.geometry.wings.main_wing.Segments.section_1.vsp_mesh.outer_radius = 4.
113+
aerodynamics.geometry.wings.main_wing.Segments.section_1.vsp_mesh.inner_length = .14
114+
aerodynamics.geometry.wings.main_wing.Segments.section_1.vsp_mesh.outer_length = .14
115+
116+
aerodynamics.geometry.wings.main_wing.Segments.section_2.vsp_mesh = Data()
117+
aerodynamics.geometry.wings.main_wing.Segments.section_2.vsp_mesh.inner_radius = 4.
118+
aerodynamics.geometry.wings.main_wing.Segments.section_2.vsp_mesh.outer_radius = 4.
119+
aerodynamics.geometry.wings.main_wing.Segments.section_2.vsp_mesh.inner_length = .14
120+
aerodynamics.geometry.wings.main_wing.Segments.section_2.vsp_mesh.outer_length = .14
121+
122+
aerodynamics.geometry.wings.main_wing.Segments.section_3.vsp_mesh = Data()
123+
aerodynamics.geometry.wings.main_wing.Segments.section_3.vsp_mesh.inner_radius = 4.
124+
aerodynamics.geometry.wings.main_wing.Segments.section_3.vsp_mesh.outer_radius = 4.
125+
aerodynamics.geometry.wings.main_wing.Segments.section_3.vsp_mesh.inner_length = .14
126+
aerodynamics.geometry.wings.main_wing.Segments.section_3.vsp_mesh.outer_length = .14
127+
128+
aerodynamics.geometry.wings.main_wing.Segments.section_4.vsp_mesh = Data()
129+
aerodynamics.geometry.wings.main_wing.Segments.section_4.vsp_mesh.inner_radius = 4.
130+
aerodynamics.geometry.wings.main_wing.Segments.section_4.vsp_mesh.outer_radius = 2.8
131+
aerodynamics.geometry.wings.main_wing.Segments.section_4.vsp_mesh.inner_length = .14
132+
aerodynamics.geometry.wings.main_wing.Segments.section_4.vsp_mesh.outer_length = .14
133+
110134
#aerodynamics.process.compute.lift.inviscid.settings.parallel = True
111135
#aerodynamics.process.compute.lift.inviscid.settings.processors = 12
112136

113137
aerodynamics.process.compute.lift.inviscid.training.Mach = np.array([.3, .5, .7, .85])
114138
aerodynamics.process.compute.lift.inviscid.training.angle_of_attack = np.array([0.,3.,6.]) * Units.deg
115-
aerodynamics.process.compute.lift.inviscid.training_file = 'base_data.txt'
139+
#aerodynamics.process.compute.lift.inviscid.training_file = 'base_data.txt'
116140

117141
aerodynamics.settings.drag_coefficient_increment = 0.0000
118142
analyses.append(aerodynamics)
@@ -213,12 +237,7 @@ def vehicle_setup():
213237
segment.root_chord_percent = 1.
214238
segment.dihedral_outboard = 0. * Units.degrees
215239
segment.sweeps.quarter_chord = 30.0 * Units.degrees
216-
segment.thickness_to_chord = 0.165
217-
#segment.vsp_mesh = Data()
218-
#segment.vsp_mesh.inner_radius = 4.
219-
#segment.vsp_mesh.outer_radius = 4.
220-
#segment.vsp_mesh.inner_length = .14
221-
#segment.vsp_mesh.outer_length = .14
240+
segment.thickness_to_chord = 0.165
222241
wing.Segments.append(segment)
223242

224243
segment = SUAVE.Components.Wings.Segment()
@@ -228,12 +247,7 @@ def vehicle_setup():
228247
segment.root_chord_percent = 0.921
229248
segment.dihedral_outboard = 0. * Units.degrees
230249
segment.sweeps.quarter_chord = 52.5 * Units.degrees
231-
segment.thickness_to_chord = 0.167
232-
#segment.vsp_mesh = Data()
233-
#segment.vsp_mesh.inner_radius = 4.
234-
#segment.vsp_mesh.outer_radius = 4.
235-
#segment.vsp_mesh.inner_length = .14
236-
#segment.vsp_mesh.outer_length = .14
250+
segment.thickness_to_chord = 0.167
237251
wing.Segments.append(segment)
238252

239253
segment = SUAVE.Components.Wings.Segment()
@@ -243,12 +257,7 @@ def vehicle_setup():
243257
segment.root_chord_percent = 0.76
244258
segment.dihedral_outboard = 1.85 * Units.degrees
245259
segment.sweeps.quarter_chord = 36.9 * Units.degrees
246-
segment.thickness_to_chord = 0.171
247-
#segment.vsp_mesh = Data()
248-
#segment.vsp_mesh.inner_radius = 4.
249-
#segment.vsp_mesh.outer_radius = 4.
250-
#segment.vsp_mesh.inner_length = .14
251-
#segment.vsp_mesh.outer_length = .14
260+
segment.thickness_to_chord = 0.171
252261
wing.Segments.append(segment)
253262

254263
segment = SUAVE.Components.Wings.Segment()
@@ -259,11 +268,6 @@ def vehicle_setup():
259268
segment.dihedral_outboard = 1.85 * Units.degrees
260269
segment.sweeps.quarter_chord = 30.4 * Units.degrees
261270
segment.thickness_to_chord = 0.175
262-
#segment.vsp_mesh = Data()
263-
#segment.vsp_mesh.inner_radius = 4.
264-
#segment.vsp_mesh.outer_radius = 2.8
265-
#segment.vsp_mesh.inner_length = .14
266-
#segment.vsp_mesh.outer_length = .14
267271
wing.Segments.append(segment)
268272

269273
segment = SUAVE.Components.Wings.Segment()

0 commit comments

Comments
 (0)