OrdinaryDiffEqBDF
Solvers if your system of ordinary differential equations can be split up into the sum of a stiff and non-stiff part. These are IMEX extensions of common BDF schemes.
Installation
To be able to access the solvers in OrdinaryDiffEqBDF, you must first install them use the Julia package manager:
using Pkg
Pkg.add("OrdinaryDiffEqBDF")This will only install the solvers listed at the bottom of this page. If you want to explore other solvers for your problem, you will need to install some of the other libraries listed in the navigation bar on the left.
Example usage
using OrdinaryDiffEqBDF
f1 = (u, p, t) -> 2u
f2 = (u, p, t) -> 2u
u0 = 1.0
tspan = (0.0, 1.0)
prob = SplitODEProblem(f1, f2, u0, tspan)
sol = solve(prob, SBDF2(), dt = 1 / 10)Full list of solvers
IMEX Multistep
OrdinaryDiffEqBDF.SBDF2 — FunctionSBDF2(;kwargs...)The two-step version of the IMEX multistep methods of
- Uri M. Ascher, Steven J. Ruuth, Brian T. R. Wetton. Implicit-Explicit Methods for Time-Dependent Partial Differential Equations. Society for Industrial and Applied Mathematics. Journal on Numerical Analysis, 32(3), pp 797-823, 1995. doi: https://doi.org/10.1137/0732037
See also SBDF.
OrdinaryDiffEqBDF.SBDF3 — FunctionSBDF3(;kwargs...)The three-step version of the IMEX multistep methods of
- Uri M. Ascher, Steven J. Ruuth, Brian T. R. Wetton. Implicit-Explicit Methods for Time-Dependent Partial Differential Equations. Society for Industrial and Applied Mathematics. Journal on Numerical Analysis, 32(3), pp 797-823, 1995. doi: https://doi.org/10.1137/0732037
See also SBDF.
OrdinaryDiffEqBDF.SBDF4 — FunctionSBDF4(;kwargs...)The four-step version of the IMEX multistep methods of
- Uri M. Ascher, Steven J. Ruuth, Brian T. R. Wetton. Implicit-Explicit Methods for Time-Dependent Partial Differential Equations. Society for Industrial and Applied Mathematics. Journal on Numerical Analysis, 32(3), pp 797-823, 1995. doi: https://doi.org/10.1137/0732037
See also SBDF.
IMEX SDIRK
Note that Implicit Euler is the 1st order BDF method, and is thus implemented here using the same machinery.
OrdinaryDiffEqBDF.IMEXEuler — FunctionIMEXEuler(;kwargs...)The one-step version of the IMEX multistep methods of
- Uri M. Ascher, Steven J. Ruuth, Brian T. R. Wetton. Implicit-Explicit Methods for Time-Dependent Partial Differential Equations. Society for Industrial and Applied Mathematics. Journal on Numerical Analysis, 32(3), pp 797-823, 1995. doi: https://doi.org/10.1137/0732037
When applied to a SplitODEProblem of the form
u'(t) = f1(u) + f2(u)The default IMEXEuler() method uses an update of the form
unew = uold + dt * (f1(unew) + f2(uold))See also SBDF, IMEXEulerARK.
OrdinaryDiffEqBDF.IMEXEulerARK — FunctionIMEXEulerARK(;kwargs...)The one-step version of the IMEX multistep methods of
- Uri M. Ascher, Steven J. Ruuth, Brian T. R. Wetton. Implicit-Explicit Methods for Time-Dependent Partial Differential Equations. Society for Industrial and Applied Mathematics. Journal on Numerical Analysis, 32(3), pp 797-823, 1995. doi: https://doi.org/10.1137/0732037
When applied to a SplitODEProblem of the form
u'(t) = f1(u) + f2(u)A classical additive Runge-Kutta method in the sense of Araújo, Murua, Sanz-Serna (1997) consisting of the implicit and the explicit Euler method given by
y1 = uold + dt * f1(y1)
unew = uold + dt * (f1(unew) + f2(y1))See also SBDF, IMEXEuler.