Interface to run-time selectable methods to calculate the distance-to-wall and normal-to-wall fields. More...
Public Member Functions | |
ClassName ("wallDist") | |
wallDist (const fvMesh &mesh, const labelHashSet &patchIDs, const word &patchTypeName="patch") | |
Construct from mesh, patch IDs and optional patch type name. More... | |
wallDist (const fvMesh &mesh, const word &defaultPatchDistMethod, const labelHashSet &patchIDs, const word &patchTypeName="patch") | |
Construct from mesh, patch IDs, default patch distance method. More... | |
wallDist (const fvMesh &mesh, const word &patchTypeName="wall") | |
Construct from mesh and optional patch type name. More... | |
virtual | ~wallDist () |
Destructor. More... | |
const labelHashSet & | patchIDs () const |
Return the patchIDs. More... | |
const volScalarField & | y () const |
Return reference to cached distance-to-wall field. More... | |
const volVectorField & | n () const |
Return reference to cached normal-to-wall field. More... | |
virtual bool | movePoints () |
Update the y-field when the mesh moves. More... | |
virtual void | updateMesh (const mapPolyMesh &) |
Update the y-field when the mesh changes. More... | |
Public Member Functions inherited from MeshObject< fvMesh, UpdateableMeshObject, wallDist > | |
MeshObject (const fvMesh &mesh) | |
Construct on Mesh type. More... | |
virtual | ~MeshObject ()=default |
Destructor. More... | |
const fvMesh & | mesh () const |
virtual bool | writeData (Ostream &os) const |
Additional Inherited Members | |
Static Public Member Functions inherited from MeshObject< fvMesh, UpdateableMeshObject, wallDist > | |
static const wallDist & | New (const fvMesh &mesh, Args &&... args) |
Get existing or create a new MeshObject. More... | |
static bool | Delete (const fvMesh &mesh) |
Static destructor. More... | |
Protected Attributes inherited from MeshObject< fvMesh, UpdateableMeshObject, wallDist > | |
const fvMesh & | mesh_ |
Interface to run-time selectable methods to calculate the distance-to-wall and normal-to-wall fields.
Example of the wallDist specification in fvSchemes:
wallDist { method meshWave; // Optional entry enabling the calculation // of the normal-to-wall field nRequired false; // Optional entry delaying wall distance update to every n steps // Default is 1 (update every step) updateInterval 5; }
Definition at line 75 of file wallDist.H.
wallDist | ( | const fvMesh & | mesh, |
const labelHashSet & | patchIDs, | ||
const word & | patchTypeName = "patch" |
||
) |
Construct from mesh, patch IDs and optional patch type name.
Definition at line 73 of file wallDist.C.
wallDist | ( | const fvMesh & | mesh, |
const word & | defaultPatchDistMethod, | ||
const labelHashSet & | patchIDs, | ||
const word & | patchTypeName = "patch" |
||
) |
Construct from mesh, patch IDs, default patch distance method.
and optional patch type name
Definition at line 84 of file wallDist.C.
References wallDist::movePoints().
Construct from mesh and optional patch type name.
Definition at line 138 of file wallDist.C.
|
virtual |
Destructor.
Definition at line 151 of file wallDist.C.
ClassName | ( | "wallDist" | ) |
|
inline |
Return the patchIDs.
Definition at line 162 of file wallDist.H.
|
inline |
Return reference to cached distance-to-wall field.
Definition at line 168 of file wallDist.H.
const Foam::volVectorField & n | ( | ) | const |
Return reference to cached normal-to-wall field.
Definition at line 157 of file wallDist.C.
References Foam::endl(), Foam::isNull(), Foam::nl, and WarningInFunction.
|
virtual |
Update the y-field when the mesh moves.
Definition at line 175 of file wallDist.C.
References DebugInfo, and Foam::endl().
Referenced by wallDist::wallDist().
|
virtual |
Update the y-field when the mesh changes.
Definition at line 206 of file wallDist.C.