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

Public Member Functions

 checkCellConnectionsOverFaces (polyMeshGen &mesh)
 Construct from polyMeshGen. More...
 
 ~checkCellConnectionsOverFaces ()
 
bool checkCellGroups ()
 

Private Member Functions

void findCellGroups ()
 decompose marked cells More...
 
 checkCellConnectionsOverFaces (const checkCellConnectionsOverFaces &)
 Disallow default bitwise copy construct. More...
 
void operator= (const checkCellConnectionsOverFaces &)
 Disallow default bitwise assignment. More...
 

Private Attributes

polyMeshGenmesh_
 Reference to polyMeshGen. More...
 
labelList cellGroup_
 
label nGroups_
 number of groups More...
 

Detailed Description

Definition at line 48 of file checkCellConnectionsOverFaces.H.

Constructor & Destructor Documentation

◆ checkCellConnectionsOverFaces() [1/2]

Disallow default bitwise copy construct.

◆ checkCellConnectionsOverFaces() [2/2]

Construct from polyMeshGen.

Definition at line 205 of file checkCellConnectionsOverFaces.C.

References checkCellConnectionsOverFaces::findCellGroups().

Here is the call graph for this function:

◆ ~checkCellConnectionsOverFaces()

Definition at line 216 of file checkCellConnectionsOverFaces.C.

Member Function Documentation

◆ findCellGroups()

void findCellGroups ( )
private

◆ operator=()

void operator= ( const checkCellConnectionsOverFaces )
private

Disallow default bitwise assignment.

◆ checkCellGroups()

bool checkCellGroups ( )

check if all cells are connected as a single domain return true if the mesh has been changed

find groups which has most cells this group will be kept

remove cells which are not in the group which has max num of cells

Definition at line 221 of file checkCellConnectionsOverFaces.C.

References checkCellConnectionsOverFaces::cellGroup_, polyMeshGenCells::cells(), Foam::endl(), forAll, checkCellConnectionsOverFaces::mesh_, checkCellConnectionsOverFaces::nGroups_, UPstream::parRun(), Foam::reduce(), polyMeshGenModifier::removeCells(), cellListPMG::size(), and Foam::Warning.

Here is the call graph for this function:

Field Documentation

◆ mesh_

polyMeshGen& mesh_
private

◆ cellGroup_

labelList cellGroup_
private

each cell is assigned a group cells which can be visited over face neighbours are assigned to the same group

Definition at line 57 of file checkCellConnectionsOverFaces.H.

Referenced by checkCellConnectionsOverFaces::checkCellGroups(), and checkCellConnectionsOverFaces::findCellGroups().

◆ nGroups_

label nGroups_
private

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