1D Harmonic problem in unit interval. More...
Public Member Functions | |
HarmonicProblem (const unsigned &n_element) | |
Constructor: Pass number of elements and pointer to source function. More... | |
~HarmonicProblem () | |
Destructor (empty) More... | |
void | solve (const unsigned &label) |
Solve the problem. More... | |
void | doc_solution (const unsigned &label) |
Doc the solution, pass the number of the case considered, so that output files can be distinguished. More... | |
1D Harmonic problem in unit interval.
Definition at line 272 of file harmonic.cc.
HarmonicProblem< ELEMENT, EIGEN_SOLVER >::HarmonicProblem | ( | const unsigned & | n_element | ) |
Constructor: Pass number of elements and pointer to source function.
Constructor for 1D Harmonic problem in unit interval. Discretise the 1D domain with n_element elements of type ELEMENT. Specify function pointer to source function.
Definition at line 299 of file harmonic.cc.
|
inline |
Destructor (empty)
Definition at line 280 of file harmonic.cc.
void HarmonicProblem< ELEMENT, EIGEN_SOLVER >::doc_solution | ( | const unsigned & | label | ) |
Doc the solution, pass the number of the case considered, so that output files can be distinguished.
Doc the solution in tecplot format. Label files with label.
Definition at line 338 of file harmonic.cc.
References HarmonicProblem< ELEMENT, EIGEN_SOLVER >::solve().
void HarmonicProblem< ELEMENT, EIGEN_SOLVER >::solve | ( | const unsigned & | label | ) |
Solve the problem.
Solve the eigenproblem.
Definition at line 361 of file harmonic.cc.
Referenced by HarmonicProblem< ELEMENT, EIGEN_SOLVER >::doc_solution(), and main().