GlobalPhysicalParameters Namespace Reference

Namespace for Womersley problem. More...

Functions

void get_boundary_values (const Vector< double > &x, Vector< double > &u)
 Some "solution" for assignment of boundary values. More...
 
void source_function (const Vector< double > &x_vect, double &source)
 Zero source function. More...
 
void wind_function (const Vector< double > &x, Vector< double > &wind)
 Wind. More...
 
double prescribed_volume_flux (const double &time)
 Prescribed volume flux – must be assigned to Prescribed_volume_flux. More...
 
double prescribed_pressure_gradient (const double &time)
 Prescribed pressure gradient. More...
 

Variables

double Peclet =200.0
 Peclet number. More...
 
double Alpha =50.0
 Parameter for steepness of step in boundary values. More...
 
double TanPhi =1.0
 Parameter for angle of step in boundary values: 45 degrees. More...
 
double Prescribed_volume_flux =0.0
 Prescribed volume flux. More...
 
double Alpha_sq =10.0
 Womersley number. More...
 
double L_impedance =7.0
 Length of impedance tube. More...
 

Detailed Description

Namespace for Womersley problem.

Namespace for global parameters: Unforced problem with boundary values corresponding to a steep tanh step profile oriented at 45 degrees across the domain.

Function Documentation

◆ get_boundary_values()

void GlobalPhysicalParameters::get_boundary_values ( const Vector< double > &  x,
Vector< double > &  u 
)

Some "solution" for assignment of boundary values.

62  {
63  u[0]=tanh(1.0-Alpha*(TanPhi*x[0]-x[1]));
64  }
EIGEN_STRONG_INLINE EIGEN_DEVICE_FUNC bfloat16 tanh(const bfloat16 &a)
Definition: BFloat16.h:639
double Alpha
Parameter for steepness of step in boundary values.
Definition: two_d_adv_diff_SUPG.cc:55
double TanPhi
Parameter for angle of step in boundary values: 45 degrees.
Definition: two_d_adv_diff_SUPG.cc:58
list x
Definition: plotDoE.py:28

References Alpha, Eigen::bfloat16_impl::tanh(), TanPhi, and plotDoE::x.

Referenced by SUPGAdvectionDiffusionProblem< ELEMENT >::actions_before_newton_solve().

◆ prescribed_pressure_gradient()

double GlobalPhysicalParameters::prescribed_pressure_gradient ( const double time)

Prescribed pressure gradient.

61  {
62  return 2.0*cos(2.0*MathematicalConstants::Pi*time);
63  }
AnnoyingScalar cos(const AnnoyingScalar &x)
Definition: AnnoyingScalar.h:136
double Pi
Definition: two_d_biharmonic.cc:235

References cos(), and BiharmonicTestFunctions2::Pi.

Referenced by run_prescribed_pressure_gradient().

◆ prescribed_volume_flux()

double GlobalPhysicalParameters::prescribed_volume_flux ( const double time)

Prescribed volume flux – must be assigned to Prescribed_volume_flux.

55  {
56  return 2.0*cos(2.0*MathematicalConstants::Pi*time);
57  }

References cos(), and BiharmonicTestFunctions2::Pi.

Referenced by run_impedance_tube(), and run_prescribed_flux().

◆ source_function()

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

Zero source function.

68  {
69  source=0.0;
70  }
void source(const Vector< double > &x, Vector< double > &f)
Source function.
Definition: unstructured_two_d_circle.cc:46

References TestProblem::source().

Referenced by main().

◆ wind_function()

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

Wind.

74  {
75  wind[0]=sin(6.0*x[1]);
76  wind[1]=cos(6.0*x[0]);
77  }
AnnoyingScalar sin(const AnnoyingScalar &x)
Definition: AnnoyingScalar.h:137

References cos(), sin(), and plotDoE::x.

Referenced by main().

Variable Documentation

◆ Alpha

double GlobalPhysicalParameters::Alpha =50.0

Parameter for steepness of step in boundary values.

Referenced by get_boundary_values().

◆ Alpha_sq

double GlobalPhysicalParameters::Alpha_sq =10.0

◆ L_impedance

◆ Peclet

double GlobalPhysicalParameters::Peclet =200.0

◆ Prescribed_volume_flux

◆ TanPhi

double GlobalPhysicalParameters::TanPhi =1.0

Parameter for angle of step in boundary values: 45 degrees.

Referenced by get_boundary_values().