38 const word solidType(is);
39 const word coeffs(is);
41 if (coeffs ==
"defaultCoeffs")
43 ConstructorTable::iterator cstrIter =
44 ConstructorTablePtr_->find(solidType);
46 if (cstrIter == ConstructorTablePtr_->end())
49 <<
"Unknown solidProperties type " << solidType <<
nl <<
nl 50 <<
"Valid solidProperties types are :" <<
endl 51 << ConstructorTablePtr_->sortedToc()
57 else if (coeffs ==
"coeffs")
64 <<
"solidProperties type " << solidType
65 <<
", option " << coeffs <<
" given" 66 <<
", should be coeffs or defaultCoeffs" 85 const Switch defaultCoeffs(dict.
lookup(
"defaultCoeffs"));
89 ConstructorTable::iterator cstrIter =
90 ConstructorTablePtr_->find(solidType);
92 if (cstrIter == ConstructorTablePtr_->end())
95 <<
"Unknown solidProperties type " << solidType <<
nl <<
nl 96 <<
"Valid solidProperties types are :" <<
endl 97 << ConstructorTablePtr_->sortedToc()
109 dict.
subDict(solidType +
"Coeffs")
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.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)...
const word dictName() const
Return the local dictionary name (final part of scoped name)
const dictionary & subDict(const word &) const
Find and return a sub-dictionary.
Ostream & endl(Ostream &os)
Add newline and flush stream.
static autoPtr< solidProperties > New(Istream &is)
Return a pointer to a new solidProperties created from input.
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.
A class for handling words, derived from string.
solidProperties(scalar rho, scalar Cp, scalar K, scalar Hf, scalar emissivity)
Construct from components.
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
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.