46 const dictionary& cellSizeCalculationTypeDict,
48 const scalar& defaultCellSize
51 cellSizeCalculationTypeDict_(cellSizeCalculationTypeDict),
53 defaultCellSize_(defaultCellSize)
61 const dictionary&
dict,
63 const scalar& defaultCellSize
66 const word modelType(
dict.
get<word>(
"cellSizeCalculationType"));
68 Info<<
indent <<
"Selecting cellSizeCalculationType " << modelType <<
endl;
70 auto* ctorPtr = dictionaryConstructorTable(modelType);
77 "cellSizeCalculationType",
79 *dictionaryConstructorTablePtr_
83 return autoPtr<cellSizeCalculationType>
Ostream & indent(Ostream &os)
Indent stream.
errorManipArg< error, int > exit(error &err, const int errNo=1)
cellSizeCalculationType(const cellSizeCalculationType &)=delete
No copy construct.
Ostream & endl(Ostream &os)
Add newline and flush stream.
T get(const word &keyword, enum keyType::option matchOpt=keyType::REGEX) const
Find and return a T. FatalIOError if not found, or if the number of tokens is incorrect.
Macros for easy insertion into run-time selection tables.
static autoPtr< cellSizeCalculationType > New(const dictionary &cellSizeCalculationTypeDict, const triSurfaceMesh &surface, const scalar &defaultCellSize)
Return a reference to the selected cellSizeCalculationType.
const wordList surface
Standard surface field types (scalar, vector, tensor, etc)
defineRunTimeSelectionTable(reactionRateFlameArea, dictionary)
defineTypeNameAndDebug(combustionModel, 0)
messageStream Info
Information stream (stdout output on master, null elsewhere)
#define FatalIOErrorInLookup(ios, lookupTag, lookupName, lookupTable)
Report an error message using Foam::FatalIOError.
IOerror FatalIOError
Error stream (stdout output on all processes), with additional 'FOAM FATAL IO ERROR' header text and ...