32 template<
class Derived>
33 template<
class TrackingData>
52 scalar
diff = distSqr() - dist2;
60 if ((diff < small) || ((distSqr() > small) && (diff/distSqr() < tol)))
77 template<
class Derived>
85 template<
class Derived>
98 template<
class Derived>
107 points_(f.
points(points)),
114 template<
class Derived>
121 template<
class Derived>
128 template<
class Derived>
135 template<
class Derived>
142 template<
class Derived>
143 template<
class TrackingData>
146 return valid(td) ?
sqrt(distSqr_) : great;
150 template<
class Derived>
151 template<
class TrackingData>
154 return distSqr_ > -small;
158 template<
class Derived>
159 template<
class TrackingData>
176 if ((distSqr() > small) && ((diff/distSqr()) < tol))
188 template<
class Derived>
189 template<
class TrackingData>
193 const label patchFacei,
202 template<
class Derived>
203 template<
class TrackingData>
207 const label thisCelli,
208 const label neighbourFacei,
215 static_cast<Derived&
>(*this).
update 225 template<
class Derived>
226 template<
class TrackingData>
230 const label thisFacei,
231 const label neighbourCelli,
238 static_cast<Derived&
>(*this).
update 248 template<
class Derived>
249 template<
class TrackingData>
253 const label thisFacei,
260 static_cast<Derived&
>(*this).
update 270 template<
class Derived>
271 template<
class TrackingData>
284 template<
class Derived>
285 inline bool Foam::WallFaceBase<Derived>::operator==
294 template<
class Derived>
295 inline bool Foam::WallFaceBase<Derived>::operator!=
300 return !(*
this == rhs);
306 template<
class Derived>
307 Foam::Ostream& Foam::operator<<(Ostream& os, const WallFaceBase<Derived>& w)
313 template<
class Derived>
const pointField & points() const
WallFaceBase()
Construct null.
scalar diff(const triad &A, const triad &B)
Return a quantity of the difference between two triads.
bool equal(const WallFaceBase< Derived > &, TrackingData &td) const
Test equality.
A face is a list of labels corresponding to mesh vertices.
dimensionedSymmTensor sqr(const dimensionedVector &dv)
An Istream is an abstract base class for all input systems (streams, files, token lists etc)...
dimensionedScalar sqrt(const dimensionedScalar &ds)
labelList identity(const label len)
Create identity map (map[i] == i) of given length.
scalar distance(const vector &p1, const vector &p2)
bool sameGeometry(const polyMesh &, const WallFaceBase< Derived > &, const scalar, TrackingData &td) const
Check for identical geometrical data. Used for checking.
void transform(const polyPatch &patch, const label patchFacei, const transformer &transform, TrackingData &td)
Transform across an interface.
tmp< fvMatrix< Type > > operator==(const fvMatrix< Type > &, const fvMatrix< Type > &)
Istream & operator>>(Istream &, directionInfo &)
pointField points(const pointField &) const
Return the points corresponding to this face.
const vectorField & cellCentres() const
scalar dist(TrackingData &td) const
An Ostream is an abstract base class for all output systems (streams, files, token lists...
bool valid(TrackingData &td) const
Check whether the WallFaceBase has been changed at all or still.
const vectorField & faceCentres() const
pointHit nearestPoint(const point &p, const pointField &) const
Return nearest point to face.
bool updateFace(const polyMesh &, const label thisFacei, const label neighbourCelli, const WallFaceBase< Derived > &neighbourInfo, const scalar tol, TrackingData &td)
Influence of neighbouring cell.
bool update(const point &, const FvWallInfoDataBase< WallInfo, Type, Derived > &w2, const scalar tol, TrackingData &td)
Evaluate distance to point. Update distSqr, origin from whomever.
bool updateCell(const polyMesh &, const label thisCelli, const label neighbourFacei, const WallFaceBase< Derived > &neighbourInfo, const scalar tol, TrackingData &td)
Influence of neighbouring face.
dimensioned< scalar > mag(const dimensioned< Type > &)
Mesh consisting of general polyhedral cells.
bool update(const point &pt, const WallFaceBase< Derived > &w2, const scalar tol, TrackingData &td)
...
A patch is a list of labels that address the faces in the global face list.