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 =1
 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 82 of file eighth_sphere_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 91 of file eighth_sphere_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 =1

Parameter for steepness of step.

Definition at line 48 of file eighth_sphere_poisson.cc.

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

◆ N_x

double TanhSolnForPoisson::N_x =-1.0

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

Definition at line 52 of file eighth_sphere_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 56 of file eighth_sphere_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 60 of file eighth_sphere_poisson.cc.

Referenced by get_exact_u(), and get_source().

◆ X_0

double TanhSolnForPoisson::X_0 =0.0

Orientation (x-coordinate of step plane)

Definition at line 64 of file eighth_sphere_poisson.cc.

Referenced by get_exact_u(), and get_source().

◆ Y_0

double TanhSolnForPoisson::Y_0 =0.0

Orientation (y-coordinate of step plane)

Definition at line 67 of file eighth_sphere_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 70 of file eighth_sphere_poisson.cc.

Referenced by get_exact_u(), and get_source().