32 template<
class TrackingData>
33 inline bool Foam::sweepData::update
36 const point& position,
51 if (svf.value() >
value())
62 scalar dist2 =
magSqr(position - svf.origin());
96 template<
class TrackingData>
99 return value_ > -SMALL;
103 template<
class TrackingData>
116 template<
class TrackingData>
122 const point& faceCentre,
126 origin_ -= faceCentre;
130 template<
class TrackingData>
142 template<
class TrackingData>
148 const point& faceCentre,
153 origin_ += faceCentre;
157 template<
class TrackingData>
161 const label thisCelli,
172 template<
class TrackingData>
176 const label thisFacei,
188 template<
class TrackingData>
192 const label thisFacei,
202 template<
class TrackingData>
215 inline bool Foam::sweepData::operator==
220 return origin_ == rhs.origin_;
224 inline bool Foam::sweepData::operator!=
229 return !(*
this == rhs);
bool valid(TrackingData &td) const
Changed or contains original (invalid) value.
bool updateCell(const polyMesh &, const label thisCelli, const label neighbourFacei, const sweepData &svf, const scalar tol, TrackingData &td)
Influence of neighbouring face.
bool sameGeometry(const polyMesh &, const sweepData &, const scalar, TrackingData &td) const
Check for identical geometrical data (eg, cyclics checking)
scalar value() const
Return value.
wallPoints::trackData td(isBlockedFace, regionToBlockSize)
label max(const labelHashSet &set, label maxValue=labelMin)
Find the max value in labelHashSet, optionally limited by second argument.
void leaveDomain(const polyMesh &, const polyPatch &, const label patchFacei, const point &faceCentre, TrackingData &td)
Convert any absolute coordinates into relative to.
sweepData()
Default construct.
Helper class used by fvc::sweep function.
void enterDomain(const polyMesh &, const polyPatch &, const label patchFacei, const point &faceCentre, TrackingData &td)
Reverse of leaveDomain.
sweepData & operator=(const sweepData &)=default
Copy assignment.
const point & origin() const
Return origin.
bool equal(const sweepData &, TrackingData &td) const
Test for equality, with TrackingData.
const vectorField & cellCentres() const
bool updateFace(const polyMesh &, const label thisFacei, const label neighbourCelli, const sweepData &svf, const scalar tol, TrackingData &td)
Influence of neighbouring cell.
A Vector of values with scalar precision, where scalar is float/double depending on the compilation f...
void transform(const polyMesh &, const tensor &, TrackingData &td)
Apply rotation matrix to any coordinates.
const vectorField & faceCentres() const
vector point
Point is a vector.
Mesh consisting of general polyhedral cells.
tmp< faMatrix< Type > > operator==(const faMatrix< Type > &, const faMatrix< Type > &)
A patch is a list of labels that address the faces in the global face list.
dimensionSet transform(const dimensionSet &ds)
Return the argument; transformations do not change the dimensions.
Tensor of scalars, i.e. Tensor<scalar>.
dimensioned< typename typeOfMag< Type >::type > magSqr(const dimensioned< Type > &dt)