Skip to main content

Module numerical_ode

Module numerical_ode 

Source
Expand description

Numerical ODE solvers with event detection and dense output.

Provides classic RK4, adaptive Dormand-Prince RK45 (with FSAL), implicit Euler, Crank-Nicolson (trapezoidal), BDF2 for stiff systems, zero-crossing event detection, and trajectory storage with interpolation.

Structs§

BDF2
Second-order Backward Differentiation Formula (BDF2) for stiff ODEs.
CrossingEvent
Zero-crossing (event) detected during integration.
DormandPrince45
Dormand-Prince RK45 adaptive integrator with FSAL (First Same As Last).
EventDetection
Zero-crossing event detection via bisection root-finding.
ImplicitEuler
Implicit (backward) Euler integrator for stiff ODEs.
OdeSolution
Stored ODE trajectory with dense output via linear interpolation.
OdeState
Combined time and state vector for an ODE system.
RK4Integrator
Classic 4th-order Runge-Kutta integrator with optional adaptive step size.
Trapezoidal
Trapezoidal (Crank-Nicolson) integrator — second-order accurate, A-stable.