A static collection of cell models, and a means of looking them up. More...
Public Member Functions | |
cellModeller () | |
Construct from central "cellModels" file. More... | |
~cellModeller () | |
Destructor. More... | |
Static Public Member Functions | |
static const cellModel * | lookup (const word &) |
Look up a model by name and return a pointer to the model or NULL. More... | |
static const cellModel * | lookup (const label i) |
Look up a model by index and return a pointer to the model or NULL. More... | |
Static Private Attributes | |
static PtrList< cellModel > | models_ |
PtrList of models. More... | |
static List< cellModel * > | modelPtrs_ |
List of model pointers. More... | |
static HashTable< const cellModel * > | modelDictionary_ |
HashTable of model pointers. More... | |
A static collection of cell models, and a means of looking them up.
Definition at line 52 of file cellModeller.H.
cellModeller | ( | ) |
Construct from central "cellModels" file.
Definition at line 33 of file cellModeller.C.
References Foam::exit(), Foam::FatalError, FatalErrorInFunction, forAll, cellModeller::modelDictionary_, cellModeller::modelPtrs_, cellModeller::models_, and Foam::name().
~cellModeller | ( | ) |
Destructor.
Definition at line 82 of file cellModeller.C.
|
static |
Look up a model by name and return a pointer to the model or NULL.
Definition at line 91 of file cellModeller.C.
References Foam::name().
Referenced by shapeToCell::combine(), rotatedBoxToCell::combine(), blockMesh::createCells(), cellMatcher::model(), shapeToCell::shapeToCell(), multiDirRefinement::splitOffHex(), tetCell::tetCellShape(), and vtkTopo::vtkTopo().
Look up a model by index and return a pointer to the model or NULL.
Definition at line 83 of file cellModeller.H.
References cellModeller::modelPtrs_.
|
staticprivate |
PtrList of models.
Definition at line 57 of file cellModeller.H.
Referenced by cellModeller::cellModeller().
|
staticprivate |
List of model pointers.
Definition at line 60 of file cellModeller.H.
Referenced by cellModeller::cellModeller(), and cellModeller::lookup().
|
staticprivate |
HashTable of model pointers.
Definition at line 63 of file cellModeller.H.
Referenced by cellModeller::cellModeller().
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.