Go to the documentation of this file.
72 scalar minDist = GREAT;
75 for (
const label patchFacei : wallFaces)
82 minFacei =
patch.start() + patchFacei;
96 const label patchFacei,
103 neighbours.
append(patchFacei);
108 for (
const label nbr : faceNeighbours)
117 const face&
f =
patch.localFaces()[patchFacei];
121 label pointi =
f[fp];
125 for (
const label facei : pointNbs)
143 nbs.insert(pointNbs);
147 for (
const label nb : neighbours)
152 <<
"getPointNeighbours : patchFacei:" << patchFacei
153 <<
" verts:" <<
f <<
endl;
158 <<
"point:" <<
f[fp] <<
" pointFaces:"
162 for (
const label facei : neighbours)
165 <<
"fast nbr:" << facei
170 <<
"Problem: fast pointNeighbours routine included " << nb
171 <<
" which is not in proper neighbour list " << nbs.toc()
180 <<
"Problem: fast pointNeighbours routine did not find "
197 if (patchIDs.found(patchi))
219 if (patchIDs.found(patchi))
247 if (patchIDs.found(patchi))
254 getPointNeighbours(
patch, patchFacei, neighbours);
256 label celli = faceOwner[
patch.start() + patchFacei];
260 wallDistCorrected[celli] = smallestDist
269 nearestFace.insert(celli, minFacei);
290 if (patchIDs.found(patchi))
297 forAll(meshPoints, meshPointi)
299 const label vertI = meshPoints[meshPointi];
303 for (
const label celli : neighbours)
305 if (!nearestFace.found(celli))
307 const labelList& wallFaces = pointFaces[meshPointi];
311 wallDistCorrected[celli] = smallestDist
320 nearestFace.insert(celli, minFacei);
int debug
Static debugging option.
Describes the interaction of a face and a point. It carries the info of a successful hit and (if succ...
label maxPatchSize(const labelHashSet &patchIDs) const
Size of largest patch (out of supplied subset of patches)
scalar distance() const noexcept
Return distance to hit.
const polyBoundaryMesh & boundaryMesh() const
Return boundary mesh.
Ostream & endl(Ostream &os)
Add newline and flush stream.
void clear() noexcept
Clear the addressed list, i.e. set the size to zero.
Mesh consisting of general polyhedral cells.
#define forAll(list, i)
Loop across all elements in list.
void correctBoundaryPointCells(const labelHashSet &patchIDs, scalarField &wallDistCorrected, Map< label > &nearestFace) const
Correct all cells connected to wall (via point). Sets values in.
labelHashSet getPatchIDs() const
Get patchIDs of/derived off certain type (e.g. 'processorPolyPatch')
A patch is a list of labels that address the faces in the global face list.
DynamicList< T, SizeMin > & append(const T &val)
Append an element to the end of this list.
virtual const labelList & faceOwner() const
Return face owner.
label sumPatchSize(const labelHashSet &patchIDs) const
Sum of patch sizes (out of supplied subset of patches).
#define SeriousErrorInFunction
Report an error message using Foam::SeriousError.
wordList patchNames(nPatches)
label max(const labelHashSet &set, label maxValue=labelMin)
Find the max value in labelHashSet, optionally limited by second argument.
errorManip< error > abort(error &err)
const vectorField & cellCentres() const
scalar smallestDist(const point &p, const polyPatch &patch, const labelUList &wallFaces, label &meshFacei) const
Calculate smallest true distance (and face index)
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
const std::string patch
OpenFOAM patch number as a std::string.
A 1D vector of objects of type <T>, where the size of the vector is known and can be used for subscri...
labelHashSet patchSet(const UList< wordRe > &patchNames, const bool warnNotFound=true, const bool useGroups=true) const
Return the set of patch IDs corresponding to the given names.
const labelListList & pointCells() const
dimensioned< Type > sum(const DimensionedField< Type, GeoMesh > &df)
Addressing for all faces on surface of mesh. Can either be read from polyMesh or from triSurface....
A face is a list of labels corresponding to mesh vertices.
void correctBoundaryFaceCells(const labelHashSet &patchIDs, scalarField &wallDistCorrected, Map< label > &nearestFace) const
Correct all cells connected to boundary (via face). Sets values in.
void getPointNeighbours(const primitivePatch &, const label patchFacei, DynamicList< label > &) const
Get faces sharing point with face on patch.
defineTypeNameAndDebug(combustionModel, 0)
label appendUniq(const T &val)
Append an element if not already in the list.
A list of faces which address into the list of points.