ostk.astrodynamics.trajectory.Model

class Model

Bases: pybind11_object

Trajectory model.

Methods

calculate_state_at

Calculate the state at a given instant.

calculate_states_at

Calculate the states at given instants.

is_defined

Check if the model is defined.

calculate_state_at(
self: ostk.astrodynamics.trajectory.Model,
instant: ostk.physics.time.Instant,
) ostk.astrodynamics.trajectory.State

Calculate the state at a given instant.

Parameters:

instant (Instant) -- The instant.

Returns:

The state at the given instant.

Return type:

State

calculate_states_at(
self: ostk.astrodynamics.trajectory.Model,
instants: list[ostk.physics.time.Instant],
) list[ostk.astrodynamics.trajectory.State]

Calculate the states at given instants. It can be more performant than looping calculate_state_at for multiple instants.

@param instants The instants.

Returns:

The states at the given instants.

Return type:

Array<State>

is_defined(self: ostk.astrodynamics.trajectory.Model) bool

Check if the model is defined.

Returns:

True if the model is defined, False otherwise.

Return type:

bool