BL_Squash Namespace Reference

Functions

double squash_fct (const double &s)
 

Variables

double Delta =0.1
 Boundary layer width. More...
 
double Fract_in_BL =0.5
 Fraction of points in boundary layer. More...
 

Detailed Description

///////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////// Namespace to define the mapping [0,1] -> [0,1] that re-distributes nodal points across the channel width.

Namespace to define the mapping [0,1] -> [0,1] that re-distributes nodal points across the channel width.

Function Documentation

◆ squash_fct()

double BL_Squash::squash_fct ( const double s)

Mapping [0,1] -> [0,1] that re-distributes nodal points across the channel width

119  {
120  // Default return
121  double y=s;
122  if (s<0.5*Fract_in_BL)
123  {
124  y=Delta*2.0*s/Fract_in_BL;
125  }
126  else if (s>1.0-0.5*Fract_in_BL)
127  {
128  y=2.0*Delta/Fract_in_BL*s+1.0-2.0*Delta/Fract_in_BL;
129  }
130  else
131  {
132  y=(1.0-2.0*Delta)/(1.0-Fract_in_BL)*s+
133  (Delta-0.5*Fract_in_BL)/(1.0-Fract_in_BL);
134  }
135 
136  return y;
137  }
Scalar * y
Definition: level1_cplx_impl.h:128
RealScalar s
Definition: level1_cplx_impl.h:130
double Delta
Boundary layer width.
Definition: fsi_chan_problem.h:111
double Fract_in_BL
Fraction of points in boundary layer.
Definition: fsi_chan_problem.h:114

References Delta, Fract_in_BL, s, and y.

Referenced by CollapsibleChannelProblem< ELEMENT >::CollapsibleChannelProblem(), and FSICollapsibleChannelProblem< ELEMENT >::FSICollapsibleChannelProblem().

Variable Documentation

◆ Delta

double BL_Squash::Delta =0.1

Boundary layer width.

Referenced by squash_fct().

◆ Fract_in_BL

double BL_Squash::Fract_in_BL =0.5

Fraction of points in boundary layer.

Referenced by squash_fct().