numerical-collection-cpp 0.10.0
A collection of algorithms in numerical analysis implemented in C++
|
Class of ROS34PW3 formula in [22] for Rosenbrock method. More...
#include <num_collect/ode/rosenbrock/ros34pw3_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 | |
ros34pw3_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 = 2 |
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 = 4 |
Number of stages of this formula. | |
Coefficients in Rosenbrock method. | |
| |
static constexpr scalar_type | a21 = coeff(2.5155456020628817e+00) |
static constexpr scalar_type | a31 = coeff(5.0777280103144085e-01) |
static constexpr scalar_type | a32 = coeff(7.5000000000000000e-01) |
static constexpr scalar_type | a41 = coeff(1.3959081404277204e-01) |
static constexpr scalar_type | a42 = coeff(-3.3111001065419338e-01) |
static constexpr scalar_type | a43 = coeff(8.2040559712714178e-01) |
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 | g21 = coeff(-2.5155456020628817e+00) |
static constexpr scalar_type | g31 = coeff(-8.7991339217106512e-01) |
static constexpr scalar_type | g32 = coeff(-9.6014187766190695e-01) |
static constexpr scalar_type | g41 = coeff(-4.1731389379448741e-01) |
static constexpr scalar_type | g42 = coeff(4.1091047035857703e-01) |
static constexpr scalar_type | g43 = coeff(-1.3558873204765276e+00) |
static constexpr scalar_type | g = coeff(1.0685790213016289e+00) |
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 | c1 = coeff(2.2047681286931747e-01) |
static constexpr scalar_type | c2 = coeff(2.7828278331185935e-03) |
static constexpr scalar_type | c3 = coeff(7.1844787635140066e-03) |
static constexpr scalar_type | c4 = coeff(7.6955588053404989e-01) |
static constexpr scalar_type | cw1 = coeff(3.1300297285209688e-01) |
static constexpr scalar_type | cw2 = coeff(-2.8946895245112692e-01) |
static constexpr scalar_type | cw3 = coeff(9.7646597959903003e-01) |
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 |
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_ {} |
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 ROS34PW3 formula in [22] for Rosenbrock method.
Problem | Type of problem. |
EquationSolver | Type of class to solve equations in Rosenbrock methods. |
Definition at line 43 of file ros34pw3_formula.h.
using num_collect::ode::rosenbrock::ros34pw3_formula< Problem, EquationSolver >::base_type |
Type of base class.
Definition at line 48 of file ros34pw3_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 140 of file ros34pw3_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 156 of file ros34pw3_formula.h.
|
staticconstexpr |
Coefficient in Rosenbrock method.
Definition at line 91 of file ros34pw3_formula.h.
|
staticconstexpr |
Coefficient in Rosenbrock method.
Definition at line 92 of file ros34pw3_formula.h.
|
staticconstexpr |
Coefficient in Rosenbrock method.
Definition at line 93 of file ros34pw3_formula.h.
|
staticconstexpr |
Coefficient in Rosenbrock method.
Definition at line 94 of file ros34pw3_formula.h.
|
staticconstexpr |
Coefficient in Rosenbrock method.
Definition at line 95 of file ros34pw3_formula.h.
|
staticconstexpr |
Coefficient in Rosenbrock method.
Definition at line 96 of file ros34pw3_formula.h.
|
staticconstexpr |
Coefficient in Rosenbrock method.
Definition at line 98 of file ros34pw3_formula.h.
|
staticconstexpr |
Coefficient in Rosenbrock method.
Definition at line 99 of file ros34pw3_formula.h.
|
staticconstexpr |
Coefficient in Rosenbrock method.
Definition at line 100 of file ros34pw3_formula.h.
|
staticconstexpr |
Coefficient in Rosenbrock method.
Definition at line 101 of file ros34pw3_formula.h.
|
staticconstexpr |
Coefficient in Rosenbrock method.
Definition at line 116 of file ros34pw3_formula.h.
|
staticconstexpr |
Coefficient in Rosenbrock method.
Definition at line 117 of file ros34pw3_formula.h.
|
staticconstexpr |
Coefficient in Rosenbrock method.
Definition at line 118 of file ros34pw3_formula.h.
|
staticconstexpr |
Coefficient in Rosenbrock method.
Definition at line 119 of file ros34pw3_formula.h.
|
staticconstexpr |
Coefficient in Rosenbrock method.
Definition at line 125 of file ros34pw3_formula.h.
|
staticconstexpr |
Coefficient in Rosenbrock method.
Definition at line 126 of file ros34pw3_formula.h.
|
staticconstexpr |
Coefficient in Rosenbrock method.
Definition at line 127 of file ros34pw3_formula.h.
|
staticconstexpr |
Coefficient in Rosenbrock method.
Definition at line 128 of file ros34pw3_formula.h.
|
staticconstexpr |
Coefficient in Rosenbrock method.
Definition at line 121 of file ros34pw3_formula.h.
|
staticconstexpr |
Coefficient in Rosenbrock method.
Definition at line 122 of file ros34pw3_formula.h.
|
staticconstexpr |
Coefficient in Rosenbrock method.
Definition at line 123 of file ros34pw3_formula.h.
|
staticconstexpr |
Coefficient in Rosenbrock method.
Definition at line 109 of file ros34pw3_formula.h.
|
staticconstexpr |
Coefficient in Rosenbrock method.
Definition at line 111 of file ros34pw3_formula.h.
|
staticconstexpr |
Coefficient in Rosenbrock method.
Definition at line 112 of file ros34pw3_formula.h.
|
staticconstexpr |
Coefficient in Rosenbrock method.
Definition at line 103 of file ros34pw3_formula.h.
|
staticconstexpr |
Coefficient in Rosenbrock method.
Definition at line 113 of file ros34pw3_formula.h.
|
staticconstexpr |
Coefficient in Rosenbrock method.
Definition at line 104 of file ros34pw3_formula.h.
|
staticconstexpr |
Coefficient in Rosenbrock method.
Definition at line 105 of file ros34pw3_formula.h.
|
staticconstexpr |
Coefficient in Rosenbrock method.
Definition at line 114 of file ros34pw3_formula.h.
|
staticconstexpr |
Coefficient in Rosenbrock method.
Definition at line 106 of file ros34pw3_formula.h.
|
staticconstexpr |
Coefficient in Rosenbrock method.
Definition at line 107 of file ros34pw3_formula.h.
|
staticconstexpr |
Coefficient in Rosenbrock method.
Definition at line 108 of file ros34pw3_formula.h.
|
private |
Intermediate variable.
Definition at line 211 of file ros34pw3_formula.h.
|
private |
Intermediate variable.
Definition at line 212 of file ros34pw3_formula.h.
|
private |
Intermediate variable.
Definition at line 213 of file ros34pw3_formula.h.
|
private |
Intermediate variable.
Definition at line 214 of file ros34pw3_formula.h.
|
staticconstexpr |
Order of lesser coefficients of this formula.
Definition at line 72 of file ros34pw3_formula.h.
|
staticconstexpr |
Log tag.
Definition at line 75 of file ros34pw3_formula.h.
|
staticconstexpr |
Order of this formula.
Definition at line 69 of file ros34pw3_formula.h.
|
staticconstexpr |
Number of stages of this formula.
Definition at line 66 of file ros34pw3_formula.h.
|
private |
Temporary right-hand-side vector.
Definition at line 221 of file ros34pw3_formula.h.
|
private |
Temporary variable.
Definition at line 218 of file ros34pw3_formula.h.