32 template<
class TrackingData>
41 const scalar dist2 =
magSqr(pt -
w2.origin());
127 template<
class TrackingData>
130 return valid(td) ?
sqrt(distSqr_) : great;
134 template<
class TrackingData>
137 return distSqr_ > -small;
141 template<
class TrackingData>
149 const scalar
diff =
mag(distSqr() -
w2.distSqr());
153 || ((distSqr() > small) && (
diff/distSqr() < tol));
157 template<
class TrackingData>
165 origin_ =
transform.transformPosition(origin_);
169 template<
class TrackingData>
182 inline bool Foam::wallPoint::operator==
187 return origin() == rhs.origin();
191 inline bool Foam::wallPoint::operator!=
196 return !(*
this == rhs);
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
A face is a list of labels corresponding to mesh vertices.
Holds information regarding nearest wall point. Used in wall distance calculation.
scalar dist(TrackingData &td) const
void transform(const transformer &transform, TrackingData &td)
Transform across an interface.
bool equal(const wallPoint &, TrackingData &td) const
Same (like operator==)
wallPoint()
Construct null.
bool valid(TrackingData &td) const
Check whether origin has been changed at all or.
bool sameGeometry(const wallPoint &, const scalar, TrackingData &td) const
Check for identical geometrical data. Used for cyclics checking.
const point & origin() const
bool update(const point &, const wallPoint &w2, const scalar tol, TrackingData &td)
Evaluate distance to point. Update distSqr, origin from whomever.
bool valid(const PtrList< ModelType > &l)
tmp< fvMatrix< Type > > operator==(const fvMatrix< Type > &, const fvMatrix< Type > &)
dimensionedScalar sqrt(const dimensionedScalar &ds)
Istream & operator>>(Istream &, pistonPointEdgeData &)
scalar diff(const triad &A, const triad &B)
Return a quantity of the difference between two triads.
dimensionSet transform(const dimensionSet &)
dimensioned< scalar > mag(const dimensioned< Type > &)
layerAndWeight max(const layerAndWeight &a, const layerAndWeight &b)
Ostream & operator<<(Ostream &os, const fvConstraints &constraints)
dimensioned< scalar > magSqr(const dimensioned< Type > &)