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

Public Member Functions

 checkNonMappableCellConnections (polyMeshGen &mesh)
 Construct from polyMeshGen and meshOctree. More...
 
 ~checkNonMappableCellConnections ()
 
void findCells (labelHashSet &badCells)
 find problematic cells More...
 
bool removeCells ()
 find and remove problematic cells More...
 

Private Types

enum  cellTypes_ {
  NONE = 0, INTERNALCELL = 1, BNDCELL = 2, ALLBNDVERTEXCELL = 4,
  INTERNALFACEGROUP = 8
}
 

Private Member Functions

void findCellTypes ()
 classify cells More...
 
 checkNonMappableCellConnections (const checkNonMappableCellConnections &)
 Disallow default bitwise copy construct. More...
 
void operator= (const checkNonMappableCellConnections &)
 Disallow default bitwise assignment. More...
 

Private Attributes

polyMeshGenmesh_
 Reference to polyMeshGen. More...
 
labelList cellType_
 type of cell More...
 

Detailed Description

Definition at line 53 of file checkNonMappableCellConnections.H.

Member Enumeration Documentation

◆ cellTypes_

enum cellTypes_
private
Enumerator
NONE 
INTERNALCELL 
BNDCELL 
ALLBNDVERTEXCELL 
INTERNALFACEGROUP 

Definition at line 64 of file checkNonMappableCellConnections.H.

Constructor & Destructor Documentation

◆ checkNonMappableCellConnections() [1/2]

Disallow default bitwise copy construct.

◆ checkNonMappableCellConnections() [2/2]

Construct from polyMeshGen and meshOctree.

Definition at line 157 of file checkNonMappableCellConnections.C.

◆ ~checkNonMappableCellConnections()

Definition at line 168 of file checkNonMappableCellConnections.C.

Member Function Documentation

◆ findCellTypes()

void findCellTypes ( )
private

◆ operator=()

void operator= ( const checkNonMappableCellConnections )
private

Disallow default bitwise assignment.

◆ findCells()

void findCells ( labelHashSet badCells)

find problematic cells

classify cell types

select ALLBNDVERTEXCELL and INTERNALFACEGROUP cells with at least one INTERNALCELL neighbour these cells do not need to stay in the mesh

exchange cell types at processor boundaries

send data to other processors

receive data from other processors

mark cells which have only one internal neighbour

Definition at line 174 of file checkNonMappableCellConnections.C.

References checkNonMappableCellConnections::ALLBNDVERTEXCELL, UPstream::blocking, Foam::constant::universal::c, cells, polyMeshGenCells::cells(), checkNonMappableCellConnections::cellType_, HashTable::clear(), polyMeshGenFaces::faceIsInProcPatch(), checkNonMappableCellConnections::findCellTypes(), forAll, HashSet< Key, Hash >::insert(), checkNonMappableCellConnections::INTERNALCELL, checkNonMappableCellConnections::INTERNALFACEGROUP, checkNonMappableCellConnections::mesh_, polyMeshGenFaces::neighbour(), polyMeshGenFaces::nInternalFaces(), polyMeshGenFaces::owner(), UPstream::parRun(), polyMeshGenFaces::procBoundaries(), List::setSize(), List::size(), and PtrList::size().

Referenced by checkNonMappableCellConnections::removeCells().

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

◆ removeCells()

bool removeCells ( )

Field Documentation

◆ mesh_

polyMeshGen& mesh_
private

◆ cellType_

labelList cellType_
private

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