Skip to content

Commit

Permalink
Merge branch 'main' into user_feedback_cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
johnjasa authored Jan 31, 2024
2 parents 39b63e4 + 7cb0258 commit 2861e87
Show file tree
Hide file tree
Showing 17 changed files with 377 additions and 1,156 deletions.
3 changes: 1 addition & 2 deletions aviary/interface/default_phase_info/two_dof.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,9 +102,8 @@
'alt_upper': (700, 'ft'),
'alt_ref': (1000, 'ft'),
'alt_defect_ref': (1000, 'ft'),
'alt_constraint_eq': (500, 'ft'),
'final_altitude': (500, 'ft'),
'alt_constraint_ref': (500, 'ft'),
'alt_constraint_ref0': (0, 'ft'),
'angle_lower': (-10, 'rad'),
'angle_upper': (20, 'rad'),
'angle_ref': (57.2958, 'deg'),
Expand Down
3 changes: 1 addition & 2 deletions aviary/interface/utils/check_phase_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,9 +103,8 @@ def check_phase_info(phase_info, mission_method):
**common_mass,
**common_distance,
**common_alt,
'alt_constraint_eq': tuple,
'final_altitude': tuple,
'alt_constraint_ref': tuple,
'alt_constraint_ref0': tuple,
'alt_defect_ref': tuple,
**common_angle,
'pitch_constraint_lower': tuple,
Expand Down
5 changes: 2 additions & 3 deletions aviary/mission/flops_based/phases/detailed_landing_phases.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,8 @@
TakeoffTrajectory as _TakeoffTrajectory
from aviary.mission.flops_based.phases.detailed_takeoff_phases import \
_init_initial_guess_meta_data
from aviary.mission.phase_builder_base import (
InitialGuessControl, InitialGuessParameter, InitialGuessPolynomialControl,
InitialGuessState, PhaseBuilderBase)
from aviary.mission.phase_builder_base import PhaseBuilderBase
from aviary.mission.initial_guess_builders import InitialGuessControl, InitialGuessParameter, InitialGuessPolynomialControl, InitialGuessState, InitialGuessTime
from aviary.utils.aviary_values import AviaryValues
from aviary.variable_info.functions import setup_trajectory_params
from aviary.variable_info.variables import Dynamic, Mission
Expand Down
5 changes: 2 additions & 3 deletions aviary/mission/flops_based/phases/detailed_takeoff_phases.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,8 @@
import openmdao.api as om

from aviary.mission.flops_based.ode.takeoff_ode import TakeoffODE
from aviary.mission.phase_builder_base import (
InitialGuessControl, InitialGuessParameter, InitialGuessPolynomialControl,
InitialGuessState, InitialGuessTime, PhaseBuilderBase)
from aviary.mission.phase_builder_base import PhaseBuilderBase
from aviary.mission.initial_guess_builders import InitialGuessControl, InitialGuessParameter, InitialGuessPolynomialControl, InitialGuessState, InitialGuessTime
from aviary.utils.aviary_values import AviaryValues
from aviary.variable_info.functions import setup_trajectory_params
from aviary.variable_info.variables import Dynamic, Mission
Expand Down
9 changes: 4 additions & 5 deletions aviary/mission/flops_based/phases/energy_phase.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
import dymos as dm

from aviary.mission.phase_builder_base import (
register, PhaseBuilderBase, InitialGuessControl, InitialGuessParameter,
InitialGuessPolynomialControl, InitialGuessState, InitialGuessTime)
from aviary.mission.phase_builder_base import PhaseBuilderBase, register
from aviary.mission.initial_guess_builders import InitialGuessState, InitialGuessTime, InitialGuessControl

from aviary.utils.aviary_values import AviaryValues
from aviary.variable_info.variable_meta_data import _MetaData
Expand Down Expand Up @@ -428,11 +427,11 @@ def _extra_ode_init_kwargs(self):
desc='initial guess for horizontal distance traveled')

EnergyPhase._add_initial_guess_meta_data(
InitialGuessState('altitude'),
InitialGuessControl('altitude'),
desc='initial guess for vertical distances')

EnergyPhase._add_initial_guess_meta_data(
InitialGuessState('mach'),
InitialGuessControl('mach'),
desc='initial guess for speed')

EnergyPhase._add_initial_guess_meta_data(
Expand Down
1 change: 0 additions & 1 deletion aviary/mission/gasp_based/ode/climb_ode.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
from aviary.mission.gasp_based.ode.params import ParamPort
from aviary.subsystems.aerodynamics.aerodynamics_builder import AerodynamicsBuilderBase
from aviary.subsystems.propulsion.propulsion_builder import PropulsionBuilderBase
from aviary.subsystems.propulsion.propulsion_mission import PropulsionMission
from aviary.variable_info.enums import AnalysisScheme, AlphaModes, SpeedType
from aviary.variable_info.variables import Dynamic
from aviary.mission.ode.specific_energy_rate import SpecificEnergyRate
Expand Down
264 changes: 0 additions & 264 deletions aviary/mission/gasp_based/phases/2DOF_phase_builder.py

This file was deleted.

Loading

0 comments on commit 2861e87

Please sign in to comment.