35 const word& cellZoneName
38 const word modelType(
dict.lookup(
"type"));
41 <<
" selecting model: " << modelType <<
endl;
43 meshConstructorTable::iterator cstrIter =
44 meshConstructorTablePtr_->find(modelType);
46 if (cstrIter == meshConstructorTablePtr_->end())
49 <<
"Unknown " << typeName <<
" type " << modelType <<
nl <<
nl
50 <<
"Valid " << typeName <<
" types are:" <<
nl
51 << meshConstructorTablePtr_->sortedToc()
62 dict.optionalSubDict(modelType +
"Coeffs"),
A list of keywords followed by any number of values (e.g. words and numbers) or sub-dictionaries.
Mesh data needed to do the Finite Volume discretisation.
static autoPtr< porosityModel > New(const word &name, const fvMesh &mesh, const dictionary &dict, const word &cellZoneName=word::null)
Selector.
const word & name() const
Return const access to the porosity model name.
A class for handling words, derived from string.
Foam::fvMesh mesh(Foam::IOobject(regionName, runTime.name(), runTime, Foam::IOobject::MUST_READ), false)
#define FatalIOErrorInFunction(ios)
Report an error message using Foam::FatalIOError.
errorManipArg< error, int > exit(error &err, const int errNo=1)
Ostream & endl(Ostream &os)
Add newline and flush stream.
word name(const LagrangianState state)
Return a string representation of a Lagrangian state enumeration.