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_exact_u (const Vector< double > &x, double &u)
 Exact solution as a scalar. More...
 
void get_source (const Vector< double > &x, double &source)
 Source function to make it an exact solution. More...
 

Variables

double Alpha
 Parameter for steepness of step. More...
 
double Beta
 Parameter for angle of step. More...
 

Detailed Description

Namespace for exact solution for Poisson equation with sharp step.

Function Documentation

◆ get_exact_u() [1/2]

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

Exact solution as a scalar.

Definition at line 66 of file mesh_from_geompack_poisson.cc.

References Alpha, and Beta.

◆ get_exact_u() [2/2]

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

Exact solution as a Vector.

Definition at line 59 of file mesh_from_geompack_poisson.cc.

References Alpha, and Beta.

Referenced by PoissonProblem< ELEMENT >::actions_before_newton_solve(), and PoissonProblem< ELEMENT >::doc_solution().

◆ get_source()

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

Source function to make it an exact solution.

Definition at line 73 of file mesh_from_geompack_poisson.cc.

References Alpha, and Beta.

Referenced by main().

Variable Documentation

◆ Alpha

double TanhSolnForPoisson::Alpha

Parameter for steepness of step.

Definition at line 52 of file mesh_from_geompack_poisson.cc.

Referenced by get_exact_u(), get_source(), and PoissonProblem< ELEMENT >::PoissonProblem().

◆ Beta

double TanhSolnForPoisson::Beta

Parameter for angle of step.

Definition at line 55 of file mesh_from_geompack_poisson.cc.

Referenced by get_exact_u(), get_source(), and PoissonProblem< ELEMENT >::PoissonProblem().