Code_Saturne
CFD tool
Functions/Subroutines
distyp.f90 File Reference

This subroutine computes the dimensionless distance to the wall solving a transport equation. More...

Functions/Subroutines

subroutine distyp (nvar, nscal, itypfb, distpa, propce, disty)
 

Detailed Description

This subroutine computes the dimensionless distance to the wall solving a transport equation.

This function solves the following transport equation on $ \varia $:

\[ \dfrac{\partial \varia}{\partial t} + \divs \left( \varia \vect{V} \right) - \divs \left( \vect{V} \right) \varia = 0 \]

where the vector field $ \vect{V} $ is defined by:

\[ \vect{V} = \dfrac{ \grad y }{\norm{\grad y} } \]

The boundary conditions on $ \varia $ read:

\[ \varia = \dfrac{u_\star}{\nu} \textrm{ on walls} \]

\[ \dfrac{\partial \varia}{\partial n} = 0 \textrm{ elsewhere} \]

Then the dimensionless distance is deduced by:

\[ y^+ = y \varia \]

Remarks:

Function/Subroutine Documentation

◆ distyp()

subroutine distyp ( integer  nvar,
integer  nscal,
integer, dimension(nfabor)  itypfb,
double precision, dimension(ncelet)  distpa,
double precision, dimension(ncelet,*)  propce,
double precision, dimension(ncelet)  disty 
)
Parameters
[in]nvartotal number of variables
[in]nscaltotal number of scalars
[in]itypfbboundary face types
[in]distpatab des distances a la paroi
[in]propcephysical properties at cell centers
[out]distydimensionless distance $ y^+ $
Here is the call graph for this function: