81 dictionaryConstructorTable::iterator cstrIter =
82 dictionaryConstructorTablePtr_->find(modelType);
84 if (cstrIter == dictionaryConstructorTablePtr_->end())
87 <<
"Unknown profile model type " << modelType
89 <<
"Valid model types are :" <<
nl
90 << dictionaryConstructorTablePtr_->sortedToc()
Macros for easy insertion into run-time selection tables.
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
const word dictName() const
Return the local dictionary name (final part of scoped name)
A list of keywords followed by any number of values (e.g. words and numbers) or sub-dictionaries.
ITstream & lookup(const word &, bool recursive=false, bool patternMatch=true) const
Find and return an entry data stream.
A class for handling file names.
static const fileName null
An empty fileName.
Base class for profile models.
virtual ~profileModel()
Destructor.
bool readFromFile() const
Return true if file name is set.
fileName fName_
File name (optional)
profileModel(const dictionary &dict, const word &modelName)
Constructor.
const word & name() const
Return const access to the source name.
static autoPtr< profileModel > New(const dictionary &dict)
Return a reference to the selected fvModel model.
A class for handling words, derived from string.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
errorManipArg< error, int > exit(error &err, const int errNo=1)
defineRunTimeSelectionTable(reactionRateFlameArea, dictionary)
Ostream & endl(Ostream &os)
Add newline and flush stream.
defineTypeNameAndDebug(combustionModel, 0)
word name(const LagrangianState state)
Return a string representation of a Lagrangian state enumeration.