patchFaceOrientation Class Reference

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

Public Member Functions

 patchFaceOrientation ()
 Default construct. More...
 
 patchFaceOrientation (const label)
 Construct from components. More...
 
label flipStatus () const
 Orientation. More...
 
void flip ()
 Reverse the orientation. More...
 
template<class TrackingData >
bool valid (TrackingData &td) const
 Changed or contains original (invalid) value. 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
 Test for equality, with TrackingData. More...
 
bool operator== (const patchFaceOrientation &) const
 Test for equality. More...
 
bool operator!= (const patchFaceOrientation &) const
 Test for equality. More...
 

Friends

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

Detailed Description

Transport of orientation for use in PatchEdgeFaceWave.

Source files

Definition at line 60 of file patchFaceOrientation.H.

Constructor & Destructor Documentation

◆ patchFaceOrientation() [1/2]

Default construct.

Definition at line 35 of file patchFaceOrientationI.H.

◆ patchFaceOrientation() [2/2]

patchFaceOrientation ( const label  flipStatus)
inline

Construct from components.

Definition at line 42 of file patchFaceOrientationI.H.

Member Function Documentation

◆ flipStatus()

label flipStatus ( ) const
inline

Orientation.

Definition at line 83 of file patchFaceOrientation.H.

◆ flip()

void flip ( )
inline

Reverse the orientation.

Definition at line 52 of file patchFaceOrientationI.H.

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

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

Here is the caller graph for this function:

◆ valid()

bool valid ( TrackingData &  td) const
inline

Changed or contains original (invalid) value.

Definition at line 66 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 74 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 86 of file patchFaceOrientationI.H.

References Foam::constant::electromagnetic::e, f(), patchFaceOrientation::flip(), and Foam::foamVersion::patch.

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

Influence of edge on face.

Definition at line 153 of file patchFaceOrientationI.H.

References Foam::constant::electromagnetic::e, f(), patchFaceOrientation::flip(), and Foam::foamVersion::patch.

Here is the call graph for this function:

◆ equal()

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

Test for equality, with TrackingData.

Definition at line 195 of file patchFaceOrientationI.H.

References Foam::operator==().

Here is the call graph for this function:

◆ operator==()

bool operator== ( const patchFaceOrientation rhs) const
inline

Test for equality.

Definition at line 207 of file patchFaceOrientationI.H.

◆ operator!=()

bool operator!= ( const patchFaceOrientation rhs) const
inline

Test for equality.

Definition at line 216 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: