Skip to main content

Module ode

Module ode 

Source
Expand description

Layer 1e — ordinary-differential-equation solvers (Euler, RKF45, Rosenbrock23). Ordinary differential equation solvers for systems dy/dx = f(x, y).

Ports the OpenFOAM ODE layer: user systems implement the [OdeSystem] trait, and one of the concrete steppers integrates them with adaptive step control — [Euler] (explicit 1st order), [Rkf45] (explicit Runge-Kutta- Fehlberg 4(5)), and [Rosenbrock23] (semi-implicit, for stiff systems, requiring a Jacobian). The independent variable x, state y, and step size are bare f64 in the caller’s own units; tolerances are set through [OdeSolverConfig].

Re-exports§

pub use euler::Euler;
pub use rkf45::Rkf45;
pub use rosenbrock23::Rosenbrock23;

Modules§

euler
rkf45
rosenbrock23

Structs§

OdeSolverConfig
Common parameters for the adaptive step-size controller. Defaults match Foam::adaptiveSolver and Foam::ODESolver.

Enums§

OdeError
Failure modes of an adaptive integration.

Traits§

OdeSystem
Abstract ODE system dy/dx = f(x, y). Maps to Foam::ODESystem.