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)
 
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 =3
 Parameter for steepness of step. More...
 
double N_x =-1.0
 Orientation (non-normalised x-component of unit vector in direction of step plane) More...
 
double N_y =-1.0
 Orientation (non-normalised y-component of unit vector in direction of step plane) More...
 
double N_z =1.0
 Orientation (non-normalised z-component of unit vector in direction of step plane) More...
 
double X_0 =0.0
 Orientation (x-coordinate of step plane) More...
 
double Y_0 =0.0
 Orientation (y-coordinate of step plane) More...
 
double Z_0 =0.0
 Orientation (z-coordinate of step plane) 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 84 of file mesh_from_tetgen_poisson.cc.

References Alpha, N_x, N_y, N_z, X_0, Y_0, and Z_0.

◆ get_exact_u() [2/2]

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 to make it an exact solution.

Definition at line 93 of file mesh_from_tetgen_poisson.cc.

References Alpha, N_x, N_y, N_z, X_0, Y_0, and Z_0.

Referenced by main().

Variable Documentation

◆ Alpha

double TanhSolnForPoisson::Alpha =3

Parameter for steepness of step.

Definition at line 50 of file mesh_from_tetgen_poisson.cc.

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

◆ N_x

double TanhSolnForPoisson::N_x =-1.0

Orientation (non-normalised x-component of unit vector in direction of step plane)

Definition at line 54 of file mesh_from_tetgen_poisson.cc.

Referenced by get_exact_u(), and get_source().

◆ N_y

double TanhSolnForPoisson::N_y =-1.0

Orientation (non-normalised y-component of unit vector in direction of step plane)

Definition at line 58 of file mesh_from_tetgen_poisson.cc.

Referenced by get_exact_u(), and get_source().

◆ N_z

double TanhSolnForPoisson::N_z =1.0

Orientation (non-normalised z-component of unit vector in direction of step plane)

Definition at line 62 of file mesh_from_tetgen_poisson.cc.

Referenced by get_exact_u(), and get_source().

◆ X_0

double TanhSolnForPoisson::X_0 =0.0

◆ Y_0

double TanhSolnForPoisson::Y_0 =0.0

Orientation (y-coordinate of step plane)

Definition at line 69 of file mesh_from_tetgen_poisson.cc.

Referenced by get_exact_u(), and get_source().

◆ Z_0

double TanhSolnForPoisson::Z_0 =0.0

Orientation (z-coordinate of step plane)

Definition at line 72 of file mesh_from_tetgen_poisson.cc.

Referenced by get_exact_u(), and get_source().