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

2D Poisson problem on rectangular domain, discretised with 2D QPoisson elements. Flux boundary conditions are applied along boundary 1 (the boundary where x=L). The specific type of element is specified via the template parameter. More...

Inheritance diagram for TwoMeshFluxPoissonProblem< ELEMENT >:

Public Member Functions

 TwoMeshFluxPoissonProblem (PoissonEquations< 2 >::PoissonSourceFctPt source_fct_pt)
 Constructor: Pass pointer to source function. More...
 
 ~TwoMeshFluxPoissonProblem ()
 Destructor (empty) More...
 
void doc_solution (DocInfo &doc_info)
 Doc the solution. DocInfo object stores flags/labels for where the output gets written to. More...
 

Private Member Functions

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 specs after solve (empty) More...
 
void create_flux_elements (const unsigned &b, Mesh *const &bulk_mesh_pt, Mesh *const &surface_mesh_pt)
 Create Poisson flux elements on boundary b of the Mesh pointed to by bulk_mesh_pt and add them to the Mesh object pointed to by surface_mesh_pt. More...
 

Private Attributes

SimpleRectangularQuadMesh< ELEMENT > * Bulk_mesh_pt
 Pointer to the "bulk" mesh. More...
 
Mesh * Surface_mesh_pt
 Pointer to the "surface" mesh. More...
 
PoissonEquations< 2 >::PoissonSourceFctPt Source_fct_pt
 Pointer to source function. More...
 

Detailed Description

template<class ELEMENT>
class TwoMeshFluxPoissonProblem< ELEMENT >

2D Poisson problem on rectangular domain, discretised with 2D QPoisson elements. Flux boundary conditions are applied along boundary 1 (the boundary where x=L). The specific type of element is specified via the template parameter.

Definition at line 90 of file two_d_poisson_flux_bc2.cc.

Constructor & Destructor Documentation

◆ TwoMeshFluxPoissonProblem()

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

◆ ~TwoMeshFluxPoissonProblem()

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

Destructor (empty)

Definition at line 99 of file two_d_poisson_flux_bc2.cc.

Member Function Documentation

◆ actions_after_newton_solve()

template<class ELEMENT >
void TwoMeshFluxPoissonProblem< ELEMENT >::actions_after_newton_solve ( )
inlineprivate

Update the problem specs after solve (empty)

Definition at line 113 of file two_d_poisson_flux_bc2.cc.

◆ actions_before_newton_solve()

template<class ELEMENT >
void TwoMeshFluxPoissonProblem< ELEMENT >::actions_before_newton_solve
private

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

Definition at line 239 of file two_d_poisson_flux_bc2.cc.

References TanhSolnForPoisson::get_exact_u().

◆ create_flux_elements()

template<class ELEMENT >
void TwoMeshFluxPoissonProblem< ELEMENT >::create_flux_elements ( const unsigned &  b,
Mesh *const &  bulk_mesh_pt,
Mesh *const &  surface_mesh_pt 
)
private

Create Poisson flux elements on boundary b of the Mesh pointed to by bulk_mesh_pt and add them to the Mesh object pointed to by surface_mesh_pt.

Create Poisson Flux Elements on the b-th boundary of the Mesh object pointed to by bulk_mesh_pt and add the elements to the Mesh object pointeed to by surface_mesh_pt.

Definition at line 332 of file two_d_poisson_flux_bc2.cc.

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

◆ doc_solution()

template<class ELEMENT >
void TwoMeshFluxPoissonProblem< 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 281 of file two_d_poisson_flux_bc2.cc.

References TanhSolnForPoisson::get_exact_u().

Referenced by main().

Member Data Documentation

◆ Bulk_mesh_pt

template<class ELEMENT >
SimpleRectangularQuadMesh<ELEMENT>* TwoMeshFluxPoissonProblem< ELEMENT >::Bulk_mesh_pt
private

Pointer to the "bulk" mesh.

Definition at line 122 of file two_d_poisson_flux_bc2.cc.

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

◆ Source_fct_pt

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

Pointer to source function.

Definition at line 128 of file two_d_poisson_flux_bc2.cc.

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

◆ Surface_mesh_pt

template<class ELEMENT >
Mesh* TwoMeshFluxPoissonProblem< ELEMENT >::Surface_mesh_pt
private

Pointer to the "surface" mesh.

Definition at line 125 of file two_d_poisson_flux_bc2.cc.

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


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