8.1
general documentation
distpr.f90 File Reference

Compute distance to wall by solving a 3d diffusion equation. Solve. More...

Functions/Subroutines

subroutine distpr (itypfb, iterns)
 

Detailed Description

Compute distance to wall by solving a 3d diffusion equation. Solve.

\[ -\divs ( \grad \varia ) = 1 \]

with:

  • $ \varia_|b = 0 $ at the wall
  • $ \grad \varia \cdot \vect{n} = 0 $ elsewhere The wall distance is then equal to:

    \[ d \simeq -|\grad \varia | + \sqrt{ \grad \varia \cdot \grad \varia +2 \varia } \]

Function/Subroutine Documentation

◆ distpr()

subroutine distpr ( integer, dimension(nfabor)  itypfb,
integer  iterns 
)
Parameters
[in]itypfbboundary face types
[in]iternsiteration number on Navier-Stokes equations