31 inline bool Foam::pointEdgeDist::update
34 const pointEdgeDist&
w2,
39 const scalar dist2 =
magSqr(pt -
w2.origin());
45 origin_ =
w2.origin();
47 if (distSqr_ > td.maxDistSqr)
57 scalar
diff = distSqr_ - dist2;
65 if ((
diff < small) || ((distSqr_ > small) && (
diff/distSqr_ < tol)))
74 origin_ =
w2.origin();
76 if (distSqr_ > td.maxDistSqr)
131 const label patchFacei,
136 origin_ =
transform.transformPosition(origin_);
150 return update(td.
points[pointi], edgeInfo, tol, td);
163 return update(td.
points[pointi], newPointInfo, tol, td);
178 return update(
e.centre(td.
points), pointInfo, tol, td);
194 inline bool Foam::pointEdgeDist::operator==
200 return (origin() == rhs.origin()) && (distSqr() == rhs.distSqr());
204 inline bool Foam::pointEdgeDist::operator!=
210 return !(*
this == rhs);
An edge is a list of two point labels. The functionality it provides supports the discretisation on a...
Class used to pass data into container.
const pointField & points
Holds information regarding nearest wall point. Used in PointEdgeWave. (so not standard FaceCellWave)...
pointEdgeDist()
Construct null.
bool equal(const pointEdgeDist &, data &td) const
Equivalent to operator== with data.
bool updatePoint(const polyMesh &mesh, const label pointi, const label edgei, const pointEdgeDist &edgeinfo, const scalar tol, data &td)
Influence of edge on point.
void transform(const polyPatch &patch, const label patchFacei, const transformer &transform, data &td)
Transform across an interface.
bool updateEdge(const polyMesh &mesh, const label edgei, const label pointi, const pointEdgeDist &pointInfo, const scalar tol, data &td)
Influence of point on edge.
const point & origin() const
bool valid(data &td) const
Check whether origin has been changed at all or.
Mesh consisting of general polyhedral cells.
A patch is a list of labels that address the faces in the global face list.
const edgeList & edges() const
Return mesh edges. Uses calcEdges.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
tmp< fvMatrix< Type > > operator==(const fvMatrix< Type > &, const fvMatrix< Type > &)
vector point
Point is a vector.
scalar diff(const triad &A, const triad &B)
Return a quantity of the difference between two triads.
dimensionSet transform(const dimensionSet &)
layerAndWeight max(const layerAndWeight &a, const layerAndWeight &b)
dimensioned< scalar > magSqr(const dimensioned< Type > &)