34 template<
class TrackingData>
35 inline bool Foam::wallNormalInfo::update
37 const wallNormalInfo&
w2,
55 normal_ =
w2.normal();
78 template<
class TrackingData>
86 template<
class TrackingData>
100 template<
class TrackingData>
105 const label patchFacei,
106 const point& faceCentre,
113 template<
class TrackingData>
124 template<
class TrackingData>
129 const label patchFacei,
130 const point& faceCentre,
137 template<
class TrackingData>
141 const label thisCelli,
142 const label neighbourFacei,
153 template<
class TrackingData>
157 const label thisFacei,
158 const label neighbourCelli,
169 template<
class TrackingData>
173 const label thisFacei,
179 return update(neighbourWallInfo, td);
183 template<
class TrackingData>
196 inline bool Foam::wallNormalInfo::operator==
201 return normal_ == rhs.normal_;
205 inline bool Foam::wallNormalInfo::operator!=
210 return !(*
this == rhs);
Holds information regarding nearest wall point. Used in wall refinement.
error FatalError
Error stream (stdout output on all processes), with additional 'FOAM FATAL ERROR' header text and sta...
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
label max(const labelHashSet &set, label maxValue=labelMin)
Find the max value in labelHashSet, optionally limited by second argument.
bool valid(TrackingData &td) const
Changed or contains original (invalid) value.
bool updateFace(const polyMesh &, const label thisFacei, const label neighbourCelli, const wallNormalInfo &neighbourInfo, const scalar tol, TrackingData &td)
Influence of neighbouring cell.
void enterDomain(const polyMesh &, const polyPatch &, const label patchFacei, const point &faceCentre, TrackingData &td)
Reverse of leaveDomain.
errorManip< error > abort(error &err)
A Vector of values with scalar precision, where scalar is float/double depending on the compilation f...
bool equal(const wallNormalInfo &, TrackingData &td) const
Test for equality, with TrackingData.
void leaveDomain(const polyMesh &, const polyPatch &, const label patchFacei, const point &faceCentre, TrackingData &td)
Convert any absolute coordinates into relative to (patch)face.
wallNormalInfo()
Default construct.
const std::string patch
OpenFOAM patch number as a std::string.
Mesh consisting of general polyhedral cells.
void transform(const polyMesh &, const tensor &, TrackingData &td)
Apply rotation matrix to any coordinates.
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.
Tensor of scalars, i.e. Tensor<scalar>.
bool updateCell(const polyMesh &, const label thisCelli, const label neighbourFacei, const wallNormalInfo &neighbourInfo, const scalar tol, TrackingData &td)
Influence of neighbouring face.
bool sameGeometry(const polyMesh &, const wallNormalInfo &, const scalar, TrackingData &td) const
Check for identical geometrical data (eg, cyclics checking)