Public Member Functions | |
voronoiMeshExtractor (const meshOctree &octree, const IOdictionary &meshDict, polyMeshGen &mesh) | |
Construct from octree and mesh data. More... | |
~voronoiMeshExtractor () | |
void | createMesh () |
Private Member Functions | |
void | createAddressing () const |
create and return addressing More... | |
const VRWGraph & | pointEdges () const |
const LongList< edge > & | edges () const |
const VRWGraph & | edgeTets () const |
const boolList & | boundaryEdge () const |
void | createPoints () |
create points of the voronoi mesh More... | |
void | createPolyMesh () |
create mesh data More... | |
void | clearOut () |
delete all pointer data More... | |
voronoiMeshExtractor (const voronoiMeshExtractor &) | |
Disallow default bitwise copy construct. More... | |
void | operator= (const voronoiMeshExtractor &) |
Disallow default bitwise assignment. More... | |
Private Attributes | |
tetCreatorOctree | tetCreator_ |
create tets More... | |
polyMeshGen & | mesh_ |
reference to the mesh More... | |
VRWGraph * | pointEdgesPtr_ |
edges connected to a vertex in the tet mesh More... | |
LongList< edge > * | edgesPtr_ |
edges of the tetrahedrization More... | |
VRWGraph * | edgeTetsPtr_ |
tets around each edge More... | |
boolList * | boundaryEdgePtr_ |
is edge at the boundary More... | |
Static Private Attributes | |
static label | sameOrientation_ [6] = {3, 1, 2, 2, 3, 0} |
positive orientation More... | |
static label | oppositeOrientation_ [6] = {2, 3, 1, 0, 0, 1} |
opposite orientation More... | |
Definition at line 51 of file voronoiMeshExtractor.H.
|
private |
Disallow default bitwise copy construct.
voronoiMeshExtractor | ( | const meshOctree & | octree, |
const IOdictionary & | meshDict, | ||
polyMeshGen & | mesh | ||
) |
Construct from octree and mesh data.
Definition at line 58 of file voronoiMeshExtractor.C.
~voronoiMeshExtractor | ( | ) |
Definition at line 74 of file voronoiMeshExtractor.C.
References voronoiMeshExtractor::clearOut().
|
private |
create and return addressing
create edges and edgeTets
calculate point-edges addressing
sort edge-tets in circular order
find the face shared with the neighbour
Definition at line 44 of file voronoiMeshExtractorAddressing.C.
References Foam::abort(), Foam::add(), LongList< T, Offset >::append(), DynList< T, staticSize >::append(), VRWGraph::appendList(), voronoiMeshExtractor::boundaryEdgePtr_, graphRow< graphType >::contains(), Foam::e, voronoiMeshExtractor::edges(), partTet::edges(), voronoiMeshExtractor::edgesPtr_, voronoiMeshExtractor::edgeTets(), voronoiMeshExtractor::edgeTetsPtr_, Foam::endl(), Foam::FatalError, FatalErrorIn, forAll, forAllRow, found, Foam::Info, voronoiMeshExtractor::oppositeOrientation_, voronoiMeshExtractor::pointEdges(), voronoiMeshExtractor::pointEdgesPtr_, Foam::pos(), VRWGraph::reverseAddressing(), voronoiMeshExtractor::sameOrientation_, List::setSize(), VRWGraph::size(), voronoiMeshExtractor::tetCreator_, tetCreatorOctree::tetPoints(), tetCreatorOctree::tets(), and partTet::whichPosition().
Referenced by voronoiMeshExtractor::boundaryEdge(), voronoiMeshExtractor::edges(), voronoiMeshExtractor::edgeTets(), and voronoiMeshExtractor::pointEdges().
|
private |
Definition at line 193 of file voronoiMeshExtractorAddressing.C.
References voronoiMeshExtractor::createAddressing(), and voronoiMeshExtractor::pointEdgesPtr_.
Referenced by voronoiMeshExtractor::createAddressing(), and voronoiMeshExtractor::createPolyMesh().
Definition at line 201 of file voronoiMeshExtractorAddressing.C.
References voronoiMeshExtractor::createAddressing(), and voronoiMeshExtractor::edgesPtr_.
Referenced by voronoiMeshExtractor::createAddressing(), and voronoiMeshExtractor::createPolyMesh().
|
private |
Definition at line 209 of file voronoiMeshExtractorAddressing.C.
References voronoiMeshExtractor::createAddressing(), and voronoiMeshExtractor::edgeTetsPtr_.
Referenced by voronoiMeshExtractor::createAddressing(), and voronoiMeshExtractor::createPolyMesh().
|
private |
Definition at line 217 of file voronoiMeshExtractorAddressing.C.
References voronoiMeshExtractor::boundaryEdgePtr_, and voronoiMeshExtractor::createAddressing().
Referenced by voronoiMeshExtractor::createPolyMesh().
|
private |
create points of the voronoi mesh
Definition at line 44 of file voronoiMeshExtractorCreateMesh.C.
References Foam::endl(), forAll, Foam::Info, voronoiMeshExtractor::mesh_, points, polyMeshGenPoints::points(), LongList< T, Offset >::size(), voronoiMeshExtractor::tetCreator_, tetCreatorOctree::tetPoints(), and tetCreatorOctree::tets().
Referenced by voronoiMeshExtractor::createMesh().
|
private |
create mesh data
count the number of cells
count the number of faces
create faces
fill the faces with the node labels
create cells
Definition at line 72 of file voronoiMeshExtractorCreateMesh.C.
References voronoiMeshExtractor::boundaryEdge(), cells, polyMeshGenModifier::cellsAccess(), polyMeshGenCells::clearAddressingData(), Foam::e, voronoiMeshExtractor::edges(), voronoiMeshExtractor::edgeTets(), Foam::endl(), f(), polyMeshGenModifier::facesAccess(), forAll, forAllRow, Foam::Info, voronoiMeshExtractor::mesh_, voronoiMeshExtractor::pointEdges(), faceListPMG::setSize(), LongList< T, Offset >::size(), VRWGraph::size(), and VRWGraph::sizeOfRow().
Referenced by voronoiMeshExtractor::createMesh().
|
private |
delete all pointer data
Definition at line 46 of file voronoiMeshExtractor.C.
References voronoiMeshExtractor::boundaryEdgePtr_, Foam::deleteDemandDrivenData(), voronoiMeshExtractor::edgesPtr_, voronoiMeshExtractor::edgeTetsPtr_, and voronoiMeshExtractor::pointEdgesPtr_.
Referenced by voronoiMeshExtractor::~voronoiMeshExtractor().
|
private |
Disallow default bitwise assignment.
void createMesh | ( | ) |
copy tet points into the mesh
create the mesh
Definition at line 81 of file voronoiMeshExtractor.C.
References polyMeshGenCells::cells(), voronoiMeshExtractor::createPoints(), voronoiMeshExtractor::createPolyMesh(), Foam::endl(), polyMeshGenFaces::faces(), Foam::Info, voronoiMeshExtractor::mesh_, Foam::nl, polyMeshGenPoints::points(), polyMeshGenModifier::removeUnusedVertices(), polyMeshGenModifier::reorderBoundaryFaces(), cellListPMG::size(), faceListPMG::size(), and pointFieldPMG::size().
Referenced by voronoiMeshGenerator::createVoronoiMesh().
|
private |
create tets
Definition at line 55 of file voronoiMeshExtractor.H.
Referenced by voronoiMeshExtractor::createAddressing(), and voronoiMeshExtractor::createPoints().
|
private |
reference to the mesh
Definition at line 58 of file voronoiMeshExtractor.H.
Referenced by voronoiMeshExtractor::createMesh(), voronoiMeshExtractor::createPoints(), and voronoiMeshExtractor::createPolyMesh().
|
mutableprivate |
edges connected to a vertex in the tet mesh
Definition at line 61 of file voronoiMeshExtractor.H.
Referenced by voronoiMeshExtractor::clearOut(), voronoiMeshExtractor::createAddressing(), and voronoiMeshExtractor::pointEdges().
edges of the tetrahedrization
Definition at line 64 of file voronoiMeshExtractor.H.
Referenced by voronoiMeshExtractor::clearOut(), voronoiMeshExtractor::createAddressing(), and voronoiMeshExtractor::edges().
|
mutableprivate |
tets around each edge
Definition at line 67 of file voronoiMeshExtractor.H.
Referenced by voronoiMeshExtractor::clearOut(), voronoiMeshExtractor::createAddressing(), and voronoiMeshExtractor::edgeTets().
|
mutableprivate |
is edge at the boundary
Definition at line 70 of file voronoiMeshExtractor.H.
Referenced by voronoiMeshExtractor::boundaryEdge(), voronoiMeshExtractor::clearOut(), and voronoiMeshExtractor::createAddressing().
|
staticprivate |
positive orientation
Definition at line 99 of file voronoiMeshExtractor.H.
Referenced by voronoiMeshExtractor::createAddressing().
|
staticprivate |
opposite orientation
Definition at line 102 of file voronoiMeshExtractor.H.
Referenced by voronoiMeshExtractor::createAddressing().
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.