Public Member Functions | Private Attributes | List of all members
RefineablePoissonProblem< ELEMENT > Class Template Reference

2D Poisson problem on rectangular domain, discretised with refineable 2D QPoisson elements. The specific type of element is specified via the template parameter. More...

Inheritance diagram for RefineablePoissonProblem< ELEMENT >:

Public Member Functions

 RefineablePoissonProblem (PoissonEquations< 2 >::PoissonSourceFctPt source_fct_pt)
 Constructor: Pass pointer to source function. More...
 
 ~RefineablePoissonProblem ()
 Destructor (empty) More...
 
void actions_before_newton_solve ()
 Update the problem specs before solve: Reset boundary conditions to the values from the exact solution. More...
 
void actions_after_newton_solve ()
 Update the problem after solve (empty) More...
 
void doc_solution (DocInfo &doc_info)
 Doc the solution. DocInfo object stores flags/labels for where the output gets written to. More...
 
SimpleRefineableRectangularQuadMesh< ELEMENT > * mesh_pt ()
 Overloaded version of the Problem's access function to the mesh. Recasts the pointer to the base Mesh object to the actual mesh type. More...
 

Private Attributes

PoissonEquations< 2 >::PoissonSourceFctPt Source_fct_pt
 Pointer to source function. More...
 

Detailed Description

template<class ELEMENT>
class RefineablePoissonProblem< ELEMENT >

2D Poisson problem on rectangular domain, discretised with refineable 2D QPoisson elements. The specific type of element is specified via the template parameter.

Definition at line 127 of file two_d_poisson_adapt.cc.

Constructor & Destructor Documentation

◆ RefineablePoissonProblem()

template<class ELEMENT >
RefineablePoissonProblem< ELEMENT >::RefineablePoissonProblem ( PoissonEquations< 2 >::PoissonSourceFctPt  source_fct_pt)

Constructor: Pass pointer to source function.

Constructor for Poisson problem: Pass pointer to source function.

Definition at line 173 of file two_d_poisson_adapt.cc.

References RefineablePoissonProblem< ELEMENT >::mesh_pt(), and RefineablePoissonProblem< ELEMENT >::Source_fct_pt.

◆ ~RefineablePoissonProblem()

template<class ELEMENT >
RefineablePoissonProblem< ELEMENT >::~RefineablePoissonProblem ( )
inline

Destructor (empty)

Definition at line 137 of file two_d_poisson_adapt.cc.

Member Function Documentation

◆ actions_after_newton_solve()

template<class ELEMENT >
void RefineablePoissonProblem< ELEMENT >::actions_after_newton_solve ( )
inline

Update the problem after solve (empty)

Definition at line 144 of file two_d_poisson_adapt.cc.

◆ actions_before_newton_solve()

template<class ELEMENT >
void RefineablePoissonProblem< ELEMENT >::actions_before_newton_solve

Update the problem specs before solve: Reset boundary conditions to the values from the exact solution.

Update the problem specs before solve: (Re-)set boundary conditions to the values from the exact solution.

Definition at line 241 of file two_d_poisson_adapt.cc.

References TanhSolnForPoisson::get_exact_u().

◆ doc_solution()

template<class ELEMENT >
void RefineablePoissonProblem< ELEMENT >::doc_solution ( DocInfo &  doc_info)

Doc the solution. DocInfo object stores flags/labels for where the output gets written to.

Doc the solution: doc_info contains labels/output directory etc.

Definition at line 279 of file two_d_poisson_adapt.cc.

References TanhSolnForPoisson::get_exact_u().

Referenced by main().

◆ mesh_pt()

template<class ELEMENT >
SimpleRefineableRectangularQuadMesh<ELEMENT>* RefineablePoissonProblem< ELEMENT >::mesh_pt ( )
inline

Overloaded version of the Problem's access function to the mesh. Recasts the pointer to the base Mesh object to the actual mesh type.

Definition at line 153 of file two_d_poisson_adapt.cc.

Referenced by RefineablePoissonProblem< ELEMENT >::RefineablePoissonProblem().

Member Data Documentation

◆ Source_fct_pt

template<class ELEMENT >
PoissonEquations<2>::PoissonSourceFctPt RefineablePoissonProblem< ELEMENT >::Source_fct_pt
private

Pointer to source function.

Definition at line 162 of file two_d_poisson_adapt.cc.

Referenced by RefineablePoissonProblem< ELEMENT >::RefineablePoissonProblem().


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