Class RK4¶
Defined in File integrator.h
Inheritance Relationships¶
Base Type¶
public lupnt::Integrator(Class Integrator)
Class Documentation¶
-
class RK4 : public lupnt::Integrator¶
Classical 4th-order Runge-Kutta (RK4) fixed-step integrator.
default_integratorforNumericalOrbitDynamicsand other numerical dynamics models; a simple, computationally cheap fixed-step method appropriate whendtis small relative to the dynamics’ time scales.Public Functions
-
virtual State Step(const ODE &f, Real t, const State &x, Real dt)¶
One step of classical 4th-order Runge-Kutta integration: evaluates
fat 4 stages spanning[t, t+dt]and averages the resulting derivatives.- Parameters:
f – Right-hand side
dx/dt = f(t, x)t – Current time [s]
x – Current state
dt – Step size [s]
- Returns:
State after stepping by
dt
-
virtual State Step(const ODE &f, Real t, const State &x, Real dt)¶