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

refinementIterator Class Reference

Utility class to do iterating meshCutter until all requests satisfied. More...

Inheritance diagram for refinementIterator:
Collaboration diagram for refinementIterator:

List of all members.


Public Member Functions

 ClassName ("refinementIterator")
 Runtime type information.
 refinementIterator (polyMesh &mesh, undoableMeshCutter &meshRefiner, const cellLooper &cellWalker, const bool writeMesh=false)
 Construct from mesh, refinementEngine and cell walking routine.
 ~refinementIterator ()
Map< label > setRefinement (const List< refineCell > &)
 Try to refine cells in given direction. Constructs intermediate.

Detailed Description

Utility class to do iterating meshCutter until all requests satisfied.

Needed since cell cutting can only cut cell once in one go so if refinement pattern is not compatible on a cell by cell basis it will refuse to cut.

Parallel: communicates. All decisions done on 'reduce'd variable.

Source files

Definition at line 60 of file refinementIterator.H.


Constructor & Destructor Documentation

refinementIterator ( polyMesh &  mesh,
undoableMeshCutter &  meshRefiner,
const cellLooper &  cellWalker,
const bool  writeMesh = false 
)

Construct from mesh, refinementEngine and cell walking routine.

If writeMesh = true increments runTime and writes intermediate meshes.

Definition at line 43 of file refinementIterator.C.

Definition at line 60 of file refinementIterator.C.


Member Function Documentation

ClassName ( "refinementIterator"   ) 

Runtime type information.

Foam::Map< Foam::label > setRefinement ( const List< refineCell > &  refCells  ) 

Try to refine cells in given direction. Constructs intermediate.

meshes. Returns map from old to added cells.

Definition at line 67 of file refinementIterator.C.


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