39 #ifndef cellDistFuncs_H 40 #define cellDistFuncs_H 58 class polyBoundaryMesh;
116 template<
class PatchType>
120 const PatchType&
patch,
126 template<
class PatchType>
130 const label patchFacei,
165 const bool doPointCells,
labelHashSet getPatchIDs() const
Get patchIDs of/derived off certain type (e.g. 'processorPolyPatch')
const labelList patchIDs(pbm.indices(polyPatchNames, true))
label sumPatchSize(const labelHashSet &patchIDs) const
Sum of patch sizes (out of supplied subset of patches).
void correctBoundaryFaceCells(const labelHashSet &patchIDs, scalarField &wallDistCorrected, Map< label > &nearestFace) const
Correct all cells connected to boundary (via face). Sets values in.
Collection of functions used in wall distance calculation.
static bool useCombinedWallPatch
Use combined-wall-patches wall distance v.s. v2406 per-patch distance. Default is true...
void correctBoundaryCells(const labelList &patchIDs, const bool doPointCells, scalarField &wallDistCorrected, Map< label > &nearestFace) const
Correct all cells connected to any of the patches in patchIDs. Sets.
wordList patchNames(nPatches)
void correctBoundaryPointCells(const labelHashSet &patchIDs, scalarField &wallDistCorrected, Map< label > &nearestFace) const
Correct all cells connected to wall (via point). Sets values in.
label maxPatchSize(const labelHashSet &patchIDs) const
Size of largest patch (out of supplied subset of patches)
A 1D vector of objects of type <T>, where the size of the vector is known and can be used for subscri...
scalar smallestDist(const point &p, const PatchType &patch, const labelUList &wallFaces, label &patchFacei) const
Calculate smallest true distance (and patch face index)
A Vector of values with scalar precision, where scalar is float/double depending on the compilation f...
Macro definitions for declaring ClassName(), NamespaceName(), etc.
const std::string patch
OpenFOAM patch number as a std::string.
Mesh consisting of general polyhedral cells.
void getPointNeighbours(const PatchType &, const label patchFacei, DynamicList< label > &) const
Get faces sharing point with face on patch.
const polyMesh & mesh() const
Access mesh.
ClassName("cellDistFuncs")