Functions | Variables
TanhSolnForPoisson Namespace Reference

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

Functions

void get_exact_u (const Vector< double > &x, Vector< double > &u)
 Exact solution as a Vector. More...
 
void get_source (const Vector< double > &x, double &source)
 Source function required to make the solution above an exact solution. More...
 
void zero (const Vector< double > &x, Vector< double > &u)
 Zero function – used to compute norm of the computed solution by computing the norm of the error when compared against this. More...
 

Variables

double Alpha =5.0
 Parameter for steepness of "step". More...
 
double TanPhi =0.0
 Parameter for angle Phi of "step". More...
 

Detailed Description

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

Function Documentation

◆ get_exact_u()

void TanhSolnForPoisson::get_exact_u ( const Vector< double > &  x,
Vector< double > &  u 
)

◆ get_source()

void TanhSolnForPoisson::get_source ( const Vector< double > &  x,
double &  source 
)

Source function required to make the solution above an exact solution.

Definition at line 61 of file mesh_from_inline_triangle.cc.

References Alpha, and TanPhi.

Referenced by UnstructuredPoissonProblem< ELEMENT >::complete_problem_setup().

◆ zero()

void TanhSolnForPoisson::zero ( const Vector< double > &  x,
Vector< double > &  u 
)

Zero function – used to compute norm of the computed solution by computing the norm of the error when compared against this.

Definition at line 72 of file mesh_from_inline_triangle.cc.

Referenced by UnstructuredPoissonProblem< ELEMENT >::doc_solution().

Variable Documentation

◆ Alpha

double TanhSolnForPoisson::Alpha =5.0

Parameter for steepness of "step".

Definition at line 49 of file mesh_from_inline_triangle.cc.

Referenced by get_exact_u(), and get_source().

◆ TanPhi

double TanhSolnForPoisson::TanPhi =0.0

Parameter for angle Phi of "step".

Definition at line 52 of file mesh_from_inline_triangle.cc.

Referenced by get_exact_u(), get_source(), and main().