Fast topological mesh-wave method for calculating the distance to nearest patch for all cells and boundary. More...
Public Member Functions | |
TypeName ("meshWave") | |
Runtime type information. More... | |
meshWave (const dictionary &dict, const fvMesh &mesh, const labelHashSet &patchIDs) | |
Construct from coefficients dictionary, mesh. More... | |
meshWave (const fvMesh &mesh, const labelHashSet &patchIDs, const label nCorrectors=2, const scalar minFaceFraction=1e-1) | |
Construct from mesh, fixed-value patch set, and number of wall. More... | |
meshWave (const meshWave &)=delete | |
Disallow default bitwise copy construction. More... | |
virtual bool | correct (volScalarField &y) |
Correct the given distance-to-patch field. More... | |
virtual bool | correct (volScalarField &y, volVectorField &n) |
Correct the given distance-to-patch and normal-to-patch fields. More... | |
void | operator= (const meshWave &)=delete |
Disallow default bitwise assignment. More... | |
Public Member Functions inherited from patchDistMethod | |
TypeName ("patchDistMethod") | |
Runtime type information. More... | |
declareRunTimeSelectionTable (autoPtr, patchDistMethod, dictionary,(const dictionary &dict, const fvMesh &mesh, const labelHashSet &patchIDs),(dict, mesh, patchIDs)) | |
patchDistMethod (const fvMesh &mesh, const labelHashSet &patchIDs) | |
Construct from mesh and patch ID set. More... | |
patchDistMethod (const patchDistMethod &)=delete | |
Disallow default bitwise copy construction. More... | |
virtual | ~patchDistMethod () |
Destructor. More... | |
const labelHashSet & | patchIDs () const |
Return the patchIDs. More... | |
virtual bool | movePoints () |
Update cached geometry when the mesh moves. More... | |
virtual void | topoChange (const polyTopoChangeMap &) |
Update cached topology and geometry when the mesh changes. More... | |
virtual void | mapMesh (const polyMeshMap &) |
Update from another mesh using the given map. More... | |
virtual void | distribute (const polyDistributionMap &) |
Redistribute or update using the given distribution map. More... | |
void | operator= (const patchDistMethod &)=delete |
Disallow default bitwise assignment. More... | |
template<class Type > | |
Foam::wordList | patchTypes (const fvMesh &mesh, const labelHashSet &patchIDs) |
Additional Inherited Members | |
Static Public Member Functions inherited from patchDistMethod | |
static autoPtr< patchDistMethod > | New (const dictionary &dict, const fvMesh &mesh, const labelHashSet &patchIDs) |
template<class Type > | |
static wordList | patchTypes (const fvMesh &mesh, const labelHashSet &patchIDs) |
Return the patch types for y and n. More... | |
Protected Attributes inherited from patchDistMethod | |
const fvMesh & | mesh_ |
Reference to the mesh. More... | |
const labelHashSet | patchIDs_ |
Set of patch IDs. More... | |
Fast topological mesh-wave method for calculating the distance to nearest patch for all cells and boundary.
For regular/un-distorted meshes this method is accurate but for skewed, non-orthogonal meshes it is approximate with the error increasing with the degree of mesh distortion. The distance from the near-wall cells to the boundary may optionally be corrected for mesh distortion by setting a number of correction iterations.
Example of the wallDist specification in fvSchemes:
wallDist { method meshWave; // Number of corrections nCorrectors 3; // Optional entry enabling the calculation // of the normal-to-wall field nRequired false; }
Definition at line 76 of file meshWavePatchDistMethod.H.
meshWave | ( | const dictionary & | dict, |
const fvMesh & | mesh, | ||
const labelHashSet & | patchIDs | ||
) |
Construct from coefficients dictionary, mesh.
and fixed-value patch set
Definition at line 48 of file meshWavePatchDistMethod.C.
meshWave | ( | const fvMesh & | mesh, |
const labelHashSet & | patchIDs, | ||
const label | nCorrectors = 2 , |
||
const scalar | minFaceFraction = 1e-1 |
||
) |
Construct from mesh, fixed-value patch set, and number of wall.
correction iterations
Definition at line 61 of file meshWavePatchDistMethod.C.
TypeName | ( | "meshWave" | ) |
Runtime type information.
|
virtual |
Correct the given distance-to-patch field.
Implements patchDistMethod.
Definition at line 76 of file meshWavePatchDistMethod.C.
References Foam::fvPatchDistWave::calculateAndCorrect(), GeometricField< Type, PatchField, GeoMesh >::correctBoundaryConditions(), and Foam::dimLength.
|
virtual |
Correct the given distance-to-patch and normal-to-patch fields.
Implements patchDistMethod.
Definition at line 98 of file meshWavePatchDistMethod.C.
References GeometricField< Type, PatchField, GeoMesh >::correctBoundaryConditions(), Foam::dimLength, n, and y.
|
delete |
Disallow default bitwise assignment.