Numerical Tools  1.0
Numerical tools from SciPy and Numerical Methods in Physics with Python
NumericalTools.LeapfrogSolver Class Reference

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

- Public Attributes inherited from NumericalTools.RealtimeIntegratorInterface
bool status
 
bool double [] y
 

Detailed Description

Leapfrog solver that runs on a fixed timestep.

The diff eqns must be ordered as x[0..n-1], v[0..n-1]

Member Function Documentation

◆ GetStateVectorCloned()

double [] NumericalTools.LeapfrogSolver.GetStateVectorCloned ( )
inline

Get a copy of the state vector.

Integrators do not share a reference to their internal state vector.

Returns

Implements NumericalTools.RealtimeIntegratorInterface.


The documentation for this class was generated from the following file: