-
Notifications
You must be signed in to change notification settings - Fork 74
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #166 from johnjasa/combine_builders
Combine phase builders using shared class
- Loading branch information
Showing
11 changed files
with
353 additions
and
507 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
import dymos as dm | ||
|
||
from aviary.mission.flight_phase_builder import FlightPhaseBase, register | ||
from aviary.mission.initial_guess_builders import InitialGuessIntegrationVariable, InitialGuessState | ||
|
||
from aviary.utils.aviary_values import AviaryValues | ||
from aviary.mission.flops_based.ode.mission_ODE import MissionODE | ||
|
||
|
||
# TODO: support/handle the following in the base class | ||
# - phase.set_time_options() | ||
# - currently handled in level 3 interface implementation | ||
# - self.external_subsystems | ||
# - self.meta_data, with cls.default_meta_data customization point | ||
@register | ||
class EnergyPhase(FlightPhaseBase): | ||
|
||
default_ode_class = MissionODE | ||
|
||
|
||
EnergyPhase._add_initial_guess_meta_data( | ||
InitialGuessIntegrationVariable(), | ||
desc='initial guess for initial time and duration specified as a tuple') | ||
|
||
EnergyPhase._add_initial_guess_meta_data( | ||
InitialGuessState('distance'), | ||
desc='initial guess for horizontal distance traveled') |
Oops, something went wrong.