COSMIC WARP

GPU-parallel spacecraft dynamics on NVIDIA Warp.
Thousands to millions of spacecraft step in parallel, in float64, with each
simulate() loop replayed as one CUDA graph.
COSMIC WARP is the simulator, not the application: guidance, control and training algorithms are yours.
What you get
- 6-DOF dynamics with variable mass, in float64; Euler, RK4 (default) or symplectic kick–drift–kick.
- Physics models: point-mass gravity, J2, atmospheric drag, gravity-gradient and magnetic torques, each switchable.
- Actuators: up to 8 thrusters and 4 reaction wheels per spacecraft.
- Batches on the device: one or several spacecraft per environment, sampled resets, domain randomization and termination, all inside the captured step.
- Scenarios in YAML, strictly checked.
- Learning: a vectorized RL environment with adapters for rsl_rl, skrl and rl_games, and gradients through the dynamics.
- Validation: every claim names the test that checks it, against analytic results where they exist.
Where to start
-
Getting started
Install, propagate a batch, fire a thruster, load a YAML scenario.
-
Guides
One task per page: vehicles, actuators, resets, randomization, physics, integrators, scaling, RL and gradients.
-
Examples
Seventeen runnable scripts, from a basic orbit to Monte Carlo campaigns, gradient-based optimization and RL training.
-
Validation
Every claim with the test that checks it.
-
Theory
The equations behind the kernels, and the frames, state and units every number follows.
-
API reference
Generated from the docstrings of every module in
cosmic_warp.