32 namespace regionModels
34 namespace surfaceFilmModels
48 {viscosityModel::typeName,
"filmViscosityModel"},
55 dict.
found(viscosityModel::typeName)
56 ? dict.
subDict(viscosityModel::typeName)
62 dict.
found(viscosityModel::typeName)
63 ? viscosityDict.lookup(
"model")
64 : viscosityDict.lookup(
"filmViscosityModel")
67 Info<<
" Selecting viscosityModel " << modelType <<
endl;
69 dictionaryConstructorTable::iterator cstrIter =
70 dictionaryConstructorTablePtr_->find(modelType);
72 if (cstrIter == dictionaryConstructorTablePtr_->end())
75 <<
"Unknown viscosityModel type " << modelType
76 <<
nl <<
nl <<
"Valid viscosityModel types are:" <<
nl 77 << dictionaryConstructorTablePtr_->toc()
bool found(const word &, bool recursive=false, bool patternMatch=true) const
Search dictionary for given keyword.
const entry & lookupEntryBackwardsCompatible(const wordList &, bool recursive, bool patternMatch) const
Find and return an entry data stream if present, trying a list.
Base class for surface film models.
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.
static autoPtr< viscosityModel > New(surfaceFilmRegionModel &film, const dictionary &dict, volScalarField &mu)
Return a reference to the selected phase change model.
Ostream & endl(Ostream &os)
Add newline and flush stream.
const dictionary & subDict(const word &) const
Find and return a sub-dictionary.
A class for handling words, derived from string.
const dimensionedScalar mu
Atomic mass unit.
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...