ostk.astrodynamics.solver.TemporalConditionSolver

class TemporalConditionSolver(
self: ostk.astrodynamics.solver.TemporalConditionSolver,
time_step: ostk.physics.time.Duration,
tolerance: ostk.physics.time.Duration,
maximum_iteration_count: int = 500,
)

Bases: pybind11_object

Given a set of conditions and a time interval, the solver computes all sub-intervals over which conditions are met.

Constructor.

Parameters:
  • time_step (Duration) -- The time step.

  • tolerance (Duration) -- The tolerance of the solver.

  • maximum_iteration_count (int) -- The maximum number of iterations allowed.

Methods

get_maximum_iteration_count

Get the maximum number of iterations allowed.

get_time_step

Get the time step.

get_tolerance

Get the tolerance.

solve

Overloaded function.

get_maximum_iteration_count(
self: ostk.astrodynamics.solver.TemporalConditionSolver,
) int

Get the maximum number of iterations allowed.

Returns:

The maximum number of iterations allowed.

Return type:

int

get_time_step(
self: ostk.astrodynamics.solver.TemporalConditionSolver,
) ostk.physics.time.Duration

Get the time step.

Returns:

The time step.

Return type:

Duration

get_tolerance(
self: ostk.astrodynamics.solver.TemporalConditionSolver,
) ostk.physics.time.Duration

Get the tolerance.

Returns:

The tolerance.

Return type:

Duration

solve(*args, **kwargs)

Overloaded function.

  1. solve(self: ostk.astrodynamics.solver.TemporalConditionSolver, condition: Callable[[ostk.physics.time.Instant], bool], interval: ostk.physics.time.Interval) -> list[ostk.physics.time.Interval]

    Solve a temporal condition.

    Args:

    condition (function): The condition to solve. interval (Interval): The interval to solve the condition over.

    Returns:

    Duration: The time at which the condition is satisfied.

  2. solve(self: ostk.astrodynamics.solver.TemporalConditionSolver, conditions: list[Callable[[ostk.physics.time.Instant], bool]], interval: ostk.physics.time.Interval) -> list[ostk.physics.time.Interval]

    Solve an array of temporal conditions.

    Args:

    conditions (list): The conditions to solve. interval (Interval): The interval to solve the conditions over.

    Returns:

    list: The times at which the conditions are satisfied.