Public Member Functions | Static Public Member Functions | List of all members
cellModeller Class Reference

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 cellModellookup (const word &)
 Look up a model by name and return a pointer to the model or nullptr. More...
 
static const cellModellookup (const label i)
 Look up a model by index and return a pointer to the model or. More...
 

Detailed Description

A static collection of cell models, and a means of looking them up.

Source files

Definition at line 52 of file cellModeller.H.

Constructor & Destructor Documentation

◆ cellModeller()

Construct from central "cellModels" file.

Definition at line 33 of file cellModeller.C.

References Foam::exit(), Foam::FatalError, FatalErrorInFunction, forAll, and Foam::name().

Here is the call graph for this function:

◆ ~cellModeller()

Destructor.

Definition at line 82 of file cellModeller.C.

Member Function Documentation

◆ lookup() [1/2]

const Foam::cellModel * lookup ( const word name)
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().

Here is the caller graph for this function:

◆ lookup() [2/2]

static const cellModel* lookup ( const label  i)
inlinestatic

Look up a model by index and return a pointer to the model or.

nullptr

Definition at line 84 of file cellModeller.H.


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