Public Member Functions | Friends | List of all members
tetIndices Class Reference

Storage and named access for the indices of a tet which is part of the decomposition of a cell. More...

Public Member Functions

 tetIndices ()
 Construct null. More...
 
 tetIndices (label celli, label facei, label tetPtI)
 Construct from components. More...
 
 ~tetIndices ()
 Destructor. More...
 
label cell () const
 Return the cell. More...
 
labelcell ()
 Return non-const access to the cell. More...
 
label face () const
 Return the face. More...
 
labelface ()
 Return non-const access to the face. More...
 
label tetPt () const
 Return the characterising tetPtI. More...
 
labeltetPt ()
 Return non-const access to the characterising tetPtI. More...
 
triFace faceTriIs (const polyMesh &mesh) const
 Return the indices corresponding to the tri on the face for. More...
 
tetPointRef tet (const polyMesh &mesh) const
 Return the geometry corresponding to this tet. More...
 
triPointRef faceTri (const polyMesh &mesh) const
 Return the geometry corresponding to the tri on the face for. More...
 
triPointRef oldFaceTri (const polyMesh &mesh) const
 Return the geometry corresponding to the tri on the face for. More...
 
bool operator== (const tetIndices &) const
 
bool operator!= (const tetIndices &) const
 

Friends

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

Detailed Description

Storage and named access for the indices of a tet which is part of the decomposition of a cell.

Tets are designated by

Source files

Definition at line 81 of file tetIndices.H.

Constructor & Destructor Documentation

◆ tetIndices() [1/2]

Construct null.

Definition at line 37 of file tetIndices.C.

◆ tetIndices() [2/2]

tetIndices ( label  celli,
label  facei,
label  tetPtI 
)

Construct from components.

Definition at line 46 of file tetIndices.C.

◆ ~tetIndices()

~tetIndices ( )

Destructor.

Definition at line 60 of file tetIndices.C.

Member Function Documentation

◆ cell() [1/2]

Foam::label cell ( ) const
inline

◆ cell() [2/2]

Foam::label & cell ( )
inline

Return non-const access to the cell.

Definition at line 34 of file tetIndicesI.H.

◆ face() [1/2]

Foam::label face ( ) const
inline

Return the face.

Definition at line 40 of file tetIndicesI.H.

Referenced by tetIndices::faceTriIs(), polyMesh::findTetFacePt(), interpolationCellPoint< Foam::Vector >::interpolate(), Foam::operator<<(), tetIndices::operator==(), and Foam::operator>>().

Here is the caller graph for this function:

◆ face() [2/2]

Foam::label & face ( )
inline

Return non-const access to the face.

Definition at line 46 of file tetIndicesI.H.

◆ tetPt() [1/2]

Foam::label tetPt ( ) const
inline

Return the characterising tetPtI.

Definition at line 52 of file tetIndicesI.H.

Referenced by tetIndices::faceTriIs(), polyMesh::findTetFacePt(), Foam::operator<<(), tetIndices::operator==(), and Foam::operator>>().

Here is the caller graph for this function:

◆ tetPt() [2/2]

Foam::label & tetPt ( )
inline

Return non-const access to the characterising tetPtI.

Definition at line 58 of file tetIndicesI.H.

◆ faceTriIs()

Foam::triFace faceTriIs ( const polyMesh mesh) const
inline

◆ tet()

Foam::tetPointRef tet ( const polyMesh mesh) const
inline

Return the geometry corresponding to this tet.

Definition at line 100 of file tetIndicesI.H.

References tetIndices::cell(), primitiveMesh::cellCentres(), tetIndices::faceTriIs(), and polyMesh::points().

Referenced by Dual< Type >::Dual(), polyMeshTetDecomposition::findTet(), cellPointWeight::findTetrahedron(), interpolation< Foam::Vector >::interpolate(), Moment< Type >::Moment(), and AveragingMethod< Foam::Vector >::write().

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

◆ faceTri()

Foam::triPointRef faceTri ( const polyMesh mesh) const
inline

Return the geometry corresponding to the tri on the face for.

this tet. The normal of the tri points out of the cell.

Definition at line 115 of file tetIndicesI.H.

References tetIndices::faceTriIs(), tetIndices::oldFaceTri(), and polyMesh::points().

Referenced by cellPointWeight::findTriangle(), FreeStream< CloudType >::inflow(), particle< Type >::normal(), and polyMesh::pointInCell().

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

◆ oldFaceTri()

Foam::triPointRef oldFaceTri ( const polyMesh mesh) const
inline

Return the geometry corresponding to the tri on the face for.

this tet using the old positions.

Definition at line 130 of file tetIndicesI.H.

References tetIndices::faceTriIs(), and polyMesh::oldPoints().

Referenced by tetIndices::faceTri().

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

◆ operator==()

bool operator== ( const tetIndices rhs) const
inline

Definition at line 148 of file tetIndicesI.H.

References tetIndices::cell(), tetIndices::face(), and tetIndices::tetPt().

Here is the call graph for this function:

◆ operator!=()

bool operator!= ( const tetIndices rhs) const
inline

Definition at line 157 of file tetIndicesI.H.

Friends And Related Function Documentation

◆ operator>>

Istream& operator>> ( Istream ,
tetIndices  
)
friend

◆ operator<<

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

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