![]() |
Numerical Tools
1.0
Numerical tools from SciPy and Numerical Methods in Physics with Python
|
A wrapper on all the implementations of ODE numerical integration that can be used in real time. More...
Public Types | |
enum | Itype { LEAPFROG, RK4_LITE, RK23_SCIPY, RK45_SCIPY, DOP853_SCIPY } |
Choice of integrators: LEAPFROG and RK4_LITE are very simple fixed timestep integrators. More... | |
Static Public Member Functions | |
static RealtimeIntegratorInterface | Create (Itype itype, Ivp.DiffEqFunction fun, double[] y0, double t0, double dt=0.1 *1.0/60.0, params object[] args) |
Get the param names for the specified type. Used by the per-chart code in the Manifold editor to control initial setup of each per-chart integrator. More... | |
A wrapper on all the implementations of ODE numerical integration that can be used in real time.
This allows the use of the very simple Leapfrog and RK4 fixed timestep integrators as well as the more complex, time step adaptive SciPy integrators.
NOTE: The DE order for Leapfrog is crucial! See the comments in Leapfrog solver. (Must order y[] as positions then velocities!)
This class is static.
Depending on the choice of integration the setup parameters may differ. The parameters are provided as name/value pairs to allow the editor scripts to present per-integrator options. Currently all parameters are doubles.
Some integrators have built in limits. In general the default values will be ok, but there may be reasons to adjust these in some circumstances.
The more advanced capabilitites of the SciPy integrators (e.g. events and dense output) are not directly configurable from this interface. Direct use of IvpRealtime is needed in those cases.
|
strong |
|
inlinestatic |
Get the param names for the specified type. Used by the per-chart code in the Manifold editor to control initial setup of each per-chart integrator.
itype |