numerical-collection-cpp 0.10.0
A collection of algorithms in numerical analysis implemented in C++
|
Class of Kaps' problem [15] without Jacobian matrix. More...
#include <num_prob_collect/ode/no_jacobian_implicit_kaps_problem.h>
Public Types | |
using | mass_type = Eigen::Matrix2d |
Type of mass. | |
using | scalar_type = double |
Type of scalars. | |
using | variable_type = Eigen::Vector2d |
Type of variables. | |
Public Member Functions | |
no_jacobian_implicit_kaps_problem (double epsilon) | |
Constructor. | |
auto | diff_coeff () const noexcept -> const variable_type & |
Get the differential coefficient. | |
void | evaluate_on (double, const variable_type &variable, num_collect::ode::evaluation_type) |
Evaluate on a (time, variable) pair. | |
auto | mass () const noexcept -> const mass_type & |
Get the mass. | |
Static Public Attributes | |
static constexpr auto | allowed_evaluations |
Allowed evaluations. | |
Private Attributes | |
variable_type | diff_coeff_ {} |
Differential coefficient. | |
double | epsilon_ |
Parameter. | |
mass_type | mass_ {} |
Mass. | |
Class of Kaps' problem [15] without Jacobian matrix.
This ODE is as following:
\begin{aligned} \varepsilon \dot{y_1} & = -(1 + 2 \varepsilon) y_1 + y_2^2 \\ \dot{y_2} &= y_1 - y_2 - y_2^2 \end{aligned}
For \( 0 \le t \le 1 \), exact solution is as following (for all \(\varepsilon\)):
\begin{aligned} y_1 &= \exp(-2t) \\ y_2 &= \exp(-t) \\ \end{aligned}
This problem is stiff for small \(\varepsilon\).
Definition at line 50 of file no_jacobian_implicit_kaps_problem.h.
using num_prob_collect::ode::no_jacobian_implicit_kaps_problem::mass_type = Eigen::Matrix2d |
Type of mass.
Definition at line 59 of file no_jacobian_implicit_kaps_problem.h.
Type of scalars.
Definition at line 56 of file no_jacobian_implicit_kaps_problem.h.
using num_prob_collect::ode::no_jacobian_implicit_kaps_problem::variable_type = Eigen::Vector2d |
Type of variables.
Definition at line 53 of file no_jacobian_implicit_kaps_problem.h.
|
inlineexplicit |
Constructor.
[in] | epsilon | Parameter in the equation. |
Definition at line 70 of file no_jacobian_implicit_kaps_problem.h.
|
inlinenodiscardnoexcept |
Get the differential coefficient.
Definition at line 90 of file no_jacobian_implicit_kaps_problem.h.
|
inline |
Evaluate on a (time, variable) pair.
[in] | variable | Variable. |
Definition at line 78 of file no_jacobian_implicit_kaps_problem.h.
|
inlinenodiscardnoexcept |
|
staticconstexpr |
Allowed evaluations.
Definition at line 62 of file no_jacobian_implicit_kaps_problem.h.
|
private |
Differential coefficient.
Definition at line 108 of file no_jacobian_implicit_kaps_problem.h.
|
private |
Parameter.
Definition at line 105 of file no_jacobian_implicit_kaps_problem.h.
|
private |
Mass.
Definition at line 111 of file no_jacobian_implicit_kaps_problem.h.