Public Member Functions | Private Attributes | Friends
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
 

Private Attributes

label flipStatus_
 Flip status. More...
 

Friends

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

Detailed Description

Transport of orientation for use in PatchEdgeFaceWave.

Source files

Definition at line 53 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::consistentOrientation(), 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 orientedSurface::UNVISITED.

◆ 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.

◆ 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, PrimitivePatch< Face, FaceList, PointField, PointType >::edges(), f(), patchFaceOrientation::flip(), and PrimitivePatch< Face, FaceList, PointField, PointType >::localFaces().

Referenced by meshRefinement::consistentOrientation().

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().

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

◆ equal()

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

Same (like operator==)

Definition at line 198 of file patchFaceOrientationI.H.

References Foam::operator==().

Here is the call graph for this function:

◆ operator==()

bool operator== ( const patchFaceOrientation rhs) const
inline

Definition at line 210 of file patchFaceOrientationI.H.

References patchFaceOrientation::flipStatus().

Here is the call 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

Field Documentation

◆ flipStatus_

label flipStatus_
private

Flip status.

Definition at line 58 of file patchFaceOrientation.H.


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