Public Member Functions | List of all members
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, const bool syncPar=true)
 Construct from mesh. Parallel synchronized by default. 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:

Source files

Definition at line 59 of file removeCells.H.

Constructor & Destructor Documentation

◆ removeCells()

removeCells ( const polyMesh mesh,
const bool  syncPar = true 
)
explicit

Construct from mesh. Parallel synchronized by default.

Definition at line 67 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 77 of file removeCells.C.

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

Referenced by fvMeshSubsetter::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 473 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 181 of file removeCells.C.

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

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 484 of file removeCells.C.

◆ updateMesh()

void updateMesh ( const mapPolyMesh )
inline

Force recalculation of locally stored data on topological change.

Definition at line 149 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: