|
| 1 | +# FIRK Methods |
| 2 | + |
| 3 | +""" |
| 4 | +@article{hairer1999stiff, |
| 5 | +title={Stiff differential equations solved by Radau methods}, |
| 6 | +author={Hairer, Ernst and Wanner, Gerhard}, |
| 7 | +journal={Journal of Computational and Applied Mathematics}, |
| 8 | +volume={111}, |
| 9 | +number={1-2}, |
| 10 | +pages={93--111}, |
| 11 | +year={1999}, |
| 12 | +publisher={Elsevier} |
| 13 | +} |
| 14 | +
|
| 15 | +RadauIIA3: Fully-Implicit Runge-Kutta Method |
| 16 | +An A-B-L stable fully implicit Runge-Kutta method with internal tableau complex basis transform for efficiency. |
| 17 | +""" |
| 18 | +struct RadauIIA3{CS, AD, F, P, FDT, ST, CJ, Tol, C1, C2, StepLimiter} <: |
| 19 | + OrdinaryDiffEqNewtonAdaptiveAlgorithm{CS, AD, FDT, ST, CJ} |
| 20 | + linsolve::F |
| 21 | + precs::P |
| 22 | + extrapolant::Symbol |
| 23 | + κ::Tol |
| 24 | + maxiters::Int |
| 25 | + fast_convergence_cutoff::C1 |
| 26 | + new_W_γdt_cutoff::C2 |
| 27 | + controller::Symbol |
| 28 | + step_limiter!::StepLimiter |
| 29 | +end |
| 30 | + |
| 31 | +function RadauIIA3(; chunk_size = Val{0}(), autodiff = Val{true}(), |
| 32 | + standardtag = Val{true}(), concrete_jac = nothing, |
| 33 | + diff_type = Val{:forward}, |
| 34 | + linsolve = nothing, precs = DEFAULT_PRECS, |
| 35 | + extrapolant = :dense, fast_convergence_cutoff = 1 // 5, |
| 36 | + new_W_γdt_cutoff = 1 // 5, |
| 37 | + controller = :Predictive, κ = nothing, maxiters = 10, |
| 38 | + step_limiter! = trivial_limiter!) |
| 39 | + RadauIIA3{_unwrap_val(chunk_size), _unwrap_val(autodiff), typeof(linsolve), |
| 40 | + typeof(precs), diff_type, _unwrap_val(standardtag), _unwrap_val(concrete_jac), |
| 41 | + typeof(κ), typeof(fast_convergence_cutoff), |
| 42 | + typeof(new_W_γdt_cutoff), typeof(step_limiter!)}(linsolve, |
| 43 | + precs, |
| 44 | + extrapolant, |
| 45 | + κ, |
| 46 | + maxiters, |
| 47 | + fast_convergence_cutoff, |
| 48 | + new_W_γdt_cutoff, |
| 49 | + controller, |
| 50 | + step_limiter!) |
| 51 | +end |
| 52 | + |
| 53 | +""" |
| 54 | +@article{hairer1999stiff, |
| 55 | +title={Stiff differential equations solved by Radau methods}, |
| 56 | +author={Hairer, Ernst and Wanner, Gerhard}, |
| 57 | +journal={Journal of Computational and Applied Mathematics}, |
| 58 | +volume={111}, |
| 59 | +number={1-2}, |
| 60 | +pages={93--111}, |
| 61 | +year={1999}, |
| 62 | +publisher={Elsevier} |
| 63 | +} |
| 64 | +
|
| 65 | +RadauIIA5: Fully-Implicit Runge-Kutta Method |
| 66 | +An A-B-L stable fully implicit Runge-Kutta method with internal tableau complex basis transform for efficiency. |
| 67 | +""" |
| 68 | +struct RadauIIA5{CS, AD, F, P, FDT, ST, CJ, Tol, C1, C2, StepLimiter} <: |
| 69 | + OrdinaryDiffEqNewtonAdaptiveAlgorithm{CS, AD, FDT, ST, CJ} |
| 70 | + linsolve::F |
| 71 | + precs::P |
| 72 | + smooth_est::Bool |
| 73 | + extrapolant::Symbol |
| 74 | + κ::Tol |
| 75 | + maxiters::Int |
| 76 | + fast_convergence_cutoff::C1 |
| 77 | + new_W_γdt_cutoff::C2 |
| 78 | + controller::Symbol |
| 79 | + step_limiter!::StepLimiter |
| 80 | +end |
| 81 | + |
| 82 | +function RadauIIA5(; chunk_size = Val{0}(), autodiff = Val{true}(), |
| 83 | + standardtag = Val{true}(), concrete_jac = nothing, |
| 84 | + diff_type = Val{:forward}, |
| 85 | + linsolve = nothing, precs = DEFAULT_PRECS, |
| 86 | + extrapolant = :dense, fast_convergence_cutoff = 1 // 5, |
| 87 | + new_W_γdt_cutoff = 1 // 5, |
| 88 | + controller = :Predictive, κ = nothing, maxiters = 10, smooth_est = true, |
| 89 | + step_limiter! = trivial_limiter!) |
| 90 | + RadauIIA5{_unwrap_val(chunk_size), _unwrap_val(autodiff), typeof(linsolve), |
| 91 | + typeof(precs), diff_type, _unwrap_val(standardtag), _unwrap_val(concrete_jac), |
| 92 | + typeof(κ), typeof(fast_convergence_cutoff), |
| 93 | + typeof(new_W_γdt_cutoff), typeof(step_limiter!)}(linsolve, |
| 94 | + precs, |
| 95 | + smooth_est, |
| 96 | + extrapolant, |
| 97 | + κ, |
| 98 | + maxiters, |
| 99 | + fast_convergence_cutoff, |
| 100 | + new_W_γdt_cutoff, |
| 101 | + controller, |
| 102 | + step_limiter!) |
| 103 | +end |
| 104 | + |
| 105 | +""" |
| 106 | +@article{hairer1999stiff, |
| 107 | +title={Stiff differential equations solved by Radau methods}, |
| 108 | +author={Hairer, Ernst and Wanner, Gerhard}, |
| 109 | +journal={Journal of Computational and Applied Mathematics}, |
| 110 | +volume={111}, |
| 111 | +number={1-2}, |
| 112 | +pages={93--111}, |
| 113 | +year={1999}, |
| 114 | +publisher={Elsevier} |
| 115 | +} |
| 116 | +
|
| 117 | +RadauIIA7: Fully-Implicit Runge-Kutta Method |
| 118 | +An A-B-L stable fully implicit Runge-Kutta method with internal tableau complex basis transform for efficiency. |
| 119 | +""" |
| 120 | +struct RadauIIA7{CS, AD, F, P, FDT, ST, CJ, Tol, C1, C2, StepLimiter} <: |
| 121 | + OrdinaryDiffEqNewtonAdaptiveAlgorithm{CS, AD, FDT, ST, CJ} |
| 122 | + linsolve::F |
| 123 | + precs::P |
| 124 | + smooth_est::Bool |
| 125 | + extrapolant::Symbol |
| 126 | + κ::Tol |
| 127 | + maxiters::Int |
| 128 | + fast_convergence_cutoff::C1 |
| 129 | + new_W_γdt_cutoff::C2 |
| 130 | + controller::Symbol |
| 131 | + step_limiter!::StepLimiter |
| 132 | +end |
| 133 | + |
| 134 | +function RadauIIA7(; chunk_size = Val{0}(), autodiff = Val{true}(), |
| 135 | + standardtag = Val{true}(), concrete_jac = nothing, |
| 136 | + diff_type = Val{:forward}, |
| 137 | + linsolve = nothing, precs = DEFAULT_PRECS, |
| 138 | + extrapolant = :dense, fast_convergence_cutoff = 1 // 5, |
| 139 | + new_W_γdt_cutoff = 1 // 5, |
| 140 | + controller = :Predictive, κ = nothing, maxiters = 10, smooth_est = true, |
| 141 | + step_limiter! = trivial_limiter!) |
| 142 | + RadauIIA7{_unwrap_val(chunk_size), _unwrap_val(autodiff), typeof(linsolve), |
| 143 | + typeof(precs), diff_type, _unwrap_val(standardtag), _unwrap_val(concrete_jac), |
| 144 | + typeof(κ), typeof(fast_convergence_cutoff), |
| 145 | + typeof(new_W_γdt_cutoff), typeof(step_limiter!)}(linsolve, |
| 146 | + precs, |
| 147 | + smooth_est, |
| 148 | + extrapolant, |
| 149 | + κ, |
| 150 | + maxiters, |
| 151 | + fast_convergence_cutoff, |
| 152 | + new_W_γdt_cutoff, |
| 153 | + controller, |
| 154 | + step_limiter!) |
| 155 | +end |
0 commit comments