OrdinaryDiffEqPRK
Explicit solvers optimized for a certain number of parallel calls of the system of ordinary differential equations f.
Installation
To be able to access the solvers in OrdinaryDiffEqPRK, you must first install them use the Julia package manager:
using Pkg
Pkg.add("OrdinaryDiffEqPRK")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 OrdinaryDiffEqPRK
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, KuttaPRK2p5())Full list of solvers
OrdinaryDiffEqPRK.KuttaPRK2p5 — TypeKuttaPRK2p5(; thread = OrdinaryDiffEq.True())Explicit Runge-Kutta Method A 5 parallel, 2 processor method of 5th order.
Keyword Arguments
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
@article{jackson1995potential, title={The potential for parallelism in Runge–Kutta methods. Part 1: RK formulas in standard form}, author={Jackson, Kenneth R and Norsett, Syvert Paul}, journal={SIAM journal on numerical analysis}, volume={32}, number={1}, pages={49–82}, year={1995}, publisher={SIAM}}