numerical-collection-cpp 0.10.0
A collection of algorithms in numerical analysis implemented in C++
|
Class of 2nd order average vector field (AVF) method [21]. More...
#include <num_collect/ode/avf/avf2_formula.h>
Public Types | |
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 | |
avf2_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 = 2 |
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 2nd order average vector field (AVF) method [21].
Problem | Type of problem. |
Definition at line 46 of file avf2_formula.h.
using num_collect::ode::avf::avf2_formula< Problem >::problem_type = Problem |
Type of problem.
Definition at line 49 of file avf2_formula.h.
using num_collect::ode::avf::avf2_formula< Problem >::scalar_type = typename problem_type::scalar_type |
Type of scalars.
Definition at line 55 of file avf2_formula.h.
using num_collect::ode::avf::avf2_formula< Problem >::variable_type = typename problem_type::variable_type |
Type of variables.
Definition at line 52 of file avf2_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 83 of file avf2_formula.h.
|
inline |
Set tolerance of residual norm.
[in] | val | Value. |
Definition at line 129 of file avf2_formula.h.
|
staticconstexprprivate |
Default tolerance of residual norm.
Definition at line 147 of file avf2_formula.h.
|
private |
Integrand.
Definition at line 137 of file avf2_formula.h.
|
private |
Integrator.
Definition at line 144 of file avf2_formula.h.
|
staticconstexprprivate |
Degree of integrator.
Definition at line 140 of file avf2_formula.h.
|
staticconstexpr |
Log tag.
Definition at line 64 of file avf2_formula.h.
|
staticconstexpr |
Order of this formula.
Definition at line 61 of file avf2_formula.h.
|
staticconstexpr |
Number of stages of this formula.
Definition at line 58 of file avf2_formula.h.
|
private |
Tolerance of residual norm.
Definition at line 151 of file avf2_formula.h.