Functions | Variables
TanhSolnForAdvectionDiffusion Namespace Reference

Namespace for exact solution for AdvectionDiffusion 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 source_function (const Vector< double > &x_vect, double &source)
 Source function required to make the solution above an exact solution. More...
 
void wind_function (const Vector< double > &x, Vector< double > &wind)
 Wind. More...
 
void tanh_profile (const Vector< double > &x, Vector< double > &u)
 Tanh profile for assignment of boundary conditons as a Vector. More...
 
void tanh_profile (const Vector< double > &x, double &u)
 Tanh profile for assignment of boundary conditons as a Vector. More...
 

Variables

double Peclet =200.0
 Peclet number. More...
 
double Alpha
 Parameter for steepness of step. More...
 
double TanPhi
 Parameter for angle of step. More...
 

Detailed Description

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

Namespace for physical parameters and boundary conditions "sharp" step.

Function Documentation

◆ get_exact_u() [1/2]

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

Exact solution as a scalar.

Definition at line 65 of file two_d_adv_diff_adapt.cc.

References Alpha, and TanPhi.

◆ get_exact_u() [2/2]

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

◆ source_function()

void TanhSolnForAdvectionDiffusion::source_function ( const Vector< double > &  x_vect,
double &  source 
)

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

Zero source function.

Definition at line 71 of file two_d_adv_diff_adapt.cc.

References Alpha, Peclet, and TanPhi.

Referenced by main().

◆ tanh_profile() [1/2]

void TanhSolnForAdvectionDiffusion::tanh_profile ( const Vector< double > &  x,
double &  u 
)

Tanh profile for assignment of boundary conditons as a Vector.

Definition at line 64 of file two_d_adv_diff_adapt2.cc.

References Alpha, and TanPhi.

◆ tanh_profile() [2/2]

void TanhSolnForAdvectionDiffusion::tanh_profile ( const Vector< double > &  x,
Vector< double > &  u 
)

Tanh profile for assignment of boundary conditons as a Vector.

Definition at line 58 of file two_d_adv_diff_adapt2.cc.

References Alpha, and TanPhi.

◆ wind_function()

void TanhSolnForAdvectionDiffusion::wind_function ( const Vector< double > &  x,
Vector< double > &  wind 
)

Wind.

Wind: Recirculating cells.

Definition at line 84 of file two_d_adv_diff_adapt.cc.

Referenced by main().

Variable Documentation

◆ Alpha

double TanhSolnForAdvectionDiffusion::Alpha

Parameter for steepness of step.

Parameter for steepness of step in tanh profile.

Definition at line 53 of file two_d_adv_diff_adapt.cc.

Referenced by get_exact_u(), main(), source_function(), and tanh_profile().

◆ Peclet

double TanhSolnForAdvectionDiffusion::Peclet =200.0

◆ TanPhi

double TanhSolnForAdvectionDiffusion::TanPhi

Parameter for angle of step.

Parameter for angle of step in tanh profile.

Definition at line 56 of file two_d_adv_diff_adapt.cc.

Referenced by get_exact_u(), main(), source_function(), and tanh_profile().