43 const label flipStatus
65template<
class TrackingData>
72template<
class TrackingData>
84template<
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);
122template<
class TrackingData>
128 const bool sameOrientation,
139 patchFaceOrientation consistentInfo(edgeInfo);
141 if (!sameOrientation)
143 consistentInfo.flip();
146 operator=(consistentInfo);
151template<
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);
193template<
class TrackingData>
206inline bool Foam::patchFaceOrientation::operator==
211 return flipStatus_ ==
rhs.flipStatus_;
215inline bool Foam::patchFaceOrientation::operator!=
220 return !(*
this ==
rhs);
An edge is a list of two vertex labels. This can correspond to a directed graph edge or an edge on a ...
A face is a list of labels corresponding to mesh vertices.
Given point flip all faces such that normals point in same direction.
Transport of orientation for use in PatchEdgeFaceWave.
void flip()
Reverse the orientation.
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.
patchFaceOrientation()
Default construct.
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.
label flipStatus() const
Orientation.
bool valid(TrackingData &td) const
Changed or contains original (invalid) value.
bool equal(const patchFaceOrientation &, TrackingData &) const
Test for equality, with TrackingData.
void transform(const polyMesh &mesh, const indirectPrimitivePatch &patch, const tensor &rotTensor, const scalar tol, TrackingData &td)
Apply rotation matrix.
Mesh consisting of general polyhedral cells.
wallPoints::trackData td(isBlockedFace, regionToBlockSize)
tmp< faMatrix< Type > > operator==(const faMatrix< Type > &, const faMatrix< Type > &)
PrimitivePatch< IndirectList< face >, const pointField & > indirectPrimitivePatch
A PrimitivePatch with an IndirectList for the faces, const reference for the point field.
void rhs(fvMatrix< typename Expr::value_type > &m, const Expr &expression)