Collection of functions used in wall distance calculation. More...
Public Member Functions | |
ClassName ("cellDistFuncs") | |
cellDistFuncs (const polyMesh &mesh) | |
const polyMesh & | mesh () const |
labelHashSet | getPatchIDs (const UList< wordRe > &patchNames) const |
template<class Type > | |
labelHashSet | getPatchIDs () const |
scalar | smallestDist (const point &p, const polyPatch &patch, const labelUList &wallFaces, label &meshFacei) const |
void | getPointNeighbours (const primitivePatch &, const label patchFacei, DynamicList< label > &) const |
label | maxPatchSize (const labelHashSet &patchIDs) const |
label | sumPatchSize (const labelHashSet &patchIDs) const |
void | correctBoundaryFaceCells (const labelHashSet &patchIDs, scalarField &wallDistCorrected, Map< label > &nearestFace) const |
void | correctBoundaryPointCells (const labelHashSet &patchIDs, scalarField &wallDistCorrected, Map< label > &nearestFace) const |
template<class Type > | |
Foam::labelHashSet | getPatchIDs () const |
Collection of functions used in wall distance calculation.
Definition at line 59 of file cellDistFuncs.H.
cellDistFuncs | ( | const polyMesh & | mesh | ) |
Definition at line 35 of file cellDistFuncs.C.
ClassName | ( | "cellDistFuncs" | ) |
|
inline |
Definition at line 88 of file cellDistFuncs.H.
Referenced by cellDistFuncs::getPatchIDs().
Foam::labelHashSet getPatchIDs | ( | const UList< wordRe > & | patchNames | ) | const |
Definition at line 44 of file cellDistFuncs.C.
References polyMesh::boundaryMesh(), mesh, patchNames(), and polyBoundaryMesh::patchSet().
labelHashSet getPatchIDs | ( | ) | const |
Foam::scalar smallestDist | ( | const point & | p, |
const polyPatch & | patch, | ||
const labelUList & | wallFaces, | ||
label & | meshFacei | ||
) | const |
Definition at line 56 of file cellDistFuncs.C.
References PointHit< PointType >::distance(), p, Foam::foamVersion::patch, and points.
void getPointNeighbours | ( | const primitivePatch & | patch, |
const label | patchFacei, | ||
DynamicList< label > & | neighbours | ||
) | const |
Definition at line 87 of file cellDistFuncs.C.
References Foam::abort(), DynamicList::append(), DynamicList::appendUniq(), DynamicList::clear(), Foam::expressions::patchExpr::debug, Foam::endl(), f(), Foam::FatalError, FatalErrorInFunction, forAll, HashSet::insert(), Foam::foamVersion::patch, and SeriousErrorInFunction.
Foam::label maxPatchSize | ( | const labelHashSet & | patchIDs | ) | const |
Definition at line 182 of file cellDistFuncs.C.
References polyMesh::boundaryMesh(), forAll, Foam::max(), mesh, and Foam::foamVersion::patch.
Foam::label sumPatchSize | ( | const labelHashSet & | patchIDs | ) | const |
Definition at line 203 of file cellDistFuncs.C.
References polyMesh::boundaryMesh(), forAll, mesh, Foam::foamVersion::patch, and Foam::sum().
void correctBoundaryFaceCells | ( | const labelHashSet & | patchIDs, |
scalarField & | wallDistCorrected, | ||
Map< label > & | nearestFace | ||
) | const |
Definition at line 225 of file cellDistFuncs.C.
References polyMesh::boundaryMesh(), primitiveMesh::cellCentres(), polyMesh::faceOwner(), forAll, mesh, and Foam::foamVersion::patch.
void correctBoundaryPointCells | ( | const labelHashSet & | patchIDs, |
scalarField & | wallDistCorrected, | ||
Map< label > & | nearestFace | ||
) | const |
Definition at line 271 of file cellDistFuncs.C.
References polyMesh::boundaryMesh(), primitiveMesh::cellCentres(), forAll, mesh, Foam::foamVersion::patch, and primitiveMesh::pointCells().
Foam::labelHashSet getPatchIDs | ( | ) | const |
Definition at line 29 of file cellDistFuncsTemplates.C.
References polyMesh::boundaryMesh(), forAll, HashSet::insert(), and cellDistFuncs::mesh().
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.