OrdinaryDiffEqBDF
Multistep BDF methods, good for large stiff systems.
3-element Vector{Bool}:
1
1
0Full list of solvers
DAE
OrdinaryDiffEqBDF.DImplicitEuler — TypeDImplicitEuler(; chunk_size = Val{0}(),
autodiff = AutoForwardDiff(),
standardtag = Val{true}(),
concrete_jac = nothing,
linsolve = nothing,
precs = DEFAULT_PRECS,
nlsolve = NLNewton(),
extrapolant = :constant,
controller = :Standard)Multistep Method. Implicit Euler for implicit DAE form. It uses an apriori error estimator for adaptivity based on a finite differencing approximation from SPICE.
Keyword Arguments
autodiff: Uses ADTypes.jl to specify whether to use automatic differentiation via ForwardDiff.jl or finite differencing via FiniteDiff.jl. Defaults toAutoForwardDiff()for automatic differentiation, which by default useschunksize = 0, and thus uses the internal ForwardDiff.jl algorithm for the choice. To useFiniteDiff.jl, theAutoFiniteDiff()ADType can be used, which has a keyword argumentfdtypewith default valueVal{:forward}(), and alternativesVal{:central}()andVal{:complex}().standardtag: Specifies whether to use package-specific tags instead of the ForwardDiff default function-specific tags. For more information, see this blog post. Defaults toVal{true}().concrete_jac: Specifies whether a Jacobian should be constructed. Defaults tonothing, which means it will be chosen true/false depending on circumstances of the solver, such as whether a Krylov subspace method is used forlinsolve.linsolve: Any LinearSolve.jl compatible linear solver. For example, to use KLU.jl, specifyDImplicitEuler(linsolve = KLUFactorization()). Whennothingis passed, usesDefaultLinearSolver.precs: Any LinearSolve.jl-compatible preconditioner can be used as a left or right preconditioner. Preconditioners are specified by thePl,Pr = precs(W,du,u,p,t,newW,Plprev,Prprev,solverdata)function where the arguments are defined as:W: the current Jacobian of the nonlinear system. Specified as either $I - \gamma J$ or $I/\gamma - J$ depending on the algorithm. This will commonly be aWOperatortype defined by OrdinaryDiffEq.jl. It is a lazy representation of the operator. Users can construct the W-matrix on demand by callingconvert(AbstractMatrix,W)to receive anAbstractMatrixmatching thejac_prototype.du: the current ODE derivativeu: the current ODE statep: the ODE parameterst: the current ODE timenewW: aBoolwhich specifies whether theWmatrix has been updated since the last call toprecs. It is recommended that this is checked to only update the preconditioner whennewW == true.Plprev: the previousPl.Prprev: the previousPr.solverdata: Optional extra data the solvers can give to theprecsfunction. Solver-dependent and subject to change.
(Pl,Pr)of the LinearSolve.jl-compatible preconditioners. To specify one-sided preconditioning, simply returnnothingfor the preconditioner which is not used. Additionally,precsmust supply the dispatch:
which is used in the solver setup phase to construct the integrator type with the preconditionersPl, Pr = precs(W, du, u, p, t, ::Nothing, ::Nothing, ::Nothing, solverdata)(Pl,Pr). The default isprecs=DEFAULT_PRECSwhere the default preconditioner function is defined as:
/n-DEFAULT_PRECS(W, du, u, p, t, newW, Plprev, Prprev, solverdata) = nothing, nothingnlsolve: TBDextrapolant: TBDcontroller: TBD
References
OrdinaryDiffEqBDF.DABDF2 — TypeDABDF2(; chunk_size = Val{0}(),
autodiff = AutoForwardDiff(),
standardtag = Val{true}(),
concrete_jac = nothing,
linsolve = nothing,
precs = DEFAULT_PRECS,
nlsolve = NLNewton(),
extrapolant = :constant,
controller = :Standard)Multistep Method. Fully implicit implementation of BDF2.
Keyword Arguments
autodiff: Uses ADTypes.jl to specify whether to use automatic differentiation via ForwardDiff.jl or finite differencing via FiniteDiff.jl. Defaults toAutoForwardDiff()for automatic differentiation, which by default useschunksize = 0, and thus uses the internal ForwardDiff.jl algorithm for the choice. To useFiniteDiff.jl, theAutoFiniteDiff()ADType can be used, which has a keyword argumentfdtypewith default valueVal{:forward}(), and alternativesVal{:central}()andVal{:complex}().standardtag: Specifies whether to use package-specific tags instead of the ForwardDiff default function-specific tags. For more information, see this blog post. Defaults toVal{true}().concrete_jac: Specifies whether a Jacobian should be constructed. Defaults tonothing, which means it will be chosen true/false depending on circumstances of the solver, such as whether a Krylov subspace method is used forlinsolve.linsolve: Any LinearSolve.jl compatible linear solver. For example, to use KLU.jl, specifyDABDF2(linsolve = KLUFactorization()). Whennothingis passed, usesDefaultLinearSolver.precs: Any LinearSolve.jl-compatible preconditioner can be used as a left or right preconditioner. Preconditioners are specified by thePl,Pr = precs(W,du,u,p,t,newW,Plprev,Prprev,solverdata)function where the arguments are defined as:W: the current Jacobian of the nonlinear system. Specified as either $I - \gamma J$ or $I/\gamma - J$ depending on the algorithm. This will commonly be aWOperatortype defined by OrdinaryDiffEq.jl. It is a lazy representation of the operator. Users can construct the W-matrix on demand by callingconvert(AbstractMatrix,W)to receive anAbstractMatrixmatching thejac_prototype.du: the current ODE derivativeu: the current ODE statep: the ODE parameterst: the current ODE timenewW: aBoolwhich specifies whether theWmatrix has been updated since the last call toprecs. It is recommended that this is checked to only update the preconditioner whennewW == true.Plprev: the previousPl.Prprev: the previousPr.solverdata: Optional extra data the solvers can give to theprecsfunction. Solver-dependent and subject to change.
(Pl,Pr)of the LinearSolve.jl-compatible preconditioners. To specify one-sided preconditioning, simply returnnothingfor the preconditioner which is not used. Additionally,precsmust supply the dispatch:
which is used in the solver setup phase to construct the integrator type with the preconditionersPl, Pr = precs(W, du, u, p, t, ::Nothing, ::Nothing, ::Nothing, solverdata)(Pl,Pr). The default isprecs=DEFAULT_PRECSwhere the default preconditioner function is defined as:
/n-DEFAULT_PRECS(W, du, u, p, t, newW, Plprev, Prprev, solverdata) = nothing, nothingnlsolve: TBDextrapolant: TBDcontroller: TBD
References
@article{celaya2014implementation, title={Implementation of an Adaptive BDF2 Formula and Comparison with the MATLAB Ode15s}, author={Celaya, E Alberdi and Aguirrezabala, JJ Anza and Chatzipantelidis, Panagiotis}, journal={Procedia Computer Science}, volume={29}, pages={1014–1026}, year={2014}, publisher={Elsevier}}
OrdinaryDiffEqBDF.DFBDF — TypeDFBDF(; chunk_size = Val{0}(),
autodiff = AutoForwardDiff(),
standardtag = Val{true}(),
concrete_jac = nothing,
linsolve = nothing,
precs = DEFAULT_PRECS,
κ = nothing,
tol = nothing,
nlsolve = NLNewton(),
extrapolant = :linear,
controller = :Standard,
max_order::Val{MO} = Val{5}())Multistep Method. Fully implicit implementation of FBDF based on Shampine's
Keyword Arguments
autodiff: Uses ADTypes.jl to specify whether to use automatic differentiation via ForwardDiff.jl or finite differencing via FiniteDiff.jl. Defaults toAutoForwardDiff()for automatic differentiation, which by default useschunksize = 0, and thus uses the internal ForwardDiff.jl algorithm for the choice. To useFiniteDiff.jl, theAutoFiniteDiff()ADType can be used, which has a keyword argumentfdtypewith default valueVal{:forward}(), and alternativesVal{:central}()andVal{:complex}().standardtag: Specifies whether to use package-specific tags instead of the ForwardDiff default function-specific tags. For more information, see this blog post. Defaults toVal{true}().concrete_jac: Specifies whether a Jacobian should be constructed. Defaults tonothing, which means it will be chosen true/false depending on circumstances of the solver, such as whether a Krylov subspace method is used forlinsolve.linsolve: Any LinearSolve.jl compatible linear solver. For example, to use KLU.jl, specifyDFBDF(linsolve = KLUFactorization()). Whennothingis passed, usesDefaultLinearSolver.precs: Any LinearSolve.jl-compatible preconditioner can be used as a left or right preconditioner. Preconditioners are specified by thePl,Pr = precs(W,du,u,p,t,newW,Plprev,Prprev,solverdata)function where the arguments are defined as:W: the current Jacobian of the nonlinear system. Specified as either $I - \gamma J$ or $I/\gamma - J$ depending on the algorithm. This will commonly be aWOperatortype defined by OrdinaryDiffEq.jl. It is a lazy representation of the operator. Users can construct the W-matrix on demand by callingconvert(AbstractMatrix,W)to receive anAbstractMatrixmatching thejac_prototype.du: the current ODE derivativeu: the current ODE statep: the ODE parameterst: the current ODE timenewW: aBoolwhich specifies whether theWmatrix has been updated since the last call toprecs. It is recommended that this is checked to only update the preconditioner whennewW == true.Plprev: the previousPl.Prprev: the previousPr.solverdata: Optional extra data the solvers can give to theprecsfunction. Solver-dependent and subject to change.
(Pl,Pr)of the LinearSolve.jl-compatible preconditioners. To specify one-sided preconditioning, simply returnnothingfor the preconditioner which is not used. Additionally,precsmust supply the dispatch:
which is used in the solver setup phase to construct the integrator type with the preconditionersPl, Pr = precs(W, du, u, p, t, ::Nothing, ::Nothing, ::Nothing, solverdata)(Pl,Pr). The default isprecs=DEFAULT_PRECSwhere the default preconditioner function is defined as:
/n-DEFAULT_PRECS(W, du, u, p, t, newW, Plprev, Prprev, solverdata) = nothing, nothingκ: TBDtol: TBDnlsolve: TBDextrapolant: TBDcontroller: TBDmax_order: TBD
References
@article{shampine2002solving, title={Solving 0= F (t, y (t), y′(t)) in Matlab}, author={Shampine, Lawrence F}, year={2002}, publisher={Walter de Gruyter GmbH and Co. KG} }