Skip to main content

Module integrate

Module integrate 

Source
Expand description

Fixed-step integration. The core never looks at the wall clock.

Classical Runge-Kutta 4 with sub-steps. The plan’s default was a semi-implicit scheme; the convergence and energy checks of the standard suite decide, and RK4 with 4 sub-steps passes them without the core having to know which states are positions and which are velocities.

Structs§

Rk4

Constants§

MOST_CUTS
The most parts a base step’s sub-steps are cut into for the machine (Machine::substeps_wanted): a bound on what a step can cost.

Functions§

advance
Advances a machine by one base step dt with the torques held constant, as a drive would.
advance_refined
advance with each sub-step cut as the machine asks from the step’s start (Machine::substeps_wanted, at most MOST_CUTS); the cuts it took.