FreeFOAM The Cross-Platform CFD Toolkit
removeCells Class Reference

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

#include <dynamicMesh/removeCells.H>


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

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.

Constructor & Destructor Documentation

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

Construct from mesh. syncPar: do parallel synchronization.

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

References DynamicList< T, SizeInc, SizeMult, SizeDiv >::append(), List< T >::append(), polyPatch::coupled(), forAll, patches, polyPatch::start(), and syncTools::syncFaceList().

Referenced by meshRefinement::splitMesh(), and meshRefinement::splitMeshRegions().

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

References Foam::abort(), polyPatch::coupled(), Foam::endl(), f(), Foam::FatalError, FatalErrorIn, faceZone::flipMap(), forAll, IOobject::name(), Foam::nl, patches, face::reverseFace(), polyTopoChange::setAction(), List< T >::size(), PtrList< T >::size(), polyPatch::start(), WarningIn, faceZone::whichFace(), and ZoneMesh< ZoneType, MeshType >::whichZone().

void updateMesh ( const mapPolyMesh )
inline

Force recalculation of locally stored data on topological change.

Definition at line 115 of file removeCells.H.


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