Decomposes polyMesh into tets. More...
Public Types | |
enum | decompositionType { FACE_CENTRE_TRIS, FACE_DIAG_TRIS } |
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. 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, 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 NamedEnum< decompositionType, 2 > | decompositionTypeNames |
Private Member Functions | |
void | modifyFace (polyTopoChange &meshMod, const face &f, const label faceI, const label own, const label nei, const label patchI, const label zoneI, const bool zoneFlip) const |
Modify a face. More... | |
void | addFace (polyTopoChange &meshMod, const face &f, const label own, const label nei, const label masterPointID, const label masterEdgeID, const label masterFaceID, const label patchI, const label zoneI, const bool zoneFlip) const |
Add a face. More... | |
label | triIndex (const label faceI, const label fp) const |
Work out triangle index given the starting vertex in the face. More... | |
tetDecomposer (const tetDecomposer &) | |
Disallow default bitwise copy construct. More... | |
void | operator= (const tetDecomposer &) |
Disallow default bitwise assignment. More... | |
Private Attributes | |
const polyMesh & | mesh_ |
labelList | cellToPoint_ |
From cell to tet point. More... | |
labelList | faceToPoint_ |
From face to tet point. More... | |
labelListList | faceOwnerCells_ |
labelListList | faceNeighbourCells_ |
enum decompositionType |
Enumerator | |
---|---|
FACE_CENTRE_TRIS | |
FACE_DIAG_TRIS |
Definition at line 63 of file tetDecomposer.H.
|
private |
Disallow default bitwise copy construct.
tetDecomposer | ( | const polyMesh & | mesh | ) |
Construct from mesh.
Definition at line 174 of file tetDecomposer.C.
|
private |
Modify a face.
Definition at line 54 of file tetDecomposer.C.
References f(), and polyTopoChange::modifyFace().
|
private |
Add a face.
Definition at line 98 of file tetDecomposer.C.
References polyTopoChange::addFace(), and f().
|
private |
Work out triangle index given the starting vertex in the face.
Definition at line 148 of file tetDecomposer.C.
References f(), polyMesh::faces(), Foam::max(), tetDecomposer::mesh_, and polyMesh::tetBasePtIs().
|
private |
Disallow default bitwise assignment.
ClassName | ( | "tetDecomposer" | ) |
Runtime type information.
|
inline |
From cell to tet point.
Definition at line 152 of file tetDecomposer.H.
References tetDecomposer::cellToPoint_.
|
inline |
From face to tet point.
Definition at line 158 of file tetDecomposer.H.
References tetDecomposer::faceToPoint_.
|
inline |
Per face, per point (faceCentre) or triangle (faceDiag)
the added tet on the owner side
Definition at line 166 of file tetDecomposer.H.
|
inline |
Per face, per point (faceCentre) or triangle (faceDiag)
the added tet on the neighbour side
Definition at line 173 of file tetDecomposer.H.
void setRefinement | ( | const decompositionType | decomposeType, |
polyTopoChange & | meshMod | ||
) |
Insert all changes into meshMod to convert the polyMesh into.
tets.
Definition at line 183 of file tetDecomposer.C.
References Foam::abort(), polyTopoChange::addCell(), polyTopoChange::addPoint(), HashTable::clear(), Foam::e, f(), Foam::FatalError, FatalErrorInFunction, HashTable::find(), Foam::findIndex(), faceZone::flipMap(), forAll, HashTable::insert(), Foam::max(), face::nextLabel(), face::prevLabel(), List::setSize(), List::size(), and faceZone::whichFace().
void updateMesh | ( | const mapPolyMesh & | map | ) |
Force recalculation of locally stored data on topological change.
Definition at line 697 of file tetDecomposer.C.
References forAll, Foam::inplaceRenumber(), mapPolyMesh::reverseCellMap(), and mapPolyMesh::reversePointMap().
|
static |
Definition at line 70 of file tetDecomposer.H.
|
private |
Definition at line 77 of file tetDecomposer.H.
Referenced by tetDecomposer::triIndex().
|
private |
From cell to tet point.
Definition at line 80 of file tetDecomposer.H.
Referenced by tetDecomposer::cellToPoint().
|
private |
From face to tet point.
Definition at line 83 of file tetDecomposer.H.
Referenced by tetDecomposer::faceToPoint().
|
private |
Definition at line 88 of file tetDecomposer.H.
|
private |
Definition at line 92 of file tetDecomposer.H.
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.