Function lupnt::GetBodyData(BodyId)

Function Documentation

BodyData lupnt::GetBodyData(BodyId id)

Look up physical and frame metadata (GM, radius, flattening, sidereal rate, fixed/inertial frames) for a solar-system body, in SI units.

Used throughout the simulator — e.g. by Occultation::ComputeOccultation to get an occulting body’s radius/name, by GroundStation and JointOrbitClockDynamics::RelativisticRate to get the central body’s GM and frames, and by frame-conversion/plotting code — as the single source of truth for body constants instead of hardcoded globals.

Parameters:

idBody identifier (e.g. BodyId::EARTH, BodyId::MOON)

Returns:

BodyData with GM [m^3/s^2], R [m], flattening, omega [rad/s], and fixed/inertial Frames