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

Public Member Functions

 topologicalCleaner (polyMeshGen &mesh)
 Construct from polyMeshGen. More...
 
 ~topologicalCleaner ()
 
bool cleanTopology ()
 clean topologically problematic cells More...
 
void checkInvalidConnectionsForVerticesCells (labelHashSet *irregularNodes=NULL)
 check and fix vertices where two or more groups of cells meet More...
 
void checkInvalidConnectionsForVerticesFaces (labelHashSet *irregularNodes=NULL)
 check and fix vertices where two or more groups of faces meet More...
 

Private Member Functions

void checkNonConsecutiveBoundaryVertices ()
 check and fix incorrectly connected faces More...
 
void checkNonMappableFaces ()
 check and fix non-mappable faces More...
 
void checkNonMappableCells ()
 check and fix non-mappable cells More...
 
void decomposeCells ()
 decompose marked cells More...
 
 topologicalCleaner (const topologicalCleaner &)
 Disallow default bitwise copy construct. More...
 
void operator= (const topologicalCleaner &)
 Disallow default bitwise assignment. More...
 

Private Attributes

polyMeshGenmesh_
 
bool changed_
 
boolList decomposeCell_
 

Detailed Description

Definition at line 50 of file topologicalCleaner.H.

Constructor & Destructor Documentation

◆ topologicalCleaner() [1/2]

topologicalCleaner ( const topologicalCleaner )
private

Disallow default bitwise copy construct.

◆ topologicalCleaner() [2/2]

Construct from polyMeshGen.

Definition at line 56 of file topologicalCleaner.C.

◆ ~topologicalCleaner()

Definition at line 68 of file topologicalCleaner.C.

Member Function Documentation

◆ checkNonConsecutiveBoundaryVertices()

void checkNonConsecutiveBoundaryVertices ( )
private

◆ checkNonMappableFaces()

void checkNonMappableFaces ( )
private

check and fix non-mappable faces

find boundary vertices

internal faces which have more than two vertices at the boundary cannot always be mapped at the boundary and form a valid cell The second case of interest are faces which have two vertices at the boundary but are not connected over an edge

check processor faces

send information about decomposed faces to other processor

Definition at line 79 of file topologyCleanerNonMappableCells.C.

References DynList< T, staticSize >::append(), UPstream::blocking, polyMeshGenFaces::boundaries(), topologicalCleaner::changed_, topologicalCleaner::decomposeCell_, decomposeFaces::decomposeMeshFaces(), Foam::endl(), f(), polyMeshGenFaces::faces(), forAll, Foam::Info, topologicalCleaner::mesh_, polyMeshGenFaces::neighbour(), polyMeshGenFaces::nInternalFaces(), polyMeshGenFaces::owner(), UPstream::parRun(), polyMeshGenPoints::points(), polyMeshGenFaces::procBoundaries(), Foam::reduce(), faceListPMG::size(), pointFieldPMG::size(), and DynList< T, staticSize >::size().

Referenced by topologicalCleaner::cleanTopology().

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

◆ checkNonMappableCells()

void checkNonMappableCells ( )
private

check and fix non-mappable cells

decompose cells with more than one boundary face

Definition at line 42 of file topologyCleanerNonMappableCells.C.

References polyMeshGenFaces::boundaries(), polyMeshGenCells::cells(), topologicalCleaner::changed_, topologicalCleaner::decomposeCell_, Foam::endl(), forAll, Foam::Info, topologicalCleaner::mesh_, polyMeshGenFaces::owner(), UPstream::parRun(), Foam::reduce(), and cellListPMG::size().

Referenced by topologicalCleaner::cleanTopology().

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

◆ decomposeCells()

void decomposeCells ( )
private

decompose marked cells

Definition at line 43 of file topologicalCleaner.C.

References topologicalCleaner::changed_, topologicalCleaner::decomposeCell_, decomposeCells::decomposeMesh(), and topologicalCleaner::mesh_.

Referenced by topologicalCleaner::cleanTopology().

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

◆ operator=()

void operator= ( const topologicalCleaner )
private

Disallow default bitwise assignment.

◆ cleanTopology()

bool cleanTopology ( )

◆ checkInvalidConnectionsForVerticesCells()

void checkInvalidConnectionsForVerticesCells ( labelHashSet irregularNodes = NULL)

◆ checkInvalidConnectionsForVerticesFaces()

void checkInvalidConnectionsForVerticesFaces ( labelHashSet irregularNodes = NULL)

Field Documentation

◆ mesh_

polyMeshGen& mesh_
private

◆ changed_

bool changed_
private

◆ decomposeCell_

boolList decomposeCell_
private

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