tetDecomposer Class Reference

Decomposes polyMesh into tets or pyramids. More...

Collaboration diagram for tetDecomposer:
[legend]

Public Types

enum  decompositionType { FACE_CENTRE_TRIS , FACE_DIAG_TRIS , PYRAMID }
 

Public Member Functions

 ClassName ("tetDecomposer")
 Runtime type information. More...
 
 tetDecomposer (const polyMesh &)
 Construct from mesh. More...
 
const labelListcellToPoint () const
 From cell to tet point. More...
 
const labelListfaceToPoint () const
 From face to tet point (only for faceCentre) More...
 
const labelListListfaceOwnerCells () const
 Per face, per point (faceCentre) or triangle (faceDiag) More...
 
const labelListListfaceNeighbourCells () const
 Per face, per point (faceCentre) or triangle (faceDiag) More...
 
void setRefinement (const decompositionType decomposeType, const bitSet &decomposeCell, polyTopoChange &meshMod)
 Insert all changes into meshMod to convert the polyMesh into. More...
 
void updateMesh (const mapPolyMesh &)
 Force recalculation of locally stored data on topological change. More...
 

Static Public Attributes

static const Enum< decompositionTypedecompositionTypeNames
 

Detailed Description

Decomposes polyMesh into tets or pyramids.

Cells neighbouring decomposed cells are not decomposed themselves so will be polyhedral.

Source files

Definition at line 63 of file tetDecomposer.H.

Member Enumeration Documentation

◆ decompositionType

Enumerator
FACE_CENTRE_TRIS 
FACE_DIAG_TRIS 
PYRAMID 

Definition at line 69 of file tetDecomposer.H.

Constructor & Destructor Documentation

◆ tetDecomposer()

tetDecomposer ( const polyMesh mesh)

Construct from mesh.

Definition at line 181 of file tetDecomposer.C.

Member Function Documentation

◆ ClassName()

ClassName ( "tetDecomposer"  )

Runtime type information.

◆ cellToPoint()

const labelList & cellToPoint ( ) const
inline

From cell to tet point.

Definition at line 158 of file tetDecomposer.H.

◆ faceToPoint()

const labelList & faceToPoint ( ) const
inline

From face to tet point (only for faceCentre)

Definition at line 164 of file tetDecomposer.H.

◆ faceOwnerCells()

const labelListList & faceOwnerCells ( ) const
inline

Per face, per point (faceCentre) or triangle (faceDiag)

the added tet on the owner side. For non-face (pyramid) size 1.

Definition at line 173 of file tetDecomposer.H.

◆ faceNeighbourCells()

const labelListList & faceNeighbourCells ( ) const
inline

Per face, per point (faceCentre) or triangle (faceDiag)

the added tet on the neighbour side. For non-face (pyramid) size 1.

Definition at line 181 of file tetDecomposer.H.

◆ setRefinement()

void setRefinement ( const decompositionType  decomposeType,
const bitSet decomposeCell,
polyTopoChange meshMod 
)

◆ updateMesh()

void updateMesh ( const mapPolyMesh map)

Force recalculation of locally stored data on topological change.

Definition at line 852 of file tetDecomposer.C.

References forAll, Foam::inplaceRenumber(), mapPolyMesh::reverseCellMap(), and mapPolyMesh::reversePointMap().

Here is the call graph for this function:

Member Data Documentation

◆ decompositionTypeNames

const Foam::Enum< Foam::tetDecomposer::decompositionType > decompositionTypeNames
static

Definition at line 76 of file tetDecomposer.H.


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