@@ -138,55 +138,6 @@ def simple_sizing(nexus):
138138 turbofan_sizing (config .propulsors ['turbofan' ], mach_number = mach_number , altitude = altitude )
139139 compute_turbofan_geometry (config .propulsors ['turbofan' ], conditions )
140140
141-
142- # ------------------------------------------------------------------
143- # Landing Configuration
144- # ------------------------------------------------------------------
145- landing = nexus .vehicle_configurations .landing
146- state = Data ()
147- state .conditions = Data ()
148- state .conditions .freestream = Data ()
149-
150- # landing weight
151- landing .mass_properties .landing = 0.85 * config .mass_properties .takeoff
152-
153- # Landing CL_max
154- altitude = nexus .missions .base .segments [- 1 ].altitude_end
155- atmosphere = SUAVE .Analyses .Atmospheric .US_Standard_1976 ()
156- p , T , rho , a , mu = atmosphere .compute_values (altitude )
157- state .conditions .freestream .velocity = nexus .missions .base .segments ['descent_3' ].air_speed
158- state .conditions .freestream .density = rho
159- state .conditions .freestream .dynamic_viscosity = mu / rho
160- settings = Data ()
161- settings .maximum_lift_coefficient_factor = 1.0
162- CL_max_landing , CDi = compute_max_lift_coeff (state ,settings ,landing )
163- landing .maximum_lift_coefficient = CL_max_landing
164-
165-
166- #Takeoff CL_max
167- takeoff = nexus .vehicle_configurations .takeoff
168- altitude = nexus .missions .base .airport .altitude
169- atmosphere = SUAVE .Analyses .Atmospheric .US_Standard_1976 ()
170- p , T , rho , a , mu = atmosphere .compute_values (altitude )
171- state .conditions .freestream .velocity = nexus .missions .base .segments .climb_1 .air_speed
172- state .conditions .freestream .density = rho
173- state .conditions .freestream .dynamic_viscosity = mu / rho
174- settings .maximum_lift_coefficient_factor = 1.0
175- max_CL_takeoff ,CDi = compute_max_lift_coeff (state ,settings ,takeoff )
176- takeoff .maximum_lift_coefficient = max_CL_takeoff
177-
178- #Base config CL_max
179- base = nexus .vehicle_configurations .base
180- altitude = nexus .missions .base .airport .altitude
181- atmosphere = SUAVE .Analyses .Atmospheric .US_Standard_1976 ()
182- p , T , rho , a , mu = atmosphere .compute_values (altitude )
183- state .conditions .freestream .velocity = nexus .missions .base .segments .climb_1 .air_speed
184- state .conditions .freestream .density = rho
185- state .conditions .freestream .dynamic_viscosity = mu / rho
186- settings .maximum_lift_coefficient_factor = 1.0
187- max_CL_base ,CDi = compute_max_lift_coeff (state ,settings ,landing )
188- base .maximum_lift_coefficient = max_CL_base
189-
190141 return nexus
191142
192143# ----------------------------------------------------------------------
@@ -203,11 +154,7 @@ def weight(nexus):
203154 weights = nexus .analyses .landing .weights .evaluate (method = "SUAVE" )
204155 weights = nexus .analyses .takeoff .weights .evaluate (method = "SUAVE" )
205156 weights = nexus .analyses .short_field_takeoff .weights .evaluate (method = "SUAVE" )
206-
207- for config in nexus .vehicle_configurations :
208- config .mass_properties .zero_fuel_center_of_gravity = vehicle .mass_properties .zero_fuel_center_of_gravity
209- config .fuel = vehicle .fuel
210-
157+
211158 return nexus
212159
213160# ----------------------------------------------------------------------
@@ -232,15 +179,6 @@ def post_process(nexus):
232179 summary = nexus .summary
233180 nexus .total_number_of_iterations += 1
234181
235- # Static stability calculations
236- CMA = - 10.
237- for segment in results .base .segments .values ():
238- max_CMA = np .max (segment .conditions .stability .static .Cm_alpha [:,0 ])
239- if max_CMA > CMA :
240- CMA = max_CMA
241-
242- summary .static_stability = CMA
243-
244182 #throttle in design mission
245183 max_throttle = 0
246184 for segment in results .base .segments .values ():
@@ -255,11 +193,11 @@ def post_process(nexus):
255193 design_takeoff_weight = vehicle .mass_properties .takeoff
256194 zero_fuel_weight = vehicle .mass_properties .breakdown .zero_fuel_weight
257195
258- summary .max_zero_fuel_margin = (design_landing_weight - zero_fuel_weight )/ zero_fuel_weight
259- summary .base_mission_fuelburn = design_takeoff_weight - results .base .segments ['descent_3' ].conditions .weights .total_mass [- 1 ]
196+ summary .max_zero_fuel_margin = (design_landing_weight - zero_fuel_weight )/ zero_fuel_weight
197+ summary .base_mission_fuelburn = design_takeoff_weight - results .base .segments ['descent_3' ].conditions .weights .total_mass [- 1 ]
260198
261199 #when you run want to output results to a file
262200 filename = 'results.txt'
263201 write_optimization_outputs (nexus , filename )
264-
202+
265203 return nexus
0 commit comments