41 ConstructorTable::iterator cstrIter = ConstructorTablePtr_->find(name);
43 if (cstrIter == ConstructorTablePtr_->end())
46 <<
"Unknown solidProperties type " 48 <<
"Valid solidProperties types are:" <<
nl 49 << ConstructorTablePtr_->sortedToc()
69 if (dict.
found(
"defaultCoeffs"))
75 return New(solidType);
87 dictionaryConstructorTable::iterator cstrIter =
88 dictionaryConstructorTablePtr_->find(solidType);
90 if (cstrIter == dictionaryConstructorTablePtr_->end())
93 <<
"Unknown solidProperties type " 94 << solidType <<
nl <<
nl 95 <<
"Valid solidProperties types are:" <<
nl 96 << dictionaryConstructorTablePtr_->sortedToc()
bool found(const word &, bool recursive=false, bool patternMatch=true) const
Search dictionary for given keyword.
autoPtr< CompressibleMomentumTransportModel > New(const volScalarField &rho, const volVectorField &U, const surfaceScalarField &phi, const viscosity &viscosity)
errorManipArg< error, int > exit(error &err, const int errNo=1)
A list of keyword definitions, which are a keyword followed by any number of values (e...
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
Ostream & endl(Ostream &os)
Add newline and flush stream.
A simple wrapper around bool so that it can be read as a word: true/false, on/off, yes/no, y/n, t/f, or none/any.
const word dictName() const
Return the local dictionary name (final part of scoped name)
const dictionary & optionalSubDict(const word &) const
Find and return a sub-dictionary if found.
A class for handling words, derived from string.
The thermophysical properties of a solid.
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
static autoPtr< solidProperties > New(const word &name)
Return a pointer to a new solidProperties created from name.
ITstream & lookup(const word &, bool recursive=false, bool patternMatch=true) const
Find and return an entry data stream.
#define InfoInFunction
Report an information message using Foam::Info.