43 const label flipStatus
46 flipStatus_(flipStatus)
65 template<
class TrackingData>
72 template<
class TrackingData>
84 template<
class TrackingData>
101 const face&
f =
patch.localFaces()[facei];
102 const edge&
e =
patch.edges()[edgeI];
108 patchFaceOrientation consistentInfo(faceInfo);
111 if (
f.edgeDirection(
e) < 0)
114 consistentInfo.flip();
117 operator=(consistentInfo);
122 template<
class TrackingData>
128 const bool sameOrientation,
139 patchFaceOrientation consistentInfo(edgeInfo);
141 if (!sameOrientation)
143 consistentInfo.flip();
146 operator=(consistentInfo);
151 template<
class TrackingData>
169 const face&
f =
patch.localFaces()[facei];
170 const edge&
e =
patch.edges()[edgeI];
181 patchFaceOrientation consistentInfo(edgeInfo);
183 if (
f.edgeDirection(
e) > 0)
185 consistentInfo.flip();
188 operator=(consistentInfo);
193 template<
class TrackingData>
206 inline bool Foam::patchFaceOrientation::operator==
211 return flipStatus_ == rhs.flipStatus_;
215 inline bool Foam::patchFaceOrientation::operator!=
220 return !(*
this == rhs);
patchFaceOrientation()
Default construct.
bool equal(const patchFaceOrientation &, TrackingData &) const
Test for equality, with TrackingData.
bool updateEdge(const polyMesh &mesh, const indirectPrimitivePatch &patch, const label edgeI, const label facei, const patchFaceOrientation &faceInfo, const scalar tol, TrackingData &td)
Influence of face on edge.
bool valid(TrackingData &td) const
Changed or contains original (invalid) value.
Given point flip all faces such that normals point in same direction.
Transport of orientation for use in PatchEdgeFaceWave.
A list of faces which address into the list of points.
const dimensionedScalar e
Elementary charge.
bool updateFace(const polyMesh &mesh, const indirectPrimitivePatch &patch, const label facei, const label edgeI, const patchFaceOrientation &edgeInfo, const scalar tol, TrackingData &td)
Influence of edge on face.
void flip()
Reverse the orientation.
void transform(const polyMesh &mesh, const indirectPrimitivePatch &patch, const tensor &rotTensor, const scalar tol, TrackingData &td)
Apply rotation matrix.
const std::string patch
OpenFOAM patch number as a std::string.
Mesh consisting of general polyhedral cells.
tmp< faMatrix< Type > > operator==(const faMatrix< Type > &, const faMatrix< Type > &)
Tensor of scalars, i.e. Tensor<scalar>.