numerical-collection-cpp 0.10.0
A collection of algorithms in numerical analysis implemented in C++
|
Class of 4th order average vector field (AVF) method [21]. More...
#include <num_collect/ode/avf/avf4_formula.h>
Public Types | |
using | jacobian_type = typename problem_type::jacobian_type |
Type of Jacobian. | |
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 | |
avf4_formula (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. | |
void | tol_residual_norm (scalar_type val) |
Set tolerance of residual norm. | |
Static Public Attributes | |
static constexpr auto | log_tag |
Log tag. | |
static constexpr index_type | order = 4 |
Order of this formula. | |
static constexpr index_type | stages = 1 |
Number of stages of this formula. | |
Private Attributes | |
impl::avf_integrand< problem_type > | integrand_ |
Integrand. | |
integration::gauss_legendre_integrator< variable_type(scalar_type)> | integrator_ {integrator_degree} |
Integrator. | |
scalar_type | tol_residual_norm_ {default_tol_residual_norm} |
Tolerance of residual norm. | |
Static Private Attributes | |
static constexpr auto | default_tol_residual_norm |
Default tolerance of residual norm. | |
static constexpr index_type | integrator_degree = 5 |
Degree of integrator. | |
Class of 4th order average vector field (AVF) method [21].
Problem | Type of problem. |
Definition at line 47 of file avf4_formula.h.
using num_collect::ode::avf::avf4_formula< Problem >::jacobian_type = typename problem_type::jacobian_type |
Type of Jacobian.
Definition at line 59 of file avf4_formula.h.
using num_collect::ode::avf::avf4_formula< Problem >::problem_type = Problem |
Type of problem.
Definition at line 50 of file avf4_formula.h.
using num_collect::ode::avf::avf4_formula< Problem >::scalar_type = typename problem_type::scalar_type |
Type of scalars.
Definition at line 56 of file avf4_formula.h.
using num_collect::ode::avf::avf4_formula< Problem >::variable_type = typename problem_type::variable_type |
Type of variables.
Definition at line 53 of file avf4_formula.h.
|
inlineexplicit |
|
inlinenodiscard |
|
inlinenodiscard |
|
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 87 of file avf4_formula.h.
|
inline |
Set tolerance of residual norm.
[in] | val | Value. |
Definition at line 150 of file avf4_formula.h.
|
staticconstexprprivate |
Default tolerance of residual norm.
Definition at line 168 of file avf4_formula.h.
|
private |
Integrand.
Definition at line 158 of file avf4_formula.h.
|
private |
Integrator.
Definition at line 165 of file avf4_formula.h.
|
staticconstexprprivate |
Degree of integrator.
Definition at line 161 of file avf4_formula.h.
|
staticconstexpr |
Log tag.
Definition at line 68 of file avf4_formula.h.
|
staticconstexpr |
Order of this formula.
Definition at line 65 of file avf4_formula.h.
|
staticconstexpr |
Number of stages of this formula.
Definition at line 62 of file avf4_formula.h.
|
private |
Tolerance of residual norm.
Definition at line 172 of file avf4_formula.h.