Go to the documentation of this file.
34 template<
class TrackingData>
35 inline bool Foam::transportData::update
38 const transportData&
w2,
43 const scalar dist2 =
magSqr(pt -
w2.origin());
47 const scalar
diff = distSqr() - dist2;
55 if ((
diff < SMALL) || ((distSqr() > SMALL) && (
diff/distSqr() < tol)))
66 origin() =
w2.origin();
69 if (distSqr() >
sqr(0.25*
data()))
101 template<
class TrackingData>
112 if (td.surfaceIndex_[faceI] != -1)
131 template<
class TrackingData>
135 const label thisFaceI,
136 const label neighbourCellI,
142 if (td.surfaceIndex_[thisFaceI] != -1)
157 template<
class TrackingData>
161 const label thisFaceI,
167 if (td.surfaceIndex_[thisFaceI] != -1)
Holds information (coordinate and distance). Walks out 0.5*distance.
bool updateCell(const polyMesh &mesh, const label thisCellI, const label neighbourFaceI, const transportData &neighbourWallInfo, const scalar tol, TrackingData &td)
bool updateFace(const polyMesh &mesh, const label thisFaceI, const label neighbourCellI, const transportData &neighbourWallInfo, const scalar tol, TrackingData &td)
Mesh consisting of general polyhedral cells.
Field< vector > vectorField
Specialisation of Field<T> for vector.
dimensioned< typename typeOfMag< Type >::type > magSqr(const dimensioned< Type > &dt)
scalar diff(const triad &A, const triad &B)
Generic templated field type.
const Type & data() const
dimensionedSymmTensor sqr(const dimensionedVector &dv)
const vectorField & faceCentres() const
Holds information (coordinate and normal) regarding nearest wall point.
vector point
Point is a vector.