numerical-collection-cpp 0.10.0
A collection of algorithms in numerical analysis implemented in C++
|
Class of ODE problem to solve 1D wave equation of strings discretized using finite difference. More...
#include <num_prob_collect/ode/string_wave_1d_problem.h>
Public Types | |
using | scalar_type = double |
Type of scalars. | |
using | variable_type = Eigen::VectorXd |
Type of variables. | |
Public Member Functions | |
string_wave_1d_problem (const string_wave_1d_parameters ¶ms) | |
Constructor. | |
auto | diff_coeff () const noexcept -> const variable_type & |
Get the differential coefficient. | |
void | evaluate_on (scalar_type, const variable_type &variable, num_collect::ode::evaluation_type) |
Evaluate on a (time, variable) pair. | |
auto | points () const noexcept -> const variable_type & |
Get the spacial points. | |
Static Public Attributes | |
static constexpr auto | allowed_evaluations |
Allowed evaluations. | |
Private Attributes | |
variable_type | diff_coeff_ |
Differential coefficient. | |
num_collect::index_type | num_points_ |
Number of points. | |
variable_type | points_ |
Spatial points. | |
double | speed_ |
Speed. | |
Class of ODE problem to solve 1D wave equation of strings discretized using finite difference.
Definition at line 55 of file string_wave_1d_problem.h.
using num_prob_collect::ode::string_wave_1d_problem::scalar_type = double |
Type of scalars.
Definition at line 61 of file string_wave_1d_problem.h.
using num_prob_collect::ode::string_wave_1d_problem::variable_type = Eigen::VectorXd |
Type of variables.
Definition at line 58 of file string_wave_1d_problem.h.
|
inlineexplicit |
Constructor.
[in] | params | Parameters. |
Definition at line 72 of file string_wave_1d_problem.h.
|
inlinenodiscardnoexcept |
Get the differential coefficient.
Definition at line 104 of file string_wave_1d_problem.h.
|
inline |
Evaluate on a (time, variable) pair.
[in] | variable | Variable. |
Definition at line 84 of file string_wave_1d_problem.h.
|
inlinenodiscardnoexcept |
|
staticconstexpr |
Allowed evaluations.
Definition at line 64 of file string_wave_1d_problem.h.
|
private |
Differential coefficient.
Definition at line 128 of file string_wave_1d_problem.h.
|
private |
Number of points.
Definition at line 122 of file string_wave_1d_problem.h.
|
private |
Spatial points.
Definition at line 125 of file string_wave_1d_problem.h.
|
private |
Speed.
Definition at line 119 of file string_wave_1d_problem.h.