f9b2eb7c836672a368ffbca081fe213007a9e9a5,trunk/SUAVE/Methods/Aerodynamics/Supersonic_Zero/Drag/wave_drag_volume.py,,wave_drag_volume,#,15
Before Change
main_wing = vehicle.wings.main_wing
// estimation of leading edge sweep if not defined
if main_wing.sweeps.leading_edge == None:
QC_sweep = main_wing.sweeps.quarter_chord
cf = 0.25 // chord fraction
rc = main_wing.chords.root
tc = main_wing.chords.tip
semi_span = main_wing.spans.projected/2
main_wing.sweeps.leading_edge = np.arctan(((rc*cf) + (np.tan(QC_sweep)*semi_span - cf*tc)) /semi_span)
LE_sweep = main_wing.sweeps.leading_edge / Units.deg
L = vehicle.total_length
Ae = vehicle.maximum_cross_sectional_area
S = vehicle.reference_area
// Compute sears-hack D/q
Dq_SH = 9*np.pi/2*(Ae/L)*(Ae/L)
spline = Cubic_Spline_Blender(1.2,1.3)
h00 = lambda M:spline.compute(M)
// Compute full vehicle D/q
Dq_vehicle = np.zeros_like(mach)
Dq_vehicle_simpified = np.zeros_like(mach)
Dq_vehicle[mach>=1.2] = scaling_factor*(1-0.2*(mach[mach>=1.2]-1.2)**0.57*(1-np.pi*LE_sweep**.77/100))*Dq_SH
Dq_vehicle_simpified = scaling_factor*Dq_SH
Dq_vehicle = Dq_vehicle_simpified*h00(mach) + Dq_vehicle*(1-h00(mach))
After Change
main_wing = vehicle.wings.main_wing
// estimation of leading edge sweep if not defined
if main_wing.sweeps.leading_edge == None:
main_wing.sweeps.leading_edge = convert_sweep(main_wing,old_ref_chord_fraction = 0.25 ,new_ref_chord_fraction = 0.0)
LE_sweep = main_wing.sweeps.leading_edge / Units.deg
L = vehicle.total_length
Ae = vehicle.maximum_cross_sectional_area
S = vehicle.reference_area
// Compute sears-hack D/q
Dq_SH = 9*np.pi/2*(Ae/L)*(Ae/L)
spline = Cubic_Spline_Blender(1.2,1.3)
h00 = lambda M:spline.compute(M)
// Compute full vehicle D/q
Dq_vehicle = np.zeros_like(mach)
Dq_vehicle_simpified = np.zeros_like(mach)
Dq_vehicle[mach>=1.2] = scaling_factor*(1-0.2*(mach[mach>=1.2]-1.2)**0.57*(1-np.pi*LE_sweep**.77/100))*Dq_SH
Dq_vehicle_simpified = scaling_factor*Dq_SH
Dq_vehicle = Dq_vehicle_simpified*h00(mach) + Dq_vehicle*(1-h00(mach))
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 27
Instances
Project Name: suavecode/SUAVE
Commit Name: f9b2eb7c836672a368ffbca081fe213007a9e9a5
Time: 2020-04-20
Author: mclarke2@stanford.edu
File Name: trunk/SUAVE/Methods/Aerodynamics/Supersonic_Zero/Drag/wave_drag_volume.py
Class Name:
Method Name: wave_drag_volume
Project Name: suavecode/SUAVE
Commit Name: 2f729fda49d2d58bf9a97ecc91781d056a2d274e
Time: 2020-04-16
Author: mclarke2@stanford.edu
File Name: trunk/SUAVE/Methods/Center_of_Gravity/compute_component_centers_of_gravity.py
Class Name:
Method Name: compute_component_centers_of_gravity
Project Name: suavecode/SUAVE
Commit Name: 2f729fda49d2d58bf9a97ecc91781d056a2d274e
Time: 2020-04-16
Author: mclarke2@stanford.edu
File Name: trunk/SUAVE/Methods/Aerodynamics/Supersonic_Zero/Lift/vortex_lift.py
Class Name:
Method Name: vortex_lift
Project Name: suavecode/SUAVE
Commit Name: f9b2eb7c836672a368ffbca081fe213007a9e9a5
Time: 2020-04-20
Author: mclarke2@stanford.edu
File Name: trunk/SUAVE/Methods/Aerodynamics/Supersonic_Zero/Drag/wave_drag_volume.py
Class Name:
Method Name: wave_drag_volume