numerical-collection-cpp 0.10.0
A collection of algorithms in numerical analysis implemented in C++
|
Class of RODASP formula for Rosenbrock method. More...
#include <num_collect/ode/rosenbrock/rodasp_formula.h>
Public Types | |
using | base_type |
Type of base class. | |
using | equation_solver_type |
Type of class to solve equations in Rosenbrock methods. | |
Public Types inherited from num_collect::ode::rosenbrock::rosenbrock_formula_base< Derived, Problem, EquationSolver > | |
using | base_type = formula_base<Derived, Problem> |
Type of base class. | |
using | equation_solver_type = EquationSolver |
Type of class to solve equations in Rosenbrock methods. | |
using | problem_type |
Type of problem. | |
using | scalar_type |
Type of scalars. | |
using | variable_type |
Type of variables. | |
Public Types inherited from num_collect::ode::formula_base< Derived, Problem > | |
using | problem_type = Problem |
Type of problem. | |
using | scalar_type = typename problem_type::scalar_type |
Type of scalars. | |
using | variable_type = typename problem_type::variable_type |
Type of variables. | |
Public Member Functions | |
rodasp_formula (const problem_type &problem) | |
Constructor. | |
auto | equation_solver () -> equation_solver_type & |
Access the solver of equations in Rosenbrock methods. | |
auto | equation_solver () const -> const equation_solver_type & |
Access the solver of equations in Rosenbrock methods. | |
void | step (scalar_type time, scalar_type step_size, const variable_type ¤t, variable_type &estimate) |
Compute the next variable. | |
void | step_embedded (scalar_type time, scalar_type step_size, const variable_type ¤t, variable_type &estimate, variable_type &error) |
Compute the next variable and weak estimate of it with embedded formula. | |
Public Member Functions inherited from num_collect::ode::rosenbrock::rosenbrock_formula_base< Derived, Problem, EquationSolver > | |
rosenbrock_formula_base (const problem_type &problem, const scalar_type &inverted_jacobian_coeff) | |
Constructor. | |
auto | equation_solver () -> equation_solver_type & |
Access the solver of equations in Rosenbrock methods. | |
auto | equation_solver () const -> const equation_solver_type & |
Access the solver of equations in Rosenbrock methods. | |
auto | tolerances (const error_tolerances< variable_type > &val) -> Derived & |
Set the error tolerances. | |
Public Member Functions inherited from num_collect::ode::formula_base< Derived, Problem > | |
formula_base (const problem_type &problem=problem_type()) | |
Constructor. | |
auto | problem () -> problem_type & |
Get the problem. | |
auto | problem () const -> const problem_type & |
Get the problem. | |
void | step (scalar_type time, scalar_type step_size, const variable_type ¤t, variable_type &estimate) |
Compute the next variable. | |
Static Public Attributes | |
static constexpr index_type | lesser_order = 3 |
Order of lesser coefficients of this formula. | |
static constexpr auto | log_tag |
Log tag. | |
static constexpr index_type | order = 4 |
Order of this formula. | |
static constexpr index_type | stages = 6 |
Number of stages of this formula. | |
Coefficients in Rosenbrock method. | |
| |
static constexpr scalar_type | a21 = coeff(0.75) |
static constexpr scalar_type | a31 = coeff(8.6120400814152190e-2) |
static constexpr scalar_type | a32 = coeff(0.1238795991858478) |
static constexpr scalar_type | a41 = coeff(0.7749345355073236) |
static constexpr scalar_type | a42 = coeff(0.1492651549508680) |
static constexpr scalar_type | a43 = coeff(-0.2941996904581916) |
static constexpr scalar_type | a51 = coeff(5.308746682646142) |
static constexpr scalar_type | a52 = coeff(1.330892140037269) |
static constexpr scalar_type | a53 = coeff(-5.374137811655562) |
static constexpr scalar_type | a54 = coeff(-0.2655010110278497) |
static constexpr scalar_type | a61 = coeff(-1.764437648774483) |
static constexpr scalar_type | a62 = coeff(-0.4747565572063027) |
static constexpr scalar_type | a63 = coeff(2.369691846915802) |
static constexpr scalar_type | a64 = coeff(0.6195023590649829) |
static constexpr scalar_type | a65 = coeff(0.25) |
static constexpr scalar_type | b1 = coeff(0) |
static constexpr scalar_type | b2 = a21 |
static constexpr scalar_type | b3 = a31 + a32 |
static constexpr scalar_type | b4 = a41 + a42 + a43 |
static constexpr scalar_type | b5 = a51 + a52 + a53 + a54 |
static constexpr scalar_type | b6 = a61 + a62 + a63 + a64 + a65 |
static constexpr scalar_type | g21 = coeff(-0.75) |
static constexpr scalar_type | g31 = coeff(-0.1355124008141522) |
static constexpr scalar_type | g32 = coeff(-0.1379915991858478) |
static constexpr scalar_type | g41 = coeff(-1.2569840048950798) |
static constexpr scalar_type | g42 = coeff(-0.2501447105064236) |
static constexpr scalar_type | g43 = coeff(1.2209287154015032) |
static constexpr scalar_type | g51 = coeff(-7.073184331420625) |
static constexpr scalar_type | g52 = coeff(-1.805648697243572) |
static constexpr scalar_type | g53 = coeff(7.7438296585713635) |
static constexpr scalar_type | g54 = coeff(0.8850033700928326) |
static constexpr scalar_type | g61 = coeff(1.6840692779853665) |
static constexpr scalar_type | g62 = coeff(0.41826594361385516) |
static constexpr scalar_type | g63 = coeff(-1.8814062168730028) |
static constexpr scalar_type | g64 = coeff(-0.11378614758336392) |
static constexpr scalar_type | g65 = coeff(-0.3571428571428569) |
static constexpr scalar_type | g = coeff(0.25) |
static constexpr scalar_type | g1 = g |
static constexpr scalar_type | g2 = g21 + g |
static constexpr scalar_type | g3 = g31 + g32 + g |
static constexpr scalar_type | g4 = g41 + g42 + g43 + g |
static constexpr scalar_type | g5 = g51 + g52 + g53 + g54 + g |
static constexpr scalar_type | g6 = g61 + g62 + g63 + g64 + g65 + g |
static constexpr scalar_type | c1 = coeff(-8.0368370789113464e-2) |
static constexpr scalar_type | c2 = coeff(-5.6490613592447572e-2) |
static constexpr scalar_type | c3 = coeff(0.4882856300427991) |
static constexpr scalar_type | c4 = coeff(0.5057162114816189) |
static constexpr scalar_type | c5 = coeff(-0.1071428571428569) |
static constexpr scalar_type | c6 = coeff(0.25) |
static constexpr scalar_type | cw1 = coeff(-1.764437648774483) |
static constexpr scalar_type | cw2 = coeff(-0.4747565572063027) |
static constexpr scalar_type | cw3 = coeff(2.369691846915802) |
static constexpr scalar_type | cw4 = coeff(0.6195023590649829) |
static constexpr scalar_type | cw5 = coeff(0.25) |
static constexpr scalar_type | ce1 = c1 - cw1 |
static constexpr scalar_type | ce2 = c2 - cw2 |
static constexpr scalar_type | ce3 = c3 - cw3 |
static constexpr scalar_type | ce4 = c4 - cw4 |
static constexpr scalar_type | ce5 = c5 - cw5 |
static constexpr scalar_type | ce6 = c6 |
Private Attributes | |
variable_type | temp_rhs_ {} |
Temporary right-hand-side vector. | |
variable_type | temp_var_ {} |
Temporary variable. | |
Intermediate variables. | |
variable_type | k1_ {} |
variable_type | k2_ {} |
variable_type | k3_ {} |
variable_type | k4_ {} |
variable_type | k5_ {} |
variable_type | k6_ {} |
Additional Inherited Members | |
Protected Member Functions inherited from num_collect::ode::rosenbrock::rosenbrock_formula_base< Derived, Problem, EquationSolver > | |
auto | derived () const noexcept -> const Derived & |
Access derived object. | |
auto | derived () noexcept -> Derived & |
Access derived object. | |
Protected Member Functions inherited from num_collect::ode::formula_base< Derived, Problem > | |
auto | derived () const noexcept -> const Derived & |
Access derived object. | |
auto | derived () noexcept -> Derived & |
Access derived object. | |
Static Protected Member Functions inherited from num_collect::ode::rosenbrock::rosenbrock_formula_base< Derived, Problem, EquationSolver > | |
template<typename T > | |
static constexpr auto | coeff (T val) -> scalar_type |
Convert coefficients. | |
template<typename T1 , typename T2 > | |
static constexpr auto | coeff (T1 num, T2 den) -> scalar_type |
Create coefficients. | |
Static Protected Member Functions inherited from num_collect::ode::formula_base< Derived, Problem > | |
template<typename T > | |
static constexpr auto | coeff (T val) -> scalar_type |
Convert coefficients. | |
template<typename T1 , typename T2 > | |
static constexpr auto | coeff (T1 num, T2 den) -> scalar_type |
Create coefficients. | |
Class of RODASP formula for Rosenbrock method.
Problem | Type of problem. |
EquationSolver | Type of class to solve equations in Rosenbrock methods. |
Definition at line 45 of file rodasp_formula.h.
using num_collect::ode::rosenbrock::rodasp_formula< Problem, EquationSolver >::base_type |
Type of base class.
Definition at line 50 of file rodasp_formula.h.
using num_collect::ode::rosenbrock::rosenbrock_formula_base< Derived, Problem, EquationSolver >::equation_solver_type |
Type of class to solve equations in Rosenbrock methods.
Definition at line 49 of file rosenbrock_formula_base.h.
|
inlineexplicit |
|
inlinenodiscard |
Access the solver of equations in Rosenbrock methods.
Definition at line 97 of file rosenbrock_formula_base.h.
|
inlinenodiscard |
Access the solver of equations in Rosenbrock methods.
Definition at line 88 of file rosenbrock_formula_base.h.
|
inline |
Compute the next variable.
[in] | time | Current time. |
[in] | step_size | Step size. |
[in] | current | Current variable. |
[out] | estimate | Estimate of the next variable. |
Definition at line 174 of file rodasp_formula.h.
|
inline |
Compute the next variable and weak estimate of it with embedded formula.
[in] | time | Current time. |
[in] | step_size | Step size. |
[in] | current | Current variable. |
[out] | estimate | Estimate of the next variable. |
[out] | error | Estimate of error. |
Definition at line 190 of file rodasp_formula.h.
|
staticconstexpr |
Coefficient in Rosenbrock method.
Definition at line 97 of file rodasp_formula.h.
|
staticconstexpr |
Coefficient in Rosenbrock method.
Definition at line 98 of file rodasp_formula.h.
|
staticconstexpr |
Coefficient in Rosenbrock method.
Definition at line 99 of file rodasp_formula.h.
|
staticconstexpr |
Coefficient in Rosenbrock method.
Definition at line 100 of file rodasp_formula.h.
|
staticconstexpr |
Coefficient in Rosenbrock method.
Definition at line 101 of file rodasp_formula.h.
|
staticconstexpr |
Coefficient in Rosenbrock method.
Definition at line 102 of file rodasp_formula.h.
|
staticconstexpr |
Coefficient in Rosenbrock method.
Definition at line 103 of file rodasp_formula.h.
|
staticconstexpr |
Coefficient in Rosenbrock method.
Definition at line 104 of file rodasp_formula.h.
|
staticconstexpr |
Coefficient in Rosenbrock method.
Definition at line 105 of file rodasp_formula.h.
|
staticconstexpr |
Coefficient in Rosenbrock method.
Definition at line 106 of file rodasp_formula.h.
|
staticconstexpr |
Coefficient in Rosenbrock method.
Definition at line 107 of file rodasp_formula.h.
|
staticconstexpr |
Coefficient in Rosenbrock method.
Definition at line 108 of file rodasp_formula.h.
|
staticconstexpr |
Coefficient in Rosenbrock method.
Definition at line 109 of file rodasp_formula.h.
|
staticconstexpr |
Coefficient in Rosenbrock method.
Definition at line 110 of file rodasp_formula.h.
|
staticconstexpr |
Coefficient in Rosenbrock method.
Definition at line 111 of file rodasp_formula.h.
|
staticconstexpr |
Coefficient in Rosenbrock method.
Definition at line 113 of file rodasp_formula.h.
|
staticconstexpr |
Coefficient in Rosenbrock method.
Definition at line 114 of file rodasp_formula.h.
|
staticconstexpr |
Coefficient in Rosenbrock method.
Definition at line 115 of file rodasp_formula.h.
|
staticconstexpr |
Coefficient in Rosenbrock method.
Definition at line 116 of file rodasp_formula.h.
|
staticconstexpr |
Coefficient in Rosenbrock method.
Definition at line 117 of file rodasp_formula.h.
|
staticconstexpr |
Coefficient in Rosenbrock method.
Definition at line 118 of file rodasp_formula.h.
|
staticconstexpr |
Coefficient in Rosenbrock method.
Definition at line 144 of file rodasp_formula.h.
|
staticconstexpr |
Coefficient in Rosenbrock method.
Definition at line 145 of file rodasp_formula.h.
|
staticconstexpr |
Coefficient in Rosenbrock method.
Definition at line 146 of file rodasp_formula.h.
|
staticconstexpr |
Coefficient in Rosenbrock method.
Definition at line 147 of file rodasp_formula.h.
|
staticconstexpr |
Coefficient in Rosenbrock method.
Definition at line 148 of file rodasp_formula.h.
|
staticconstexpr |
Coefficient in Rosenbrock method.
Definition at line 149 of file rodasp_formula.h.
|
staticconstexpr |
Coefficient in Rosenbrock method.
Definition at line 157 of file rodasp_formula.h.
|
staticconstexpr |
Coefficient in Rosenbrock method.
Definition at line 158 of file rodasp_formula.h.
|
staticconstexpr |
Coefficient in Rosenbrock method.
Definition at line 159 of file rodasp_formula.h.
|
staticconstexpr |
Coefficient in Rosenbrock method.
Definition at line 160 of file rodasp_formula.h.
|
staticconstexpr |
Coefficient in Rosenbrock method.
Definition at line 161 of file rodasp_formula.h.
|
staticconstexpr |
Coefficient in Rosenbrock method.
Definition at line 162 of file rodasp_formula.h.
|
staticconstexpr |
Coefficient in Rosenbrock method.
Definition at line 151 of file rodasp_formula.h.
|
staticconstexpr |
Coefficient in Rosenbrock method.
Definition at line 152 of file rodasp_formula.h.
|
staticconstexpr |
Coefficient in Rosenbrock method.
Definition at line 153 of file rodasp_formula.h.
|
staticconstexpr |
Coefficient in Rosenbrock method.
Definition at line 154 of file rodasp_formula.h.
|
staticconstexpr |
Coefficient in Rosenbrock method.
Definition at line 155 of file rodasp_formula.h.
|
staticconstexpr |
Coefficient in Rosenbrock method.
Definition at line 135 of file rodasp_formula.h.
|
staticconstexpr |
Coefficient in Rosenbrock method.
Definition at line 137 of file rodasp_formula.h.
|
staticconstexpr |
Coefficient in Rosenbrock method.
Definition at line 138 of file rodasp_formula.h.
|
staticconstexpr |
Coefficient in Rosenbrock method.
Definition at line 120 of file rodasp_formula.h.
|
staticconstexpr |
Coefficient in Rosenbrock method.
Definition at line 139 of file rodasp_formula.h.
|
staticconstexpr |
Coefficient in Rosenbrock method.
Definition at line 121 of file rodasp_formula.h.
|
staticconstexpr |
Coefficient in Rosenbrock method.
Definition at line 122 of file rodasp_formula.h.
|
staticconstexpr |
Coefficient in Rosenbrock method.
Definition at line 140 of file rodasp_formula.h.
|
staticconstexpr |
Coefficient in Rosenbrock method.
Definition at line 123 of file rodasp_formula.h.
|
staticconstexpr |
Coefficient in Rosenbrock method.
Definition at line 124 of file rodasp_formula.h.
|
staticconstexpr |
Coefficient in Rosenbrock method.
Definition at line 125 of file rodasp_formula.h.
|
staticconstexpr |
Coefficient in Rosenbrock method.
Definition at line 141 of file rodasp_formula.h.
|
staticconstexpr |
Coefficient in Rosenbrock method.
Definition at line 126 of file rodasp_formula.h.
|
staticconstexpr |
Coefficient in Rosenbrock method.
Definition at line 127 of file rodasp_formula.h.
|
staticconstexpr |
Coefficient in Rosenbrock method.
Definition at line 128 of file rodasp_formula.h.
|
staticconstexpr |
Coefficient in Rosenbrock method.
Definition at line 129 of file rodasp_formula.h.
|
staticconstexpr |
Coefficient in Rosenbrock method.
Definition at line 142 of file rodasp_formula.h.
|
staticconstexpr |
Coefficient in Rosenbrock method.
Definition at line 130 of file rodasp_formula.h.
|
staticconstexpr |
Coefficient in Rosenbrock method.
Definition at line 131 of file rodasp_formula.h.
|
staticconstexpr |
Coefficient in Rosenbrock method.
Definition at line 132 of file rodasp_formula.h.
|
staticconstexpr |
Coefficient in Rosenbrock method.
Definition at line 133 of file rodasp_formula.h.
|
staticconstexpr |
Coefficient in Rosenbrock method.
Definition at line 134 of file rodasp_formula.h.
|
private |
Intermediate variable.
Definition at line 274 of file rodasp_formula.h.
|
private |
Intermediate variable.
Definition at line 275 of file rodasp_formula.h.
|
private |
Intermediate variable.
Definition at line 276 of file rodasp_formula.h.
|
private |
Intermediate variable.
Definition at line 277 of file rodasp_formula.h.
|
private |
Intermediate variable.
Definition at line 278 of file rodasp_formula.h.
|
private |
Intermediate variable.
Definition at line 279 of file rodasp_formula.h.
|
staticconstexpr |
Order of lesser coefficients of this formula.
Definition at line 78 of file rodasp_formula.h.
|
staticconstexpr |
Log tag.
Definition at line 81 of file rodasp_formula.h.
|
staticconstexpr |
Order of this formula.
Definition at line 71 of file rodasp_formula.h.
|
staticconstexpr |
Number of stages of this formula.
Definition at line 68 of file rodasp_formula.h.
|
private |
Temporary right-hand-side vector.
Definition at line 286 of file rodasp_formula.h.
|
private |
Temporary variable.
Definition at line 283 of file rodasp_formula.h.