Leapfrog integrator¶
-
class mdk::Leapfrog : public mdk::Integrator
Leapfrog integration algorithm.
Public Functions
-
inline explicit Leapfrog(double dt)
-
virtual void bind(Simulation &simulation) override
Bind an object to a simulation.
- Parameters
simulation – Simulation to bind the object to.
-
virtual void init() override
Initialize the state of the integrator.
-
virtual void integrate() override
-
inline explicit Leapfrog(double dt)