programmer's documentation
Functions/Subroutines
distyp.f90 File Reference

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

Functions/Subroutines

subroutine distyp (itypfb, distpa, 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

subroutine distyp ( integer, dimension(nfabor)  itypfb,
double precision, dimension(ncelet)  distpa,
double precision, dimension(ncelet)  disty 
)
Parameters
[in]itypfbboundary face types
[in]distpatab des distances a la paroi
[out]distydimensionless distance $ y^+ $