patchFaceOrientation Class Reference

Transport of orientation for use in PatchEdgeFaceWave. More...

Public Member Functions

 patchFaceOrientation ()
 Construct null. More...
 
 patchFaceOrientation (const label)
 Construct from components. More...
 
label flipStatus () const
 Orientation. More...
 
void flip ()
 Reverse orientation. More...
 
template<class TrackingData >
bool valid (TrackingData &td) const
 Check whether origin has been changed at all or. More...
 
template<class TrackingData >
void transform (const polyMesh &mesh, const indirectPrimitivePatch &patch, const tensor &rotTensor, const scalar tol, TrackingData &td)
 Apply rotation matrix. More...
 
template<class 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. More...
 
template<class TrackingData >
bool updateEdge (const polyMesh &mesh, const indirectPrimitivePatch &patch, const patchFaceOrientation &edgeInfo, const bool sameOrientation, const scalar tol, TrackingData &td)
 New information for edge (from e.g. coupled edge) More...
 
template<class TrackingData >
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. More...
 
template<class TrackingData >
bool equal (const patchFaceOrientation &, TrackingData &) const
 Same (like operator==) More...
 
bool operator== (const patchFaceOrientation &) const
 
bool operator!= (const patchFaceOrientation &) const
 

Friends

Ostreamoperator<< (Ostream &, const patchFaceOrientation &)
 
Istreamoperator>> (Istream &, patchFaceOrientation &)
 

Detailed Description

Transport of orientation for use in PatchEdgeFaceWave.

Source files

Definition at line 62 of file patchFaceOrientation.H.

Constructor & Destructor Documentation

◆ patchFaceOrientation() [1/2]

Construct null.

Definition at line 32 of file patchFaceOrientationI.H.

◆ patchFaceOrientation() [2/2]

patchFaceOrientation ( const label  flipStatus)
inline

Construct from components.

Definition at line 39 of file patchFaceOrientationI.H.

Member Function Documentation

◆ flipStatus()

Foam::label flipStatus ( ) const
inline

Orientation.

Definition at line 49 of file patchFaceOrientationI.H.

Referenced by patchFaceOrientation::operator==().

Here is the caller graph for this function:

◆ flip()

void flip ( )
inline

Reverse orientation.

Definition at line 55 of file patchFaceOrientationI.H.

References orientedSurface::FLIP, and orientedSurface::NOFLIP.

Referenced by meshRefinement::mergeBaffles(), patchFaceOrientation::updateEdge(), and patchFaceOrientation::updateFace().

Here is the caller graph for this function:

◆ valid()

bool valid ( TrackingData &  td) const
inline

Check whether origin has been changed at all or.

still contains original (invalid) value.

Definition at line 69 of file patchFaceOrientationI.H.

References patchFaceOrientation::transform(), and orientedSurface::UNVISITED.

Referenced by patchFaceOrientation::updateEdge(), and patchFaceOrientation::updateFace().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ transform()

void transform ( const polyMesh mesh,
const indirectPrimitivePatch patch,
const tensor rotTensor,
const scalar  tol,
TrackingData &  td 
)
inline

Apply rotation matrix.

Definition at line 77 of file patchFaceOrientationI.H.

References patchFaceOrientation::updateEdge().

Referenced by patchFaceOrientation::valid().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ updateEdge() [1/2]

bool updateEdge ( const polyMesh mesh,
const indirectPrimitivePatch patch,
const label  edgeI,
const label  facei,
const patchFaceOrientation faceInfo,
const scalar  tol,
TrackingData &  td 
)
inline

Influence of face on edge.

Definition at line 89 of file patchFaceOrientationI.H.

References Foam::e, face::edgeDirection(), PrimitivePatch< FaceList, PointField >::edges(), f(), patchFaceOrientation::flip(), PrimitivePatch< FaceList, PointField >::localFaces(), and patchFaceOrientation::valid().

Referenced by meshRefinement::mergeBaffles(), and patchFaceOrientation::transform().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ updateEdge() [2/2]

bool updateEdge ( const polyMesh mesh,
const indirectPrimitivePatch patch,
const patchFaceOrientation edgeInfo,
const bool  sameOrientation,
const scalar  tol,
TrackingData &  td 
)
inline

New information for edge (from e.g. coupled edge)

Definition at line 127 of file patchFaceOrientationI.H.

References patchFaceOrientation::flip(), patchFaceOrientation::updateFace(), and patchFaceOrientation::valid().

Here is the call graph for this function:

◆ updateFace()

bool updateFace ( const polyMesh mesh,
const indirectPrimitivePatch patch,
const label  facei,
const label  edgeI,
const patchFaceOrientation edgeInfo,
const scalar  tol,
TrackingData &  td 
)
inline

Influence of edge on face.

Definition at line 156 of file patchFaceOrientationI.H.

References Foam::e, face::edgeDirection(), PrimitivePatch< FaceList, PointField >::edges(), patchFaceOrientation::equal(), f(), patchFaceOrientation::flip(), PrimitivePatch< FaceList, PointField >::localFaces(), and patchFaceOrientation::valid().

Referenced by patchFaceOrientation::updateEdge().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ equal()

bool equal ( const patchFaceOrientation rhs,
TrackingData &  td 
) const
inline

Same (like operator==)

Definition at line 198 of file patchFaceOrientationI.H.

References patchFaceOrientation::operator==().

Referenced by patchFaceOrientation::updateFace().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ operator==()

bool operator== ( const patchFaceOrientation rhs) const
inline

Definition at line 210 of file patchFaceOrientationI.H.

References patchFaceOrientation::flipStatus().

Referenced by patchFaceOrientation::equal().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ operator!=()

bool operator!= ( const patchFaceOrientation rhs) const
inline

Definition at line 219 of file patchFaceOrientationI.H.

Friends And Related Function Documentation

◆ operator<<

Ostream& operator<< ( Ostream ,
const patchFaceOrientation  
)
friend

◆ operator>>

Istream& operator>> ( Istream ,
patchFaceOrientation  
)
friend

The documentation for this class was generated from the following files: