33 inline void Foam::wallPointAddressing::setNull
35 const globalIndexAndTransform& gt
40 const label proci = 0;
41 const label index = -1;
44 data_ = gt.encode(proci, index, gt.nullTransformIndex());
50 template<
class TrackingData>
51 inline bool Foam::wallPointAddressing::update
54 const wallPointAddressing&
w2,
59 const scalar dist2 =
magSqr(pt -
w2.origin());
63 const scalar
diff = distSqr() - dist2;
71 if ((
diff < SMALL) || ((distSqr() > SMALL) && (
diff/distSqr() < tol)))
82 origin() =
w2.origin();
113 template<
class TrackingData>
118 const label patchFacei,
119 const point& faceCentre,
131 const label transformi = gt.transformIndex(data_);
132 const label proci = gt.processor(data_);
133 const label index = gt.index(data_);
136 const label newTransformi = gt.addToTransformIndex
141 data_ = gt.encode(proci, index, newTransformi);
163 template<
class TrackingData>
167 const label thisCelli,
168 const label neighbourFacei,
180 cellCentres[thisCelli],
189 template<
class TrackingData>
193 const label thisFacei,
206 faceCentres[thisFacei],
215 template<
class TrackingData>
219 const label thisFacei,
231 faceCentres[thisFacei],
scalar diff(const triad &A, const triad &B)
Return a quantity of the difference between two triads.
bool updateFace(const polyMesh &mesh, const label thisFacei, const label neighbourCelli, const wallPointAddressing &neighbourWallInfo, const scalar tol, TrackingData &td)
Influence of neighbouring cell.
wallPoints::trackData td(isBlockedFace, regionToBlockSize)
bool updateCell(const polyMesh &mesh, const label thisCelli, const label neighbourFacei, const wallPointAddressing &neighbourWallInfo, const scalar tol, TrackingData &td)
Influence of neighbouring face.
void leaveDomain(const polyMesh &, const polyPatch &, const label patchFacei, const point &faceCentre, TrackingData &td)
Convert any absolute coordinates into relative to (patch)face centre.
const globalIndexAndTransform & globalTransforms() const
Global transforms numbering.
void leaveDomain(const polyMesh &, const polyPatch &, const label patchFacei, const point &faceCentre, TrackingData &td)
Convert any absolute coordinates into relative to (patch)face centre.
const globalMeshData & globalData() const
Return parallel info (demand-driven)
A Vector of values with scalar precision, where scalar is float/double depending on the compilation f...
Pair< label > labelPair
A pair of labels.
Holds information regarding nearest wall point. Used in wall distance calculation.
const vectorField & faceCentres() const
Holds information (coordinate and origin) regarding nearest wall point.
vector point
Point is a vector.
wallPointAddressing()
Default construct.
Mesh consisting of general polyhedral cells.
A patch is a list of labels that address the faces in the global face list.
dimensioned< typename typeOfMag< Type >::type > magSqr(const dimensioned< Type > &dt)
uindirectPrimitivePatch pp(UIndirectList< face >(mesh.faces(), faceLabels), mesh.points())