Decomposes polyMesh into tets or pyramids. More...
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 labelList & | cellToPoint () const |
From cell to tet point. More... | |
const labelList & | faceToPoint () const |
From face to tet point (only for faceCentre) More... | |
const labelListList & | faceOwnerCells () const |
Per face, per point (faceCentre) or triangle (faceDiag) More... | |
const labelListList & | faceNeighbourCells () 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< decompositionType > | decompositionTypeNames |
Decomposes polyMesh into tets or pyramids.
Cells neighbouring decomposed cells are not decomposed themselves so will be polyhedral.
Definition at line 59 of file tetDecomposer.H.
enum decompositionType |
Enumerator | |
---|---|
FACE_CENTRE_TRIS | |
FACE_DIAG_TRIS | |
PYRAMID |
Definition at line 65 of file tetDecomposer.H.
tetDecomposer | ( | const polyMesh & | mesh | ) |
Construct from mesh.
Definition at line 197 of file tetDecomposer.C.
ClassName | ( | "tetDecomposer" | ) |
Runtime type information.
|
inline |
From cell to tet point.
Definition at line 174 of file tetDecomposer.H.
|
inline |
From face to tet point (only for faceCentre)
Definition at line 182 of file tetDecomposer.H.
|
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 194 of file tetDecomposer.H.
|
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 205 of file tetDecomposer.H.
void setRefinement | ( | const decompositionType | decomposeType, |
const bitSet & | decomposeCell, | ||
polyTopoChange & | meshMod | ||
) |
Insert all changes into meshMod to convert the polyMesh into.
tets.
Definition at line 206 of file tetDecomposer.C.
References Foam::abort(), polyTopoChange::addCell(), polyTopoChange::addPoint(), HashTable< T, Key, Hash >::clear(), Foam::constant::electromagnetic::e, HashTable< T, Key, Hash >::end(), f(), Foam::FatalError, FatalErrorInFunction, UList< T >::fcIndex(), HashTable< T, Key, Hash >::find(), UList< T >::find(), faceZone::flipMap(), forAll, HashTable< T, Key, Hash >::insert(), Foam::max(), face::nextLabel(), p0, face::prevLabel(), UList< T >::rcIndex(), List< T >::setSize(), UList< T >::size(), syncTools::swapBoundaryFaceList(), and faceZone::whichFace().
void updateMesh | ( | const mapPolyMesh & | map | ) |
Force recalculation of locally stored data on topological change.
Definition at line 868 of file tetDecomposer.C.
References forAll, Foam::inplaceRenumber(), mapPolyMesh::reverseCellMap(), and mapPolyMesh::reversePointMap().
|
static |
Definition at line 72 of file tetDecomposer.H.
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.