OrdinaryDiffEqExtrapolation
Solvers based on within method parallelism, allowing multithreading of the solution across different values of f. The explicit extrapolation solvers are generally outclassed by other explicit methods. However, some stiff extrapolation methods perform very well if the problem is sufficiently stiff.
Installation
To be able to access the solvers in OrdinaryDiffEqExtrapolation, you must first install them use the Julia package manager:
using Pkg
Pkg.add("OrdinaryDiffEqExtrapolation")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 OrdinaryDiffEqExtrapolation
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, ExtrapolationMidpointDeuflhard())Full list of solvers
OrdinaryDiffEqExtrapolation.AitkenNeville — TypeAitkenNeville(; max_order::Int = 10,
min_order::Int = 1,
init_order = 3,
thread = OrdinaryDiffEq.False())Parallelized Explicit Extrapolation Method. Euler extrapolation using Aitken-Neville with the Romberg Sequence.
Keyword Arguments
max_order: maximum order of the adaptive order algorithm.min_order: minimum order of the adaptive order algorithm.init_order: initial order of the adaptive order algorithm.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.
References
@inproceedings{elrod2022parallelizing, title={Parallelizing explicit and implicit extrapolation methods for ordinary differential equations}, author={Elrod, Chris and Ma, Yingbo and Althaus, Konstantin and Rackauckas, Christopher and others}, booktitle={2022 IEEE High Performance Extreme Computing Conference (HPEC)}, pages={1–9}, year={2022}, organization={IEEE}}
OrdinaryDiffEqExtrapolation.ExtrapolationMidpointDeuflhard — TypeExtrapolationMidpointDeuflhard(; max_order = 10,
min_order = 1,
init_order = 5,
thread = OrdinaryDiffEq.True(),
sequence = :harmonic,
sequence_factor = 2)Parallelized Explicit Extrapolation Method. Midpoint extrapolation using Barycentric coordinates.
Keyword Arguments
max_order: maximum order of the adaptive order algorithm.min_order: minimum order of the adaptive order algorithm.init_order: initial order of the adaptive order algorithm.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.sequence: the step-number sequences, also called the subdividing sequence. Possible values are:harmonic,:rombergor:bulirsch.sequence_factor: denotes which even multiple of sequence to take while evaluating internal discretizations.
References
@inproceedings{elrod2022parallelizing, title={Parallelizing explicit and implicit extrapolation methods for ordinary differential equations}, author={Elrod, Chris and Ma, Yingbo and Althaus, Konstantin and Rackauckas, Christopher and others}, booktitle={2022 IEEE High Performance Extreme Computing Conference (HPEC)}, pages={1–9}, year={2022}, organization={IEEE}}
OrdinaryDiffEqExtrapolation.ExtrapolationMidpointHairerWanner — TypeExtrapolationMidpointHairerWanner(; max_order = 10,
min_order = 2,
init_order = 5,
thread = OrdinaryDiffEq.True(),
sequence = :harmonic,
sequence_factor = 2)Parallelized Explicit Extrapolation Method. Midpoint extrapolation using Barycentric coordinates, following Hairer's ODEX in the adaptivity behavior.
Keyword Arguments
max_order: maximum order of the adaptive order algorithm.min_order: minimum order of the adaptive order algorithm.init_order: initial order of the adaptive order algorithm.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.sequence: the step-number sequences, also called the subdividing sequence. Possible values are:harmonic,:rombergor:bulirsch.sequence_factor: denotes which even multiple of sequence to take while evaluating internal discretizations.
References
@inproceedings{elrod2022parallelizing, title={Parallelizing explicit and implicit extrapolation methods for ordinary differential equations}, author={Elrod, Chris and Ma, Yingbo and Althaus, Konstantin and Rackauckas, Christopher and others}, booktitle={2022 IEEE High Performance Extreme Computing Conference (HPEC)}, pages={1–9}, year={2022}, organization={IEEE}}