OrdinaryDiffEqVerner
Preferred solvers for non-stiff problems at low tolerance. Vern6, Vern7, or Vern8 are good methods for tolerances between ~1e-8-1e-12, and using Float64 numbers for the state of the differential equation. For even lower tolerances,Vern9 should be used, combined with the more precise BigFloat number type.
Installation
To be able to access the solvers in OrdinaryDiffEqVerner, you must first install them use the Julia package manager:
using Pkg
Pkg.add("OrdinaryDiffEqVerner")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 OrdinaryDiffEqVerner
function lorenz!(du, u, p, t)
du[1] = 10.0 * (u[2] - u[1])
du[2] = u[1] * (28.0 - u[3]) - u[2]
du[3] = u[1] * u[2] - (8 / 3) * u[3]
end
u0 = [1.0; 0.0; 0.0]
tspan = (0.0, 100.0)
prob = ODEProblem(lorenz!, u0, tspan)
sol = solve(prob, Vern6())Full list of solvers
OrdinaryDiffEqVerner.Vern6 — TypeVern6(; stage_limiter! = OrdinaryDiffEq.trivial_limiter!,
step_limiter! = OrdinaryDiffEq.trivial_limiter!,
thread = OrdinaryDiffEq.False(),
lazy = true)Explicit Runge-Kutta Method. Verner's “Most Efficient” 6/5 Runge-Kutta method. (lazy 6th order interpolant).
Keyword Arguments
stage_limiter!: function of the formlimiter!(u, integrator, p, t)step_limiter!: function of the formlimiter!(u, integrator, p, t)thread: determines whether internal broadcasting on appropriate CPU arrays should be serial (thread = OrdinaryDiffEq.False()) or use multiple threads (thread = OrdinaryDiffEq.True()) when Julia is started with multiple threads.lazy: determines if the lazy interpolant is used.
References
@article{verner2010numerically, title={Numerically optimal Runge–Kutta pairs with interpolants}, author={Verner, James H}, journal={Numerical Algorithms}, volume={53}, number={2-3}, pages={383–396}, year={2010}, publisher={Springer} }
OrdinaryDiffEqVerner.Vern7 — TypeVern7(; stage_limiter! = OrdinaryDiffEq.trivial_limiter!,
step_limiter! = OrdinaryDiffEq.trivial_limiter!,
thread = OrdinaryDiffEq.False(),
lazy = true)Explicit Runge-Kutta Method. Verner's “Most Efficient” 7/6 Runge-Kutta method. (lazy 7th order interpolant).
Keyword Arguments
stage_limiter!: function of the formlimiter!(u, integrator, p, t)step_limiter!: function of the formlimiter!(u, integrator, p, t)thread: determines whether internal broadcasting on appropriate CPU arrays should be serial (thread = OrdinaryDiffEq.False()) or use multiple threads (thread = OrdinaryDiffEq.True()) when Julia is started with multiple threads.lazy: determines if the lazy interpolant is used.
References
@article{verner2010numerically, title={Numerically optimal Runge–Kutta pairs with interpolants}, author={Verner, James H}, journal={Numerical Algorithms}, volume={53}, number={2-3}, pages={383–396}, year={2010}, publisher={Springer} }
OrdinaryDiffEqVerner.Vern8 — TypeVern8(; stage_limiter! = OrdinaryDiffEq.trivial_limiter!,
step_limiter! = OrdinaryDiffEq.trivial_limiter!,
thread = OrdinaryDiffEq.False(),
lazy = true)Explicit Runge-Kutta Method. Verner's “Most Efficient” 8/7 Runge-Kutta method. (lazy 8th order interpolant).
Keyword Arguments
stage_limiter!: function of the formlimiter!(u, integrator, p, t)step_limiter!: function of the formlimiter!(u, integrator, p, t)thread: determines whether internal broadcasting on appropriate CPU arrays should be serial (thread = OrdinaryDiffEq.False()) or use multiple threads (thread = OrdinaryDiffEq.True()) when Julia is started with multiple threads.lazy: determines if the lazy interpolant is used.
References
@article{verner2010numerically, title={Numerically optimal Runge–Kutta pairs with interpolants}, author={Verner, James H}, journal={Numerical Algorithms}, volume={53}, number={2-3}, pages={383–396}, year={2010}, publisher={Springer} }
OrdinaryDiffEqVerner.Vern9 — TypeVern9(; stage_limiter! = OrdinaryDiffEq.trivial_limiter!,
step_limiter! = OrdinaryDiffEq.trivial_limiter!,
thread = OrdinaryDiffEq.False(),
lazy = true)Explicit Runge-Kutta Method. Verner's “Most Efficient” 9/8 Runge-Kutta method. (lazy9th order interpolant).
Keyword Arguments
stage_limiter!: function of the formlimiter!(u, integrator, p, t)step_limiter!: function of the formlimiter!(u, integrator, p, t)thread: determines whether internal broadcasting on appropriate CPU arrays should be serial (thread = OrdinaryDiffEq.False()) or use multiple threads (thread = OrdinaryDiffEq.True()) when Julia is started with multiple threads.lazy: determines if the lazy interpolant is used.
References
@article{verner2010numerically, title={Numerically optimal Runge–Kutta pairs with interpolants}, author={Verner, James H}, journal={Numerical Algorithms}, volume={53}, number={2-3}, pages={383–396}, year={2010}, publisher={Springer} }
OrdinaryDiffEqVerner.AutoVern6 — FunctionAutomatic switching algorithm that can switch between the (non-stiff) Vern6() and stiff_alg.
AutoVern6(stiff_alg; kwargs...)This method is equivalent to AutoAlgSwitch(Vern6(), stiff_alg; kwargs...). To gain access to stiff algorithms you might have to install additional libraries, such as OrdinaryDiffEqRosenbrock.
OrdinaryDiffEqVerner.AutoVern7 — FunctionAutomatic switching algorithm that can switch between the (non-stiff) Vern7() and stiff_alg.
AutoVern7(stiff_alg; kwargs...)This method is equivalent to AutoAlgSwitch(Vern7(), stiff_alg; kwargs...). To gain access to stiff algorithms you might have to install additional libraries, such as OrdinaryDiffEqRosenbrock.
OrdinaryDiffEqVerner.AutoVern8 — FunctionAutomatic switching algorithm that can switch between the (non-stiff) Vern8() and stiff_alg.
AutoVern8(stiff_alg; kwargs...)This method is equivalent to AutoAlgSwitch(Vern8(), stiff_alg; kwargs...). To gain access to stiff algorithms you might have to install additional libraries, such as OrdinaryDiffEqRosenbrock.
OrdinaryDiffEqVerner.AutoVern9 — FunctionAutomatic switching algorithm that can switch between the (non-stiff) Vern9() and stiff_alg.
AutoVern9(stiff_alg; kwargs...)This method is equivalent to AutoAlgSwitch(Vern9(), stiff_alg; kwargs...). To gain access to stiff algorithms you might have to install additional libraries, such as OrdinaryDiffEqRosenbrock.