Calculation of distance to nearest wall for all cells and boundary. Uses meshWave to do actual calculation. More...
#include <finiteVolume/wallDist.H>
Calculation of distance to nearest wall for all cells and boundary. Uses meshWave to do actual calculation.
if correctWalls = true: For each cell with face on wall calculate the true nearest point (by triangle decomposition) on that face and do that same for that face's pointNeighbours. This will find the true nearest distance in almost all cases. Only very skewed cells or cells close to another wall might be missed.
For each cell with only point on wall the same is done except now it takes the pointFaces() of the wall point to look for the nearest point.
correct() : for now does complete recalculation. (which usually is ok since mesh is smoothed). However for topology change where geometry in most of domain does not change you could think of starting from the old cell values. Tried but not done since:
Definition at line 79 of file wallDist.H.
Public Member Functions | |
wallDist (const fvMesh &mesh, bool correctWalls=true) | |
Construct from mesh and flag whether or not to correct wall.
| |
virtual | ~wallDist () |
const volScalarField & | y () const |
label | nUnset () const |
virtual void | correct () |
Correct for mesh geom/topo changes.
|
Construct from mesh and flag whether or not to correct wall.
Calculate for all cells. correctWalls : correct wall (face&point) cells for correct distance, searching neighbours.
Definition at line 36 of file wallDist.C.
References wallDist::correct().
~wallDist | ( | ) | [virtual]
|
Definition at line 59 of file wallDist.C.
const volScalarField& y | ( | ) | const [inline]
|
Definition at line 123 of file wallDist.H.
label nUnset | ( | ) | const [inline]
|
Definition at line 128 of file wallDist.H.
void correct | ( | ) | [virtual]
|
Correct for mesh geom/topo changes.
Definition at line 67 of file wallDist.C.
References boundaryField(), patchWave::distance(), forAll, cellDistFuncs::mesh(), patchWave::nUnset(), and patchWave::patchDistance().
Referenced by LienLeschzinerLowRe::correct(), LienCubicKELowRe::correct(), LamBremhorstKE::correct(), kOmegaSSTSAS::correct(), SpalartAllmaras::correct(), and wallDist::wallDist().