Functions | Variables
TanhSolnForAdvectionDiffusion Namespace Reference

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,
Vector< double > &  u 
)

◆ get_exact_u() [2/2]

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

Exact solution as a scalar.

Definition at line 69 of file two_d_adv_diff_adapt.cc.

◆ 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 75 of file two_d_adv_diff_adapt.cc.

Referenced by main(), and tanh_profile().

◆ tanh_profile() [1/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 62 of file two_d_adv_diff_adapt2.cc.

Referenced by RefineableAdvectionDiffusionProblem< ELEMENT >::mesh_pt().

◆ tanh_profile() [2/2]

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

Tanh profile for assignment of boundary conditons as a Vector.

Definition at line 68 of file two_d_adv_diff_adapt2.cc.

References source_function(), and wind_function().

◆ wind_function()

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

Wind.

Wind: Recirculating cells.

Definition at line 88 of file two_d_adv_diff_adapt.cc.

Referenced by main(), and tanh_profile().

Variable Documentation

◆ Alpha

double TanhSolnForAdvectionDiffusion::Alpha

Parameter for steepness of step.

Parameter for steepness of step in tanh profile.

Definition at line 57 of file two_d_adv_diff_adapt.cc.

Referenced by main().

◆ 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 60 of file two_d_adv_diff_adapt.cc.

Referenced by main().