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 nullptr. More... | |
static const cellModel * | lookup (const label i) |
Look up a model by index and return a pointer to the model or. 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, 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 nullptr.
Definition at line 88 of file cellModeller.C.
Referenced by cellMatcher::model(), NamedEnum< directionType, 3 >::names(), shapeToCell::shapeToCell(), and tetCell::tetCellShape().
Look up a model by index and return a pointer to the model or.
nullptr
Definition at line 84 of file cellModeller.H.