Go to the documentation of this file.
35 Info<<
"solidProperties::New(Istream&): constructing solid"
39 const word solidType(is);
40 const word coeffs(is);
42 if (coeffs ==
"defaultCoeffs")
44 ConstructorTable::iterator cstrIter =
45 ConstructorTablePtr_->find(solidType);
47 if (cstrIter == ConstructorTablePtr_->end())
50 <<
"Unknown solidProperties type " << solidType <<
nl <<
nl
51 <<
"Valid solidProperties types are :" <<
endl
52 << ConstructorTablePtr_->sortedToc()
58 else if (coeffs ==
"coeffs")
65 <<
"solidProperties type " << solidType
66 <<
", option " << coeffs <<
" given"
67 <<
", should be coeffs or defaultCoeffs"
82 Info<<
"solidProperties::New(const dictionary&): constructing solid"
91 ConstructorTable::iterator cstrIter =
92 ConstructorTablePtr_->find(solidType);
94 if (cstrIter == ConstructorTablePtr_->end())
97 <<
"Unknown solidProperties type " << solidType <<
nl <<
nl
98 <<
"Valid solidProperties types are :" <<
endl
99 << ConstructorTablePtr_->sortedToc()
const word dictName() const
Return the local dictionary name (final part of scoped name)
A simple wrapper around bool so that it can be read as a word: true/false, on/off,...
static autoPtr< solidProperties > New(Istream &is)
Return a pointer to a new solidProperties created from input.
A class for handling words, derived from string.
The thermophysical properties of a solid.
ITstream & lookup(const word &, bool recursive=false, bool patternMatch=true) const
Find and return an entry data stream.
Ostream & endl(Ostream &os)
Add newline and flush stream.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
A list of keyword definitions, which are a keyword followed by any number of values (e....
errorManipArg< error, int > exit(error &err, const int errNo=1)
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
solidProperties(scalar rho, scalar Cp, scalar K, scalar Hf, scalar emissivity)
Construct from components.
const dictionary & subDict(const word &) const
Find and return a sub-dictionary.