Public Member Functions | Private Member Functions | Private Attributes | Static Private Attributes
voronoiMeshExtractor Class Reference
Collaboration diagram for voronoiMeshExtractor:
Collaboration graph
[legend]

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 VRWGraphpointEdges () const
 
const LongList< edge > & edges () const
 
const VRWGraphedgeTets () const
 
const boolListboundaryEdge () 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...
 
polyMeshGenmesh_
 reference to the mesh More...
 
VRWGraphpointEdgesPtr_
 edges connected to a vertex in the tet mesh More...
 
LongList< edge > * edgesPtr_
 edges of the tetrahedrization More...
 
VRWGraphedgeTetsPtr_
 tets around each edge More...
 
boolListboundaryEdgePtr_
 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...
 

Detailed Description

Definition at line 51 of file voronoiMeshExtractor.H.

Constructor & Destructor Documentation

◆ voronoiMeshExtractor() [1/2]

Disallow default bitwise copy construct.

◆ voronoiMeshExtractor() [2/2]

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().

Here is the call graph for this function:

Member Function Documentation

◆ createAddressing()

void createAddressing ( ) const
private

◆ pointEdges()

const VRWGraph & pointEdges ( ) const
private

Definition at line 193 of file voronoiMeshExtractorAddressing.C.

References voronoiMeshExtractor::createAddressing(), and voronoiMeshExtractor::pointEdgesPtr_.

Referenced by voronoiMeshExtractor::createAddressing(), and voronoiMeshExtractor::createPolyMesh().

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

◆ edges()

const LongList< edge > & edges ( ) const
private

Definition at line 201 of file voronoiMeshExtractorAddressing.C.

References voronoiMeshExtractor::createAddressing(), and voronoiMeshExtractor::edgesPtr_.

Referenced by voronoiMeshExtractor::createAddressing(), and voronoiMeshExtractor::createPolyMesh().

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

◆ edgeTets()

const VRWGraph & edgeTets ( ) const
private

Definition at line 209 of file voronoiMeshExtractorAddressing.C.

References voronoiMeshExtractor::createAddressing(), and voronoiMeshExtractor::edgeTetsPtr_.

Referenced by voronoiMeshExtractor::createAddressing(), and voronoiMeshExtractor::createPolyMesh().

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

◆ boundaryEdge()

const boolList & boundaryEdge ( ) const
private

Definition at line 217 of file voronoiMeshExtractorAddressing.C.

References voronoiMeshExtractor::boundaryEdgePtr_, and voronoiMeshExtractor::createAddressing().

Referenced by voronoiMeshExtractor::createPolyMesh().

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

◆ createPoints()

void createPoints ( )
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().

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

◆ createPolyMesh()

void createPolyMesh ( )
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().

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

◆ clearOut()

void clearOut ( )
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().

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

◆ operator=()

void operator= ( const voronoiMeshExtractor )
private

Disallow default bitwise assignment.

◆ createMesh()

void createMesh ( )

Field Documentation

◆ tetCreator_

tetCreatorOctree tetCreator_
private

◆ mesh_

polyMeshGen& mesh_
private

◆ pointEdgesPtr_

VRWGraph* pointEdgesPtr_
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().

◆ edgesPtr_

LongList<edge>* edgesPtr_
mutableprivate

edges of the tetrahedrization

Definition at line 64 of file voronoiMeshExtractor.H.

Referenced by voronoiMeshExtractor::clearOut(), voronoiMeshExtractor::createAddressing(), and voronoiMeshExtractor::edges().

◆ edgeTetsPtr_

VRWGraph* edgeTetsPtr_
mutableprivate

◆ boundaryEdgePtr_

boolList* boundaryEdgePtr_
mutableprivate

◆ sameOrientation_

label sameOrientation_ = {3, 1, 2, 2, 3, 0}
staticprivate

positive orientation

Definition at line 99 of file voronoiMeshExtractor.H.

Referenced by voronoiMeshExtractor::createAddressing().

◆ oppositeOrientation_

label oppositeOrientation_ = {2, 3, 1, 0, 0, 1}
staticprivate

opposite orientation

Definition at line 102 of file voronoiMeshExtractor.H.

Referenced by voronoiMeshExtractor::createAddressing().


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