ssapy_toolkit.Integrators.int_utils

Functions

build_profile(profile, t_arr)

Build an (n,) acceleration-magnitude profile aligned to t_arr.

precompute_third_body_positions(t, body_name)

Precompute an interpolated position function for a third body (Moon/Sun/etc.).

ssapy_toolkit.Integrators.int_utils.build_profile(profile, t_arr)[source]

Build an (n,) acceleration-magnitude profile aligned to t_arr.

Supports: - None -> zeros - scalar -> constant - array-like length n -> pass-through - dict or list of dict segments with keys:

start, end, thrust (or accel)

where start/end can be indices or times (searched in t_arr).

  • tuple segments: (start, thrust) or (start, end, thrust)

ssapy_toolkit.Integrators.int_utils.precompute_third_body_positions(t, body_name)[source]

Precompute an interpolated position function for a third body (Moon/Sun/etc.). Returns a callable pos(t_query) -> (N,3) position array.