33 template<
class Derived>
34 template<
class TrackingData>
47 const scalar
diff = distSqr() - dist2;
55 if ((diff < small) || ((distSqr() > small) && (diff/distSqr() < tol)))
72 template<
class Derived>
80 template<
class Derived>
92 template<
class Derived>
108 template<
class Derived>
115 template<
class Derived>
122 template<
class Derived>
129 template<
class Derived>
136 template<
class Derived>
137 template<
class TrackingData>
140 return valid(td) ?
sqrt(distSqr_) : great;
144 template<
class Derived>
145 template<
class TrackingData>
148 return distSqr_ > -small;
152 template<
class Derived>
153 template<
class TrackingData>
170 if ((distSqr() > small) && ((diff/distSqr()) < tol))
182 template<
class Derived>
183 template<
class TrackingData>
187 const label patchFacei,
197 template<
class Derived>
198 template<
class TrackingData>
202 const label thisCelli,
203 const label neighbourFacei,
210 static_cast<Derived&
>(*this).
update 220 template<
class Derived>
221 template<
class TrackingData>
225 const label thisFacei,
226 const label neighbourCelli,
233 static_cast<Derived&
>(*this).
update 243 template<
class Derived>
244 template<
class TrackingData>
248 const label thisFacei,
255 static_cast<Derived&
>(*this).
update 265 template<
class Derived>
266 template<
class TrackingData>
279 template<
class Derived>
280 inline bool Foam::WallPointBase<Derived>::operator==
285 return origin() == rhs.
origin();
289 template<
class Derived>
290 inline bool Foam::WallPointBase<Derived>::operator!=
295 return !(*
this == rhs);
301 template<
class Derived>
302 Foam::Ostream& Foam::operator<<(Ostream& os, const WallPointBase<Derived>& w)
308 template<
class Derived>
scalar diff(const triad &A, const triad &B)
Return a quantity of the difference between two triads.
layerAndWeight max(const layerAndWeight &a, const layerAndWeight &b)
A face is a list of labels corresponding to mesh vertices.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)...
dimensionedScalar sqrt(const dimensionedScalar &ds)
scalar dist(TrackingData &td) const
tmp< fvMatrix< Type > > operator==(const fvMatrix< Type > &, const fvMatrix< Type > &)
bool equal(const WallPointBase< Derived > &, TrackingData &td) const
Same (like operator==)
Istream & operator>>(Istream &, directionInfo &)
bool sameGeometry(const polyMesh &, const WallPointBase< Derived > &, const scalar, TrackingData &td) const
Check for identical geometrical data. Used for cyclics checking.
const point & origin() const
bool valid(TrackingData &td) const
Check whether origin has been changed at all or.
const vectorField & cellCentres() const
WallPointBase()
Construct null.
void transform(const polyPatch &patch, const label patchFacei, const transformer &transform, TrackingData &td)
Transform across an interface.
dimensioned< scalar > magSqr(const dimensioned< Type > &)
An Ostream is an abstract base class for all output systems (streams, files, token lists...
bool update(const point &, const WallPointBase< Derived > &w2, const scalar tol, TrackingData &td)
Evaluate distance to point. Update distSqr, origin from whomever.
const vectorField & faceCentres() const
bool update(const point &, const FvWallInfoDataBase< WallInfo, Type, Derived > &w2, const scalar tol, TrackingData &td)
Evaluate distance to point. Update distSqr, origin from whomever.
dimensioned< scalar > mag(const dimensioned< Type > &)
Mesh consisting of general polyhedral cells.
A patch is a list of labels that address the faces in the global face list.
bool updateFace(const polyMesh &, const label thisFacei, const label neighbourCelli, const WallPointBase< Derived > &neighbourInfo, const scalar tol, TrackingData &td)
Influence of neighbouring cell.
bool updateCell(const polyMesh &, const label thisCelli, const label neighbourFacei, const WallPointBase< Derived > &neighbourInfo, const scalar tol, TrackingData &td)
Influence of neighbouring face.