OpenFOAM logo
The Open Source CFD Toolbox
  Programmer’s C++ Doxygen OpenCFD Solutions Contact OpenFOAM

undoableMeshCutter Class Reference

Inheritance diagram for undoableMeshCutter:

Inheritance graph
[legend]
Collaboration diagram for undoableMeshCutter:

Collaboration graph
[legend]
List of all members.

Detailed Description

Definition at line 101 of file undoableMeshCutter.H.


Public Member Functions

 ClassName ("undoableMeshCutter")
 Runtime type information.
 undoableMeshCutter (const polyMesh &mesh, const bool undoable=true)
 Construct from mesh and flag whether refinement pattern needs.
 ~undoableMeshCutter ()
const Map< splitCell * > & liveSplitCells () const
 All current live split cells. Warning: cell labels will change.
const removeFaces & faceRemover () const
void setRefinement (const cellCuts &cuts, polyTopoChange &)
 Refine cells acc. to cellCuts. Plays topology changes.
void updateMesh (const mapPolyMesh &morphMap)
 Update stored refinement pattern for changes to mesh. Only.
labelList getSplitFaces () const
 Calculate split faces from current liveCells. Only.
Map< label > getAddedCells () const
 Like getSplitFaces but returns map from original to added cell.
labelList removeSplitFaces (const labelList &splitFaces, polyTopoChange &)
 Remove some refinement. Needs to be supplied subset of.

Constructor & Destructor Documentation

undoableMeshCutter ( const polyMesh &  mesh,
const bool  undoable = true 
)

Construct from mesh and flag whether refinement pattern needs.

to be stored.


Member Function Documentation

ClassName ( "undoableMeshCutter"   ) 

Runtime type information.

const Map<splitCell*>& liveSplitCells (  )  const [inline]

All current live split cells. Warning: cell labels will change.

during morphing. Only this map is guaranteed to hold uptodate info.

Definition at line 175 of file undoableMeshCutter.H.

const removeFaces& faceRemover (  )  const [inline]

Definition at line 180 of file undoableMeshCutter.H.

void setRefinement ( const cellCuts &  cuts,
polyTopoChange &   
)

Refine cells acc. to cellCuts. Plays topology changes.

into polyTopoChange.

Reimplemented from meshCutter.

void updateMesh ( const mapPolyMesh &  morphMap  ) 

Update stored refinement pattern for changes to mesh. Only.

call if undoable set.

Reimplemented from meshCutter.

labelList getSplitFaces (  )  const

Calculate split faces from current liveCells. Only.

call if undoable set.

Map<label> getAddedCells (  )  const

Like getSplitFaces but returns map from original to added cell.

Only call if undoable set.

labelList removeSplitFaces ( const labelList &  splitFaces,
polyTopoChange &   
)

Remove some refinement. Needs to be supplied subset of.

getSplitFaces() output. Returns list of faces removed (can be more or equal but never less than splitFaces - since removeFaces might decide to take down unnessecary faces) Only call if undoable set.


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