Skip to content

Commit 4232b42

Browse files
committed
clean up bwb
1 parent d90d41e commit 4232b42

File tree

1 file changed

+30
-29
lines changed

1 file changed

+30
-29
lines changed

BWB_CFD/BWB.py

Lines changed: 30 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -107,38 +107,39 @@ def base_analysis(vehicle):
107107
aerodynamics = SUAVE.Analyses.Aerodynamics.SU2_Euler()
108108
aerodynamics.geometry = vehicle
109109

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-
134110
#aerodynamics.process.compute.lift.inviscid.settings.parallel = True
135-
#aerodynamics.process.compute.lift.inviscid.settings.processors = 12
136-
137-
aerodynamics.process.compute.lift.inviscid.training.Mach = np.array([.3, .5, .7, .85])
138-
aerodynamics.process.compute.lift.inviscid.training.angle_of_attack = np.array([0.,3.,6.]) * Units.deg
111+
#aerodynamics.process.compute.lift.inviscid.settings.processors = 12
139112
#aerodynamics.process.compute.lift.inviscid.training_file = 'base_data.txt'
140-
141113
aerodynamics.settings.drag_coefficient_increment = 0.0000
114+
115+
aerodynamics.process.compute.lift.inviscid.training.Mach = np.array([.3, .5, .7, .85])
116+
aerodynamics.process.compute.lift.inviscid.training.angle_of_attack = np.array([0.,3.,6.]) * Units.deg
117+
118+
wing_segments = vehicle.wings.main_wing.Segments
119+
wing_segments.section_1.vsp_mesh = Data()
120+
wing_segments.section_1.vsp_mesh.inner_radius = 4.
121+
wing_segments.section_1.vsp_mesh.outer_radius = 4.
122+
wing_segments.section_1.vsp_mesh.inner_length = .14
123+
wing_segments.section_1.vsp_mesh.outer_length = .14
124+
125+
wing_segments.section_2.vsp_mesh = Data()
126+
wing_segments.section_2.vsp_mesh.inner_radius = 4.
127+
wing_segments.section_2.vsp_mesh.outer_radius = 4.
128+
wing_segments.section_2.vsp_mesh.inner_length = .14
129+
wing_segments.section_2.vsp_mesh.outer_length = .14
130+
131+
wing_segments.section_3.vsp_mesh = Data()
132+
wing_segments.section_3.vsp_mesh.inner_radius = 4.
133+
wing_segments.section_3.vsp_mesh.outer_radius = 4.
134+
wing_segments.section_3.vsp_mesh.inner_length = .14
135+
wing_segments.section_3.vsp_mesh.outer_length = .14
136+
137+
wing_segments.section_4.vsp_mesh = Data()
138+
wing_segments.section_4.vsp_mesh.inner_radius = 4.
139+
wing_segments.section_4.vsp_mesh.outer_radius = 2.8
140+
wing_segments.section_4.vsp_mesh.inner_length = .14
141+
wing_segments.section_4.vsp_mesh.outer_length = .14
142+
142143
analyses.append(aerodynamics)
143144

144145
# ------------------------------------------------------------------

0 commit comments

Comments
 (0)