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...
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... | |
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.
TwoMeshFluxPoissonProblem< ELEMENT >::TwoMeshFluxPoissonProblem | ( | PoissonEquations< 2 >::PoissonSourceFctPt | source_fct_pt | ) |
Constructor: Pass pointer to source function.
Constructor for Poisson problem: Pass pointer to source function.
Definition at line 139 of file two_d_poisson_flux_bc2.cc.
References TwoMeshFluxPoissonProblem< ELEMENT >::Bulk_mesh_pt, TwoMeshFluxPoissonProblem< ELEMENT >::create_flux_elements(), TanhSolnForPoisson::prescribed_flux_on_fixed_x_boundary(), TwoMeshFluxPoissonProblem< ELEMENT >::Source_fct_pt, and TwoMeshFluxPoissonProblem< ELEMENT >::Surface_mesh_pt.
|
inline |
Destructor (empty)
Definition at line 99 of file two_d_poisson_flux_bc2.cc.
|
inlineprivate |
Update the problem specs after solve (empty)
Definition at line 113 of file two_d_poisson_flux_bc2.cc.
|
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().
|
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().
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().
|
private |
Pointer to the "bulk" mesh.
Definition at line 122 of file two_d_poisson_flux_bc2.cc.
Referenced by TwoMeshFluxPoissonProblem< ELEMENT >::TwoMeshFluxPoissonProblem().
|
private |
Pointer to source function.
Definition at line 128 of file two_d_poisson_flux_bc2.cc.
Referenced by TwoMeshFluxPoissonProblem< ELEMENT >::TwoMeshFluxPoissonProblem().
|
private |
Pointer to the "surface" mesh.
Definition at line 125 of file two_d_poisson_flux_bc2.cc.
Referenced by TwoMeshFluxPoissonProblem< ELEMENT >::TwoMeshFluxPoissonProblem().