ostk.astrodynamics.trajectory.Sequence¶
- class Sequence(
- self: ostk.astrodynamics.trajectory.Sequence,
- segments: list[ostk.astrodynamics.trajectory.Segment] = [],
- numerical_solver: ostk.astrodynamics.trajectory.state.NumericalSolver = NumericalSolver.default_conditional(),
- dynamics: list[ostk::astrodynamics::Dynamics] = [],
- maximum_propagation_duration: ostk.physics.time.Duration = Duration.days(30.0),
- minimum_maneuver_duration: ostk.physics.time.Duration = Duration.undefined(),
- verbosity: int = 1,
- segments: list[ostk.astrodynamics.trajectory.Segment] = [],
Bases:
pybind11_object
A mission Sequence. Consists of a list of Segment objects and various configuration parameters.
Construct a new Sequence object.
Args: segments (list[Segment], optional): The segments. Defaults to an empty list. numerical_solver (NumericalSolver, optional): The numerical solver. Defaults to the default conditional numerical solver. dynamics (list[Dynamics], optional): The dynamics. Defaults to an empty list. maximum_propagation_duration (Duration, optional): The maximum propagation duration. Defaults to 30 days. minimum_maneuver_duration (Duration, optional): The minimum maneuver duration. Defaults to Undefined. If defined, maneuvers less than this duration will be skipped. verbosity (int, optional): The verbosity level. Defaults to 1.
- Returns:
The new Sequence object.
- Return type:
Methods
Add a coast segment.
Add a maneuver segment.
Add a segment.
Add segments.
Get the dynamics.
Get the maximum propagation duration.
Get the minimum maneuver duration.
Get the numerical solver.
Get the segments.
Solve the sequence.
Solve the sequence until the event condition is met.
- class Solution(
- self: ostk.astrodynamics.trajectory.Sequence.Solution,
- segment_solutions: list[ostk.astrodynamics.trajectory.Segment.Solution],
- execution_is_complete: bool,
- segment_solutions: list[ostk.astrodynamics.trajectory.Segment.Solution],
Bases:
pybind11_object
The Solution object that is returned when a Sequence is solved.
Construct a new Sequence.Solution object.
Args: segment_solutions (list[Segment.Solution]): The segment solutions. execution_is_complete (bool): Whether the execution is complete.
- Returns:
The new Sequence.Solution object.
- Return type:
- access_end_instant( ) ostk.physics.time.Instant ¶
Get the instant at which the access ends.
- Returns:
The instant at which the access ends.
- Return type:
Instant
- access_start_instant( ) ostk.physics.time.Instant ¶
Get the instant at which the access starts.
- Returns:
The instant at which the access starts.
- Return type:
Instant
- calculate_states_at(
- self: ostk.astrodynamics.trajectory.Sequence.Solution,
- instants: list[ostk.physics.time.Instant],
- numerical_solver: ostk.astrodynamics.trajectory.state.NumericalSolver,
- instants: list[ostk.physics.time.Instant],
Calculate states in this sequence's solution at provided instants.
- Parameters:
instants (list[Instant]) -- The instants at which the states will be calculated.
numerical_solver (NumericalSolver) -- The numerical solver used to calculate the states.
- Returns:
The states at the provided instants.
- Return type:
- compute_delta_mass( ) ostk.physics.unit.Mass ¶
Compute the delta mass.
- Returns:
The delta mass.
- Return type:
- compute_delta_v(
- self: ostk.astrodynamics.trajectory.Sequence.Solution,
- specific_impulse: ostk.core.type.Real,
Compute the delta V.
- get_final_mass( ) ostk.physics.unit.Mass ¶
Get the final mass.
- Returns:
The final mass.
- Return type:
- get_initial_mass( ) ostk.physics.unit.Mass ¶
Get the initial mass.
- Returns:
The initial mass.
- Return type:
- get_interval( ) ostk.physics.time.Interval ¶
Get the interval.
- Returns:
The interval.
- Return type:
Interval
- get_propagation_duration( ) ostk.physics.time.Duration ¶
Get the propagation duration.
- Returns:
The propagation duration.
- Return type:
Duration
- get_states( ) list[ostk.astrodynamics.trajectory.State] ¶
Get the states.
- add_coast_segment(
- self: ostk.astrodynamics.trajectory.Sequence,
- event_condition: ostk::astrodynamics::EventCondition,
Add a coast segment.
- Parameters:
event_condition (EventCondition) -- The event condition.
- add_maneuver_segment(
- self: ostk.astrodynamics.trajectory.Sequence,
- event_condition: ostk::astrodynamics::EventCondition,
- thruster_dynamics: ostk::astrodynamics::dynamics::Thruster,
- event_condition: ostk::astrodynamics::EventCondition,
Add a maneuver segment.
- Parameters:
event_condition (EventCondition) -- The event condition.
thruster_dynamics (Thruster) -- The thruster dynamics.
- add_segments(
- self: ostk.astrodynamics.trajectory.Sequence,
- segments: list[ostk.astrodynamics.trajectory.Segment],
Add segments.
- get_dynamics( ) list[ostk::astrodynamics::Dynamics] ¶
Get the dynamics.
- get_maximum_propagation_duration( ) ostk.physics.time.Duration ¶
Get the maximum propagation duration.
- Returns:
The maximum propagation duration.
- Return type:
Duration
- get_minimum_maneuver_duration( ) ostk.physics.time.Duration ¶
Get the minimum maneuver duration.
- Returns:
The minimum maneuver duration.
- Return type:
Duration
- get_numerical_solver( ) ostk.astrodynamics.trajectory.state.NumericalSolver ¶
Get the numerical solver.
- Returns:
The numerical solver.
- Return type:
- get_segments( ) list[ostk.astrodynamics.trajectory.Segment] ¶
Get the segments.
- solve(
- self: ostk.astrodynamics.trajectory.Sequence,
- state: ostk.astrodynamics.trajectory.State,
- repetition_count: int = 1,
- state: ostk.astrodynamics.trajectory.State,
Solve the sequence.
- solve_to_condition(
- self: ostk.astrodynamics.trajectory.Sequence,
- state: ostk.astrodynamics.trajectory.State,
- event_condition: ostk::astrodynamics::EventCondition,
- maximum_propagation_duration_limit: ostk.physics.time.Duration = Duration.days(30.0),
- state: ostk.astrodynamics.trajectory.State,
Solve the sequence until the event condition is met.
In the case that the event condition is not met due to maximum propagation duration limit, it will return the SequenceSolution with executionIsComplete set to False.
- Parameters:
state (State) -- The state.
event_condition (EventCondition) -- The event condition.
maximum_propagation_duration_limit (Duration, optional) -- The maximum propagation duration limit for the sequence. Defaults to 30 days.
- Returns:
The sequence solution.
- Return type:
SequenceSolution