Calculation of exact distance to nearest patch for all cells and boundary by constructing a search tree for all patch faces. More...
Public Member Functions | |
TypeName ("exactDistance") | |
Runtime type information. More... | |
exact (const dictionary &dict, const fvMesh &mesh, const labelHashSet &patchIDs) | |
Construct from coefficients dictionary, mesh. More... | |
exact (const fvMesh &mesh, const labelHashSet &patchIDs) | |
Construct from mesh and fixed-value patch set. More... | |
virtual bool | movePoints () |
Update cached geometry when the mesh moves. More... | |
virtual void | updateMesh (const mapPolyMesh &) |
Update cached topology and geometry when the mesh changes. 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... | |
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... | |
virtual | ~patchDistMethod () |
Destructor. More... | |
const labelHashSet & | patchIDs () const |
Return the patchIDs. 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, const word &defaultPatchDistMethod=word::null) |
template<class Type > | |
static wordList | patchTypes (const fvMesh &mesh, const labelHashSet &patchIDs) |
Return the patch types for y and n. More... | |
Protected Member Functions inherited from patchDistMethod | |
patchDistMethod (const patchDistMethod &)=delete | |
No copy construct. More... | |
void | operator= (const patchDistMethod &)=delete |
No copy assignment. More... | |
Protected Attributes inherited from patchDistMethod | |
const fvMesh & | mesh_ |
Reference to the mesh. More... | |
const labelHashSet | patchIDs_ |
Set of patch IDs. More... | |
Calculation of exact distance to nearest patch for all cells and boundary by constructing a search tree for all patch faces.
Definition at line 56 of file exactPatchDistMethod.H.
exact | ( | const dictionary & | dict, |
const fvMesh & | mesh, | ||
const labelHashSet & | patchIDs | ||
) |
Construct from coefficients dictionary, mesh.
and fixed-value patch set
Definition at line 121 of file exactPatchDistMethod.C.
exact | ( | const fvMesh & | mesh, |
const labelHashSet & | patchIDs | ||
) |
Construct from mesh and fixed-value patch set.
Definition at line 132 of file exactPatchDistMethod.C.
TypeName | ( | "exactDistance" | ) |
Runtime type information.
|
inlinevirtual |
Update cached geometry when the mesh moves.
Reimplemented from patchDistMethod.
Definition at line 120 of file exactPatchDistMethod.H.
|
inlinevirtual |
Update cached topology and geometry when the mesh changes.
Reimplemented from patchDistMethod.
Definition at line 130 of file exactPatchDistMethod.H.
|
virtual |
Correct the given distance-to-patch field.
Implements patchDistMethod.
Definition at line 143 of file exactPatchDistMethod.C.
References correct, GeometricField< vector, fvPatchField, volMesh >::null(), and y.
|
virtual |
Correct the given distance-to-patch and normal-to-patch fields.
Implements patchDistMethod.
Definition at line 150 of file exactPatchDistMethod.C.
References Foam::ensightOutput::debug, Foam::endl(), distributedTriSurfaceMesh::findNearest(), forAll, distributedTriSurfaceMesh::getNormal(), Foam::Info, n, Foam::notNull(), Foam::sqr(), Foam::type(), and y.