Go to the documentation of this file.
32 template<
class TrackingData>
52 scalar
diff = distSqr_ - dist2;
60 if ((
diff < SMALL) || ((distSqr_ > SMALL) && (
diff/distSqr_ < tol)))
77 template<
class TrackingData>
102 if ((
diff < SMALL) || ((distSqr_ > SMALL) && (
diff/distSqr_ < tol)))
143 origin_(wpt.origin()),
144 distSqr_(wpt.distSqr())
162 template<
class TrackingData>
169 template<
class TrackingData>
183 template<
class TrackingData>
202 return update(eMid, faceInfo, tol, td);
206 template<
class TrackingData>
212 const bool sameOrientation,
217 return update(edgeInfo, tol, td);
221 template<
class TrackingData>
233 return update(patch.
faceCentres()[faceI], edgeInfo, tol, td);
237 template<
class TrackingData>
250 inline bool Foam::patchEdgeFaceInfo::operator==
255 return origin() == rhs.
origin();
259 inline bool Foam::patchEdgeFaceInfo::operator!=
264 return !(*
this == rhs);
Templated 3D tensor derived from VectorSpace adding construction from 9 components,...
const Field< PointType > & points() const
Return reference to global points.
const edgeList & edges() const
Return list of edges, address into LOCAL point list.
An edge is a list of two point labels. The functionality it provides supports the discretisation on a...
bool updateFace(const polyMesh &mesh, const primitivePatch &patch, const label faceI, const label edgeI, const patchEdgeFaceInfo &edgeInfo, const scalar tol, TrackingData &td)
Influence of edge on face.
patchEdgeFaceInfo()
Construct null.
tmp< fvMatrix< Type > > operator==(const fvMatrix< Type > &, const fvMatrix< Type > &)
Mesh consisting of general polyhedral cells.
dimensionSet transform(const dimensionSet &)
scalar diff(const triad &A, const triad &B)
Return a quantity of the difference between two triads.
bool valid(TrackingData &td) const
Check whether origin has been changed at all or.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
void transform(const polyMesh &mesh, const primitivePatch &patch, const tensor &rotTensor, const scalar tol, TrackingData &td)
Apply rotation matrix.
bool updateEdge(const polyMesh &mesh, const primitivePatch &patch, const label edgeI, const label faceI, const patchEdgeFaceInfo &faceInfo, const scalar tol, TrackingData &td)
Influence of face on edge.
const double e
Elementary charge.
dimensioned< Type > max(const dimensioned< Type > &, const dimensioned< Type > &)
bool update(const point &, const patchEdgeFaceInfo &w2, const scalar tol, TrackingData &td)
Evaluate distance to point. Update distSqr, origin from whomever.
dimensionedSymmTensor sqr(const dimensionedVector &dv)
const Field< PointType > & faceCentres() const
Return face centres for patch.
bool equal(const patchEdgeFaceInfo &, TrackingData &td) const
Same (like operator==)
const labelList & meshPoints() const
Return labelList of mesh points in patch.
dimensioned< scalar > magSqr(const dimensioned< Type > &)
A list of faces which address into the list of points.
const point & origin() const