numerical-collection-cpp 0.10.0
A collection of algorithms in numerical analysis implemented in C++
Loading...
Searching...
No Matches
num_prob_collect::ode::string_wave_1d_solution Class Reference

Class to calculate exact solution of string_wave_1d_problem. More...

#include <num_prob_collect/ode/string_wave_1d_problem.h>

+ Collaboration diagram for num_prob_collect::ode::string_wave_1d_solution:

Public Member Functions

 string_wave_1d_solution (const string_wave_1d_parameters &params)
 Constructor.
 
void evaluate_on (double time)
 Evaluate solution.
 
auto solution () -> const Eigen::VectorXd &
 Get the solution.
 

Private Attributes

double length_
 Length.
 
Eigen::VectorXd points_
 Spatial points.
 
Eigen::VectorXd solution_
 Solution.
 
double speed_
 Speed.
 

Detailed Description

Class to calculate exact solution of string_wave_1d_problem.

Definition at line 134 of file string_wave_1d_problem.h.

Constructor & Destructor Documentation

◆ string_wave_1d_solution()

num_prob_collect::ode::string_wave_1d_solution::string_wave_1d_solution ( const string_wave_1d_parameters & params)
inlineexplicit

Constructor.

Parameters
[in]paramsParameters.

Definition at line 141 of file string_wave_1d_problem.h.

Member Function Documentation

◆ evaluate_on()

void num_prob_collect::ode::string_wave_1d_solution::evaluate_on ( double time)
inline

Evaluate solution.

Parameters
[in]timeTime.

Definition at line 153 of file string_wave_1d_problem.h.

◆ solution()

auto num_prob_collect::ode::string_wave_1d_solution::solution ( ) -> const Eigen::VectorXd&
inlinenodiscard

Get the solution.

Returns
Solution.

Definition at line 179 of file string_wave_1d_problem.h.

Member Data Documentation

◆ length_

double num_prob_collect::ode::string_wave_1d_solution::length_
private

Length.

Definition at line 188 of file string_wave_1d_problem.h.

◆ points_

Eigen::VectorXd num_prob_collect::ode::string_wave_1d_solution::points_
private

Spatial points.

Definition at line 191 of file string_wave_1d_problem.h.

◆ solution_

Eigen::VectorXd num_prob_collect::ode::string_wave_1d_solution::solution_
private

Solution.

Definition at line 194 of file string_wave_1d_problem.h.

◆ speed_

double num_prob_collect::ode::string_wave_1d_solution::speed_
private

Speed.

Definition at line 185 of file string_wave_1d_problem.h.


The documentation for this class was generated from the following file: