numerical-collection-cpp 0.10.0
A collection of algorithms in numerical analysis implemented in C++
|
Class of ROS3w formula in [22] for Rosenbrock method. More...
#include <num_collect/ode/rosenbrock/ros3w_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 | |
ros3w_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 = 3 |
Order of this formula. | |
static constexpr index_type | stages = 3 |
Number of stages of this formula. | |
Coefficients in Rosenbrock method. | |
| |
static constexpr scalar_type | a21 = coeff(6.666666666666666e-01) |
static constexpr scalar_type | a31 = coeff(6.666666666666666e-01) |
static constexpr scalar_type | a32 = coeff(0) |
static constexpr scalar_type | b1 = coeff(0) |
static constexpr scalar_type | b2 = a21 |
static constexpr scalar_type | b3 = a31 + a32 |
static constexpr scalar_type | g21 = coeff(3.635068368900681e-01) |
static constexpr scalar_type | g31 = coeff(-8.996866791992636e-01) |
static constexpr scalar_type | g32 = coeff(-1.537997822626885e-01) |
static constexpr scalar_type | g = coeff(4.358665215084590e-01) |
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 | c1 = coeff(2.500000000000000e-01) |
static constexpr scalar_type | c2 = coeff(2.500000000000000e-01) |
static constexpr scalar_type | c3 = coeff(5.000000000000000e-01) |
static constexpr scalar_type | cw1 = coeff(7.467047032740110e-01) |
static constexpr scalar_type | cw2 = coeff(1.144064078371002e-01) |
static constexpr scalar_type | cw3 = coeff(1.388888888888889e-01) |
static constexpr scalar_type | ce1 = c1 - cw1 |
static constexpr scalar_type | ce2 = c2 - cw2 |
static constexpr scalar_type | ce3 = c3 - cw3 |
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_ {} |
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 ROS3w 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 ros3w_formula.h.
using num_collect::ode::rosenbrock::ros3w_formula< Problem, EquationSolver >::base_type |
Type of base class.
Definition at line 48 of file ros3w_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 130 of file ros3w_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 146 of file ros3w_formula.h.
|
staticconstexpr |
Coefficient in Rosenbrock method.
Definition at line 91 of file ros3w_formula.h.
|
staticconstexpr |
Coefficient in Rosenbrock method.
Definition at line 92 of file ros3w_formula.h.
|
staticconstexpr |
Coefficient in Rosenbrock method.
Definition at line 93 of file ros3w_formula.h.
|
staticconstexpr |
Coefficient in Rosenbrock method.
Definition at line 95 of file ros3w_formula.h.
|
staticconstexpr |
Coefficient in Rosenbrock method.
Definition at line 96 of file ros3w_formula.h.
|
staticconstexpr |
Coefficient in Rosenbrock method.
Definition at line 97 of file ros3w_formula.h.
|
staticconstexpr |
Coefficient in Rosenbrock method.
Definition at line 108 of file ros3w_formula.h.
|
staticconstexpr |
Coefficient in Rosenbrock method.
Definition at line 109 of file ros3w_formula.h.
|
staticconstexpr |
Coefficient in Rosenbrock method.
Definition at line 110 of file ros3w_formula.h.
|
staticconstexpr |
Coefficient in Rosenbrock method.
Definition at line 116 of file ros3w_formula.h.
|
staticconstexpr |
Coefficient in Rosenbrock method.
Definition at line 117 of file ros3w_formula.h.
|
staticconstexpr |
Coefficient in Rosenbrock method.
Definition at line 118 of file ros3w_formula.h.
|
staticconstexpr |
Coefficient in Rosenbrock method.
Definition at line 112 of file ros3w_formula.h.
|
staticconstexpr |
Coefficient in Rosenbrock method.
Definition at line 113 of file ros3w_formula.h.
|
staticconstexpr |
Coefficient in Rosenbrock method.
Definition at line 114 of file ros3w_formula.h.
|
staticconstexpr |
Coefficient in Rosenbrock method.
Definition at line 102 of file ros3w_formula.h.
|
staticconstexpr |
Coefficient in Rosenbrock method.
Definition at line 104 of file ros3w_formula.h.
|
staticconstexpr |
Coefficient in Rosenbrock method.
Definition at line 105 of file ros3w_formula.h.
|
staticconstexpr |
Coefficient in Rosenbrock method.
Definition at line 99 of file ros3w_formula.h.
|
staticconstexpr |
Coefficient in Rosenbrock method.
Definition at line 106 of file ros3w_formula.h.
|
staticconstexpr |
Coefficient in Rosenbrock method.
Definition at line 100 of file ros3w_formula.h.
|
staticconstexpr |
Coefficient in Rosenbrock method.
Definition at line 101 of file ros3w_formula.h.
|
private |
Intermediate variable.
Definition at line 189 of file ros3w_formula.h.
|
private |
Intermediate variable.
Definition at line 190 of file ros3w_formula.h.
|
private |
Intermediate variable.
Definition at line 191 of file ros3w_formula.h.
|
staticconstexpr |
Order of lesser coefficients of this formula.
Definition at line 72 of file ros3w_formula.h.
|
staticconstexpr |
Log tag.
Definition at line 75 of file ros3w_formula.h.
|
staticconstexpr |
Order of this formula.
Definition at line 69 of file ros3w_formula.h.
|
staticconstexpr |
Number of stages of this formula.
Definition at line 66 of file ros3w_formula.h.
|
private |
Temporary right-hand-side vector.
Definition at line 198 of file ros3w_formula.h.
|
private |
Temporary variable.
Definition at line 195 of file ros3w_formula.h.