Public Member Functions | Private Attributes | Friends
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 faceBasePtI, label facePtAI, label facePtBI, label tetPtI)
 Construct from components. More...
 
 tetIndices (label cellI, label faceI, label tetPtI, const polyMesh &mesh)
 Construct from cell, face, pt description of tet. More...
 
 ~tetIndices ()
 Destructor. More...
 
label cell () const
 Return the cell. More...
 
label face () const
 Return the face. More...
 
label faceBasePt () const
 Return the face base point. More...
 
label facePtA () const
 Return face point A. More...
 
label facePtB () const
 Return face point B. More...
 
label tetPt () const
 Return the characterising tetPtI. More...
 
tetPointRef tet (const polyMesh &mesh) const
 Return the geometry corresponding to this tet from the. More...
 
tetPointRef oldTet (const polyMesh &mesh) const
 Return the geometry corresponding to this tet from the. More...
 
triPointRef faceTri (const polyMesh &mesh) const
 Return the geometry corresponding to the tri on the. More...
 
triFace faceTriIs (const polyMesh &mesh) const
 Return the point indices corresponding to the tri on the mesh. More...
 
triPointRef oldFaceTri (const polyMesh &mesh) const
 Return the geometry corresponding to the tri on the. More...
 
labelcell ()
 Return non-const access to the cell. More...
 
labelface ()
 Return non-const access to the face. More...
 
labelfaceBasePt ()
 Return non-const access to the face base point. More...
 
labelfacePtA ()
 Return non-const access to face point A. More...
 
labelfacePtB ()
 Return non-const access to face point B. More...
 
labeltetPt ()
 Return non-const access to the characterising tetPtI. More...
 
bool operator== (const tetIndices &) const
 
bool operator!= (const tetIndices &) const
 

Private Attributes

label cellI_
 Cell that this is a decomposed tet of. More...
 
label faceI_
 Face that holds this decomposed tet. More...
 
label faceBasePtI_
 Base point on the face. More...
 
label facePtAI_
 Point on the face such that the right-hand circulation. More...
 
label facePtBI_
 Point on the face such that the right-hand circulation. More...
 
label tetPtI_
 Point on the face, *relative to the base point*, which. More...
 

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 73 of file tetIndices.H.

Constructor & Destructor Documentation

◆ tetIndices() [1/3]

Construct null.

Definition at line 30 of file tetIndices.C.

◆ tetIndices() [2/3]

tetIndices ( label  cellI,
label  faceI,
label  faceBasePtI,
label  facePtAI,
label  facePtBI,
label  tetPtI 
)

Construct from components.

Definition at line 42 of file tetIndices.C.

◆ tetIndices() [3/3]

tetIndices ( label  cellI,
label  faceI,
label  tetPtI,
const polyMesh mesh 
)

Construct from cell, face, pt description of tet.

Definition at line 61 of file tetIndices.C.

References f(), polyMesh::faceOwner(), polyMesh::faces(), mesh, pFaces, List::size(), and polyMesh::tetBasePtIs().

Here is the call graph for this function:

◆ ~tetIndices()

~tetIndices ( )

Destructor.

Definition at line 102 of file tetIndices.C.

Member Function Documentation

◆ cell() [1/2]

Foam::label & cell ( ) const
inline

◆ face() [1/2]

Foam::label & face ( ) const
inline

◆ faceBasePt() [1/2]

Foam::label & faceBasePt ( ) const
inline

◆ facePtA() [1/2]

Foam::label & facePtA ( ) const
inline

◆ facePtB() [1/2]

Foam::label & facePtB ( ) const
inline

◆ tetPt() [1/2]

Foam::label & tetPt ( ) const
inline

◆ tet()

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

◆ oldTet()

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

Return the geometry corresponding to this tet from the.

supplied mesh using the old positions

Definition at line 84 of file tetIndicesI.H.

References primitiveMesh::cells(), f(), polyMesh::faces(), mesh, polyMesh::oldPoints(), and pFaces.

Referenced by particle< Type >::movingTetLambda().

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.

mesh face for this tet from the supplied mesh. Normal of the tri points out of the cell.

Definition at line 109 of file tetIndicesI.H.

References f(), polyMesh::faces(), mesh, pFaces, and polyMesh::points().

Referenced by cellPointWeight::findTriangle(), particle< Type >::hitWallFaces(), solidParticle::hitWallPatch(), FreeStream< CloudType >::inflow(), KinematicCloud< CloudType >::patchData(), polyMesh::pointInCell(), wallBoundedStreamLine::track(), wallBoundedParticle::trackToEdge(), and particle< Type >::trackToFace().

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

◆ faceTriIs()

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

Return the point indices corresponding to the tri on the mesh.

face for this tet from the supplied mesh. Normal of the tri points out of the cell.

Definition at line 125 of file tetIndicesI.H.

References f(), polyMesh::faces(), mesh, pFaces, and triFace().

Here is the call graph for this function:

◆ oldFaceTri()

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

Return the geometry corresponding to the tri on the.

mesh face for this tet from the supplied mesh using the old position

Definition at line 140 of file tetIndicesI.H.

References f(), polyMesh::faces(), mesh, polyMesh::oldPoints(), and pFaces.

Referenced by particle< Type >::hitWallFaces(), and KinematicCloud< CloudType >::patchData().

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

◆ cell() [2/2]

label& cell ( )
inline

Return non-const access to the cell.

◆ face() [2/2]

label& face ( )
inline

Return non-const access to the face.

◆ faceBasePt() [2/2]

label& faceBasePt ( )
inline

Return non-const access to the face base point.

◆ facePtA() [2/2]

label& facePtA ( )
inline

Return non-const access to face point A.

◆ facePtB() [2/2]

label& facePtB ( )
inline

Return non-const access to face point B.

◆ tetPt() [2/2]

label& tetPt ( )
inline

Return non-const access to the characterising tetPtI.

◆ operator==()

bool operator== ( const tetIndices rhs) const
inline

Definition at line 194 of file tetIndicesI.H.

References tetIndices::cell(), tetIndices::face(), tetIndices::faceBasePt(), tetIndices::facePtA(), tetIndices::facePtB(), and tetIndices::tetPt().

Here is the call graph for this function:

◆ operator!=()

bool operator!= ( const tetIndices rhs) const
inline

Definition at line 208 of file tetIndicesI.H.

Friends And Related Function Documentation

◆ operator>>

Istream& operator>> ( Istream ,
tetIndices  
)
friend

◆ operator<<

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

Field Documentation

◆ cellI_

label cellI_
private

Cell that this is a decomposed tet of.

Definition at line 78 of file tetIndices.H.

Referenced by tetIndices::cell().

◆ faceI_

label faceI_
private

Face that holds this decomposed tet.

Definition at line 81 of file tetIndices.H.

◆ faceBasePtI_

label faceBasePtI_
private

Base point on the face.

Definition at line 84 of file tetIndices.H.

◆ facePtAI_

label facePtAI_
private

Point on the face such that the right-hand circulation.

{faceBasePtI_, facePtAI_, facePtBI_} forms a triangle that points out of the tet

Definition at line 89 of file tetIndices.H.

◆ facePtBI_

label facePtBI_
private

Point on the face such that the right-hand circulation.

{faceBasePtI_, facePtAI_, facePtBI_} forms a triangle that points out of the tet

Definition at line 94 of file tetIndices.H.

◆ tetPtI_

label tetPtI_
private

Point on the face, *relative to the base point*, which.

characterises this tet on the face.

Definition at line 98 of file tetIndices.H.


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