32 template<
class TrackingData>
33 inline bool Foam::pointEdgePoint::update
36 const pointEdgePoint& w2,
41 scalar dist2 =
magSqr(pt - w2.origin());
47 origin_ = w2.origin();
52 scalar diff = distSqr_ - dist2;
60 if ((diff < small) || ((distSqr_ > small) && (diff/distSqr_ < tol)))
69 origin_ = w2.origin();
77 template<
class TrackingData>
78 inline bool Foam::pointEdgePoint::update
88 distSqr_ = w2.distSqr();
89 origin_ = w2.origin();
94 scalar diff = distSqr_ - w2.distSqr();
102 if ((diff < small) || ((distSqr_ > small) && (diff/distSqr_ < tol)))
110 distSqr_ = w2.distSqr();
111 origin_ = w2.origin();
152 template<
class TrackingData>
160 template<
class TrackingData>
188 template<
class TrackingData>
192 const label patchFacei,
203 template<
class TrackingData>
214 return update(mesh.
points()[pointi], edgeInfo, tol, td);
219 template<
class TrackingData>
229 return update(mesh.
points()[pointi], newPointInfo, tol, td);
234 template<
class TrackingData>
242 return update(newPointInfo, tol, td);
247 template<
class TrackingData>
259 return update(e.
centre(mesh.
points()), pointInfo, tol, td);
263 template<
class TrackingData>
286 return !(*
this == rhs);
void transform(const polyPatch &patch, const label patchFacei, const transformer &transform, TrackingData &td)
Transform across an interface.
layerAndWeight max(const layerAndWeight &a, const layerAndWeight &b)
static const Vector< scalar > max
pointEdgePoint()
Construct null.
const point & origin() const
point centre(const pointField &) const
Return centre (centroid)
virtual const pointField & points() const
Return raw points.
bool updateEdge(const polyMesh &mesh, const label edgeI, const label pointi, const pointEdgePoint &pointInfo, const scalar tol, TrackingData &td)
Influence of point on edge.
bool updatePoint(const polyMesh &mesh, const label pointi, const label edgeI, const pointEdgePoint &edgeInfo, const scalar tol, TrackingData &td)
Influence of edge on point.
An edge is a list of two point labels. The functionality it provides supports the discretisation on a...
bool sameGeometry(const pointEdgePoint &, const scalar tol, TrackingData &td) const
Check for identical geometrical data. Used for cyclics checking.
dimensioned< scalar > magSqr(const dimensioned< Type > &)
const edgeList & edges() const
Return mesh edges. Uses calcEdges.
vector point
Point is a vector.
bool equal(const pointEdgePoint &, TrackingData &td) const
Same (like operator==)
dimensioned< scalar > mag(const dimensioned< Type > &)
bool operator!=(const pointEdgePoint &) const
const doubleScalar e
Elementary charge.
Mesh consisting of general polyhedral cells.
Holds information regarding nearest wall point. Used in PointEdgeWave. (so not standard FaceCellWave)...
bool valid(TrackingData &td) const
Check whether origin has been changed at all or.
A patch is a list of labels that address the faces in the global face list.
bool operator==(const pointEdgePoint &) const