Go to the documentation of this file.
34 template<
class TrackingData>
35 inline bool Foam::patchEdgeFaceInfo::update
38 const patchEdgeFaceInfo&
w2,
43 scalar dist2 =
magSqr(pt -
w2.origin());
49 origin_ =
w2.origin();
54 scalar
diff = distSqr_ - dist2;
62 if ((
diff < SMALL) || ((distSqr_ > SMALL) && (
diff/distSqr_ < tol)))
71 origin_ =
w2.origin();
79 template<
class TrackingData>
80 inline bool Foam::patchEdgeFaceInfo::update
82 const patchEdgeFaceInfo&
w2,
90 distSqr_ =
w2.distSqr();
91 origin_ =
w2.origin();
96 scalar
diff = distSqr_ -
w2.distSqr();
104 if ((
diff < SMALL) || ((distSqr_ > SMALL) && (
diff/distSqr_ < tol)))
112 distSqr_ =
w2.distSqr();
113 origin_ =
w2.origin();
145 origin_(wpt.origin()),
146 distSqr_(wpt.distSqr())
164 template<
class TrackingData>
171 template<
class TrackingData>
185 template<
class TrackingData>
204 return update(eMid, faceInfo, tol, td);
208 template<
class TrackingData>
214 const bool sameOrientation,
219 return update(edgeInfo, tol, td);
223 template<
class TrackingData>
235 return update(
patch.faceCentres()[facei], edgeInfo, tol, td);
239 template<
class TrackingData>
252 inline bool Foam::patchEdgeFaceInfo::operator==
257 return origin() == rhs.
origin();
261 inline bool Foam::patchEdgeFaceInfo::operator!=
266 return !(*
this == rhs);
An edge is a list of two point labels. The functionality it provides supports the discretisation on a...
patchEdgeFaceInfo()
Construct null.
dimensionSet transform(const dimensionSet &ds)
Return the argument; transformations do not change the dimensions.
Mesh consisting of general polyhedral cells.
dimensioned< typename typeOfMag< Type >::type > magSqr(const dimensioned< Type > &dt)
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.
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.
tmp< faMatrix< Type > > operator==(const faMatrix< Type > &, const faMatrix< Type > &)
void transform(const polyMesh &mesh, const primitivePatch &patch, const tensor &rotTensor, const scalar tol, TrackingData &td)
Apply rotation matrix.
label max(const labelHashSet &set, label maxValue=labelMin)
Find the max value in labelHashSet, optionally limited by second argument.
dimensionedSymmTensor sqr(const dimensionedVector &dv)
static const Vector< scalar > max
const std::string patch
OpenFOAM patch number as a std::string.
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.
const dimensionedScalar e
Elementary charge.
bool equal(const patchEdgeFaceInfo &, TrackingData &td) const
Same (like operator==)
vector point
Point is a vector.
A list of faces which address into the list of points.
const point & origin() const