![]() |
Numerical Tools
1.0
Numerical tools from SciPy and Numerical Methods in Physics with Python
|
Leapfrog solver that runs on a fixed timestep. More...
Inherits NumericalTools.RealtimeIntegratorInterface.
Public Member Functions | |
LeapfrogSolver (Ivp.DiffEqFunction fun, double[] y0, double t0, double dt, params object[] args) | |
double [] | GetStateVectorCloned () |
Get a copy of the state vector. More... | |
void | UpdateStateVector (double[] y_new) |
Additional Inherited Members | |
![]() | |
bool | status |
bool double [] | y |
Leapfrog solver that runs on a fixed timestep.
The diff eqns must be ordered as x[0..n-1], v[0..n-1]
|
inline |
Get a copy of the state vector.
Integrators do not share a reference to their internal state vector.
Implements NumericalTools.RealtimeIntegratorInterface.