Skip to main content

step_nbody_3d_verlet

Function step_nbody_3d_verlet 

Source
pub fn step_nbody_3d_verlet(
    bodies: &mut [CelestialBody3D],
    dt_s: f64,
    softening_m: f64,
    include_1pn_gr: bool,
)
Expand description

Advances an N-body system by dt_s seconds using a symplectic Velocity-Verlet step.

Completely zero-heap; requires bodies.len() <= MAX_STACK_BODIES.