Skip to content

Moving new commits for further development on develop #5

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 9 commits into from
Apr 21, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions Regional_Jet_Optimization/Optimize.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,14 @@
import matplotlib.pyplot as plt
from SUAVE.Optimization import Nexus, carpet_plot
import SUAVE.Optimization.Package_Setups.scipy_setup as scipy_setup
import VyPy
import pyOpt
#import VyPy
#import pyOpt
# ----------------------------------------------------------------------
# Run the whole thing
# ----------------------------------------------------------------------
def main():
problem = setup()

output = problem.objective()
#uncomment these lines when you want to start an optimization problem from a different initial guess
'''
inputs = [1.28, 1.38]
Expand Down
8 changes: 4 additions & 4 deletions Regional_Jet_Optimization/Procedure.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
from SUAVE.Analyses.Process import Process
from SUAVE.Methods.Propulsion.turbofan_sizing import turbofan_sizing
from SUAVE.Methods.Geometry.Two_Dimensional.Cross_Section.Propulsion.compute_turbofan_geometry import compute_turbofan_geometry
from SUAVE.Methods.Center_of_Gravity.compute_component_centers_of_gravity import compute_component_centers_of_gravity
from SUAVE.Methods.Center_of_Gravity.compute_aircraft_center_of_gravity import compute_aircraft_center_of_gravity
#from SUAVE.Methods.Center_of_Gravity.compute_component_centers_of_gravity import compute_component_centers_of_gravity
#from SUAVE.Methods.Center_of_Gravity.compute_aircraft_center_of_gravity import compute_aircraft_center_of_gravity
from SUAVE.Methods.Aerodynamics.Fidelity_Zero.Lift.compute_max_lift_coeff import compute_max_lift_coeff
from SUAVE.Optimization.write_optimization_outputs import write_optimization_outputs

Expand Down Expand Up @@ -204,11 +204,11 @@ def weight(nexus):
# weight analysis
weights = nexus.analyses.base.weights.evaluate()


'''
compute_component_centers_of_gravity(vehicle)
nose_load_fraction=.06
compute_aircraft_center_of_gravity(vehicle,nose_load_fraction)

'''

weights = nexus.analyses.cruise.weights.evaluate()
vehicle.mass_properties.breakdown = weights
Expand Down
Loading