heyoka.model.state_from_rsw_inertial

heyoka.model.state_from_rsw_inertial#

heyoka.model.state_from_rsw_inertial(*, pos: Iterable[expression], vel: Iterable[expression], r: Iterable[expression], v: Iterable[expression]) tuple[list[expression], list[expression]]#

Convert state from the inertial RSW frame.

Added in version 7.9.0.

This function is the inverse of state_to_rsw_inertial(). It takes in input a Cartesian state pos and vel in the inertial RSW frame defined by r and v, and transforms it back to the frame in which r and v are defined.

Please see state_to_rsw_inertial() for details on how the inertial RSW frame is defined.

Parameters:
  • pos – the position vector in the inertial RSW frame.

  • vel – the velocity vector in the inertial RSW frame.

  • r – the Cartesian position of the origin of the inertial RSW frame.

  • v – the Cartesian velocity of the origin of the inertial RSW frame.

Returns:

pos and vel transformed back into the original reference frame.