removeCells Class Reference

Given list of cells to remove, insert all the topology changes. More...

Public Member Functions

 ClassName ("removeCells")
 Runtime type information. More...
 
 removeCells (const polyMesh &mesh)
 Construct from mesh. With parallel synchronization. More...
 
 removeCells (const polyMesh &mesh, const bool syncPar)
 Construct from mesh, optionally with parallel synchronization. More...
 
 ~removeCells ()=default
 Destructor. More...
 
labelList getExposedFaces (const bitSet &removedCell) const
 Get labels of faces exposed after cells removal. More...
 
labelList getExposedFaces (const labelUList &cellsToRemove) const
 Get labels of faces exposed after cells removal. More...
 
void setRefinement (const bitSet &removedCell, const labelUList &facesToExpose, const labelUList &patchIDs, polyTopoChange &) const
 Play commands into polyTopoChange to remove cells. More...
 
void setRefinement (const labelUList &cellsToRemove, const labelUList &facesToExpose, const labelUList &patchIDs, polyTopoChange &) const
 Play commands into polyTopoChange to remove cells. More...
 
void updateMesh (const mapPolyMesh &)
 Force recalculation of locally stored data on topological change. More...
 

Detailed Description

Given list of cells to remove, insert all the topology changes.

Works in two passes:

  • get faces that will become boundary faces
  • given these faces and the patches they have to go into make the changes.
Source files

Definition at line 63 of file removeCells.H.

Constructor & Destructor Documentation

◆ removeCells() [1/2]

removeCells ( const polyMesh mesh)
explicit

Construct from mesh. With parallel synchronization.

Definition at line 75 of file removeCells.C.

◆ removeCells() [2/2]

removeCells ( const polyMesh mesh,
const bool  syncPar 
)

Construct from mesh, optionally with parallel synchronization.

Definition at line 84 of file removeCells.C.

◆ ~removeCells()

~removeCells ( )
default

Destructor.

Member Function Documentation

◆ ClassName()

ClassName ( "removeCells"  )

Runtime type information.

◆ getExposedFaces() [1/2]

Foam::labelList getExposedFaces ( const bitSet removedCell) const

Get labels of faces exposed after cells removal.

These are

  • internal faces that become boundary faces
  • coupled faces that become uncoupled (since one of the sides gets deleted)

Definition at line 97 of file removeCells.C.

References List< T >::append(), DynamicList< T, SizeMin >::append(), forAll, patches, and Foam::Zero.

Referenced by fvMeshSubset::getExposedFaces(), meshRefinement::removeGapCells(), and meshRefinement::splitMeshRegions().

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

◆ getExposedFaces() [2/2]

Foam::labelList getExposedFaces ( const labelUList cellsToRemove) const

Get labels of faces exposed after cells removal.

These are

  • internal faces that become boundary faces
  • coupled faces that become uncoupled (since one of the sides gets deleted)

Definition at line 493 of file removeCells.C.

◆ setRefinement() [1/2]

void setRefinement ( const bitSet removedCell,
const labelUList facesToExpose,
const labelUList patchIDs,
polyTopoChange meshMod 
) const

Play commands into polyTopoChange to remove cells.

patchIDs is for every element in facesToExpose (see above) the patch it has to go into. This cannot be a coupled patch!

Definition at line 201 of file removeCells.C.

References Foam::abort(), coupled(), Foam::endl(), f(), Foam::FatalError, FatalErrorInFunction, faceZone::flipMap(), forAll, Foam::nl, patches, polyTopoChange::setAction(), UList< T >::size(), WarningInFunction, faceZone::whichFace(), ZoneMesh< ZoneType, MeshType >::whichZone(), Foam::Zero, and zoneID.

Referenced by meshRefinement::doRemoveCells().

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

◆ setRefinement() [2/2]

void setRefinement ( const labelUList cellsToRemove,
const labelUList facesToExpose,
const labelUList patchIDs,
polyTopoChange meshMod 
) const

Play commands into polyTopoChange to remove cells.

patchIDs is for every element in facesToExpose (see above) the patch it has to go into. This cannot be a coupled patch!

Definition at line 504 of file removeCells.C.

◆ updateMesh()

void updateMesh ( const mapPolyMesh )
inline

Force recalculation of locally stored data on topological change.

Definition at line 131 of file removeCells.H.

Referenced by meshRefinement::doRemoveCells().

Here is the caller graph for this function:

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