FreeFOAM The Cross-Platform CFD Toolkit
Hosted by SourceForge:
Get FreeFOAM at SourceForge.net.
            Fast, secure and Free Open Source software downloads

multiDirRefinement Class Reference

Does multiple pass refinement to refine cells in multiple directions. More...

#include <dynamicMesh/multiDirRefinement.H>


Detailed Description

Does multiple pass refinement to refine cells in multiple directions.

Gets a list of cells to refine and vectorFields for the whole mesh. It then tries to refine in one direction after the other the wanted cells. After construction the mesh will have been refined in multiple directions.

Holds the list of cells to refine and the map from original to added for every refinement level.

Gets constructed from a dictionary or from components. Uses an undoableMeshCutter which does the actual cutting. Undo facility is switched of unless constructed from external one which allows this.

The cut cells get stored in addedCells which is for every vectorField to cut with the map from uncut to added cell (i.e. from master to slave). Note: map is only valid for a given direction.

Parallel: should be ok. Uses 'reduce' whenever it needs to make a local decision.

Source files

Definition at line 75 of file multiDirRefinement.H.

Collaboration diagram for multiDirRefinement:

List of all members.

Public Member Functions

 ClassName ("multiDirRefinement")
 Runtime type information.
 multiDirRefinement (polyMesh &mesh, const labelList &cellLabels, const dictionary &dict)
 Construct from dictionary. After construction all refinement will.
 multiDirRefinement (polyMesh &mesh, const labelList &cellLabels, const List< vectorField > &, const dictionary &dict)
 Explicitly provided directions to split in.
 multiDirRefinement (polyMesh &mesh, undoableMeshCutter &cutter, const cellLooper &cellCutter, const labelList &cellLabels, const List< vectorField > &directions, const bool writeMesh=false)
 Construct from components. Only this one would allow undo actions.
const labelListList &  addedCells () const
 Access to addedCells (on the original mesh; see above)

Constructor & Destructor Documentation

multiDirRefinement ( polyMesh &   mesh,
const labelList &   cellLabels,
const dictionary &   dict  
)

Construct from dictionary. After construction all refinement will.

have been done (and runTime will have increased a few time steps if writeMesh = true)

Definition at line 512 of file multiDirRefinement.C.

References dictionary::lookup(), and Foam::reduce().

multiDirRefinement ( polyMesh &   mesh,
const labelList &   cellLabels,
const List< vectorField > &   cellDirs,
const dictionary &   dict  
)

Explicitly provided directions to split in.

Definition at line 554 of file multiDirRefinement.C.

References dictionary::lookup(), and Foam::reduce().

multiDirRefinement ( polyMesh &   mesh,
undoableMeshCutter &   cutter,
const cellLooper &   cellCutter,
const labelList &   cellLabels,
const List< vectorField > &   directions,
const bool   writeMesh = false  
)

Construct from components. Only this one would allow undo actions.

Definition at line 596 of file multiDirRefinement.C.


Member Function Documentation

ClassName ( "multiDirRefinement"    )

Runtime type information.

const labelListList& addedCells (  ) const [inline]

Access to addedCells (on the original mesh; see above)

Definition at line 191 of file multiDirRefinement.H.


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