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 44 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 94 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 100 of file cellModeller.C.

References Foam::findEtcFile(), and Foam::name().

Referenced by cellMatcher::model(), shapeToCell::shapeToCell(), and tetCell::tetCellShape().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ lookup() [2/2]

const Foam::cellModel * lookup ( const label  i)
static

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

nullptr

Definition at line 122 of file cellModeller.C.

References Foam::findEtcFile().

Here is the call graph for this function:

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