1D Poisson problem in unit interval. More...
Public Member Functions | |
OneDPoissonProblem (const unsigned &n_element, PoissonEquations< 1 >::PoissonSourceFctPt source_fct_pt) | |
Constructor: Pass number of elements and pointer to source function. More... | |
~OneDPoissonProblem () | |
Destructor (empty) More... | |
void | actions_before_newton_solve () |
Update the problem specs before solve: (Re)set boundary conditions. More... | |
void | actions_after_newton_solve () |
Update the problem specs after solve (empty) 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... | |
Private Attributes | |
PoissonEquations< 1 >::PoissonSourceFctPt | Source_fct_pt |
Pointer to source function. More... | |
1D Poisson problem in unit interval.
Definition at line 82 of file one_d_poisson.cc.
OneDPoissonProblem< ELEMENT >::OneDPoissonProblem | ( | const unsigned & | n_element, |
PoissonEquations< 1 >::PoissonSourceFctPt | source_fct_pt | ||
) |
Constructor: Pass number of elements and pointer to source function.
Constructor for 1D Poisson problem in unit interval. Discretise the 1D domain with n_element elements of type ELEMENT. Specify function pointer to source function.
Definition at line 124 of file one_d_poisson.cc.
References OneDPoissonProblem< ELEMENT >::Source_fct_pt.
|
inline |
Destructor (empty)
Definition at line 92 of file one_d_poisson.cc.
|
inline |
Update the problem specs after solve (empty)
Definition at line 101 of file one_d_poisson.cc.
void OneDPoissonProblem< ELEMENT >::actions_before_newton_solve | ( | ) |
Update the problem specs before solve: (Re)set boundary conditions.
Update the problem specs before solve: (Re)set boundary values from the exact solution.
Definition at line 174 of file one_d_poisson.cc.
References FishSolnOneDPoisson::get_exact_u().
void OneDPoissonProblem< ELEMENT >::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 220 of file one_d_poisson.cc.
References FishSolnOneDPoisson::get_exact_u().
Referenced by main().
|
private |
Pointer to source function.
Definition at line 110 of file one_d_poisson.cc.
Referenced by OneDPoissonProblem< ELEMENT >::OneDPoissonProblem().