OpenFOAM logo
The Open Source CFD Toolbox
  Source Guide OpenCFD Solutions Contact OpenFOAM

removeCells Class Reference

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

Collaboration diagram for removeCells:

List of all members.


Public Member Functions

 ClassName ("removeCells")
 Runtime type information.
 removeCells (const polyMesh &mesh, const bool syncPar=true)
 Construct from mesh. syncPar: do parallel synchronization.
labelList getExposedFaces (const labelList &cellsToRemove) const
 Get labels of exposed faces. These are.
void setRefinement (const labelList &cellsToRemove, const labelList &facesToExpose, const labelList &patchIDs, polyTopoChange &) const
 Play commands into polyTopoChange to remove cells.
void updateMesh (const mapPolyMesh &)
 Force recalculation of locally stored data on topological change.

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 55 of file removeCells.H.


Constructor & Destructor Documentation

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

Construct from mesh. syncPar: do parallel synchronization.

Definition at line 56 of file removeCells.C.


Member Function Documentation

ClassName ( "removeCells"   ) 

Runtime type information.

Foam::labelList getExposedFaces ( const labelList &  cellLabels  )  const

Get labels of exposed faces. These are.

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

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

Definition at line 75 of file removeCells.C.

References polyMesh::boundaryMesh(), polyPatch::coupled(), polyMesh::faceNeighbour(), polyMesh::faceOwner(), forAll, primitiveMesh::nCells(), primitiveMesh::nFaces(), primitiveMesh::nInternalFaces(), patches, polyPatch::start(), and syncTools::syncFaceList().

Here is the call graph for this function:

void setRefinement ( const labelList &  cellsToRemove,
const labelList &  facesToExpose,
const labelList &  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 182 of file removeCells.C.

void updateMesh ( const mapPolyMesh &   )  [inline]

Force recalculation of locally stored data on topological change.

Definition at line 114 of file removeCells.H.


The documentation for this class was generated from the following files:
Copyright © 2000-2009 OpenCFD Ltd