diffeqzoo.ivps Package#
Initial value problem examples.
This module provides a number of example implementations of initial value problems (IVPs). IVPs are a combination of an ordinary differential equation
and an initial condition \(u(0) = u_0\). The initial values \(u_0\) and the vector field \(f\) are known, the parameters \(\theta\) might be known, and \(u\) is unknown.
The functions in this module construct implementations of this kind of problem. They (loosely) follow the input/output rule
f, u0, (t0, tmax), param = constructor()
where the constructor is, e.g., lotka_volterra()
or sir().
This API specification is only loose, because every problem is different.
For example, second-order problems implement a second-order differential
equation
subject to the initial conditions
\(u(0) = u_0\) and \(\dot u(0) = u_1\).
For these problems (e.g., three_body_restricted() or van_der_pol()),
there are two initial values:
f, (u0, u1), (t0, tmax), param = constructor()
We try to stick as closely as possible to the above signature, but if problem-specific issues arise, we allow ourselves to deviate from this specification. When in doubt, consult the documentation of the respect constructor function.
Functions#
|
Construct an IVP with an affine vector field. |
|
Construct an IVP with an affine vector field, where each dimension is treated independently. |
|
Construct the FitzHugh-Nagumo model. |
|
Construct the Goodwin Oscillator dynamics. |
|
Discretised heat equation in 1d with Dirichlet boundary. |
|
Construct the Henon-Heiles problem. |
|
Construct the Henon-Heiles problem as a first-order differential equation. |
Construct the Henon-Heiles problem as \(\ddot u(t) = f(u(t), \dot u(t))\) (with an unused second argument). |
|
|
Construct the High Irradiance Response (HIRES) problem. |
|
Construct the logistic ODE model. |
|
Construct the Lorenz63 model. |
|
Construct the Lorenz96 model. |
|
Construct the Lotka--Volterra / predator-prey model. |
|
Construct an IVP with a neural ODE vector field. |
|
Construct the Nonlinear Chemical Reaction dynamics. |
|
Construct the scaled Oregonator Mass-Action dynamics in a well-stirred, homogeneous system. |
|
Construct the Pleiades problem in its original, second-order form. |
|
Construct the Pleiades problem as a first-order differential equation. |
Construct the Pleiades problem as \(\ddot u(t) = f(u(t), \dot u(t))\) (with an unused second argument). |
|
|
Construct the rigid body dynamics without external forces. |
|
Construct the ROBER problem due to Robertson (1966). |
|
Construct the Roessler model. |
|
Construct the SEIR model. |
|
Construct the SIR model without vital dynamics. |
|
Construct the SIRD model. |
|
Construct the restricted three-body problem as a second-order differential equation. |
|
Construct the restricted three-body problem as a first-order differential equation. |
|
Construct the Van-der-Pol system as a second-order differential equation. |
|
Construct the Van-der-Pol system as a first-order differential equation. |