heyoka.model.state_from_rsw#
- heyoka.model.state_from_rsw(*, pos: Iterable[expression], vel: Iterable[expression], r: Iterable[expression], v: Iterable[expression]) tuple[list[expression], list[expression]]#
Convert state from the RSW frame.
Added in version 7.9.0.
This function is the inverse of
state_to_rsw(). It takes in input a Cartesian state pos and vel in the 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()for details on how the RSW frame is defined.- Parameters:
pos – the position vector in the RSW frame.
vel – the velocity vector in the RSW frame.
r – the Cartesian position of the origin of the RSW frame.
v – the Cartesian velocity of the origin of the RSW frame.
- Returns:
pos and vel transformed back into the original reference frame.