Classes | Namespaces | Functions | Variables
two_d_poisson_flux_bc.cc File Reference

Go to the source code of this file.

Classes

class  FluxPoissonProblem< 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. More...
 

Namespaces

 TanhSolnForPoisson
 Namespace for exact solution for Poisson equation with "sharp step".
 

Functions

void TanhSolnForPoisson::get_exact_u (const Vector< double > &x, Vector< double > &u)
 Exact solution as a Vector. More...
 
void TanhSolnForPoisson::source_function (const Vector< double > &x, double &source)
 Source function required to make the solution above an exact solution. More...
 
void TanhSolnForPoisson::prescribed_flux_on_fixed_x_boundary (const Vector< double > &x, double &flux)
 Flux required by the exact solution on a boundary on which x is fixed. More...
 
int main ()
 Demonstrate how to solve 2D Poisson problem with flux boundary conditions. More...
 

Variables

double TanhSolnForPoisson::Alpha =1.0
 Parameter for steepness of "step". More...
 
double TanhSolnForPoisson::TanPhi =0.0
 Parameter for angle Phi of "step". More...
 

Function Documentation

◆ main()

int main ( )

Demonstrate how to solve 2D Poisson problem with flux boundary conditions.

Definition at line 339 of file two_d_poisson_flux_bc.cc.

References TanhSolnForPoisson::Alpha, FluxPoissonProblem< ELEMENT >::doc_solution(), TanhSolnForPoisson::source_function(), and TanhSolnForPoisson::TanPhi.