Theory
The models and methods behind every step, each tied to its code. Start with the conventions.
- Frames, state and units — environments, bodies and entities; the inertial and body frames; the momentum state; units and precision.
- Rigid-body dynamics — translational and rotational equations of motion, quaternion kinematics, variable mass and burnout.
- Gravity & J2 — point-mass gravity, the J2 perturbation, gravity-gradient torque.
- Environment models — dipole magnetic field and torque, atmospheric drag.
- Actuator models — reaction wheels and thrusters.
- Numerical integration — Euler, RK4 and symplectic kick–drift–kick; what limits their order.
- Initial-condition sampling — Cartesian boxes, orbital elements, Kepler's equation, attitude distributions.
- GPU execution and the RL step — the fused step kernel, CUDA graphs, termination, resets, and the RL step contract.
- Differentiable dynamics — what the reverse-mode gradients differentiate, and where they are not smooth.
Evidence: Validation. Sources: bibliography.