33 namespace regionModels
42 const word& regionType
48 IOobject surfaceFilmPropertiesDictHeader
50 regionType +
"Properties",
58 if (surfaceFilmPropertiesDictHeader.typeHeaderOk<
IOdictionary>())
62 surfaceFilmPropertiesDictHeader
65 surfaceFilmPropertiesDict.
lookup(
"surfaceFilmModel") >> modelType;
69 modelType = surfaceFilmModels::noFilm::typeName;
73 Info<<
"Selecting surfaceFilmModel " << modelType <<
endl;
75 meshConstructorTable::iterator cstrIter =
76 meshConstructorTablePtr_->find(modelType);
78 if (cstrIter == meshConstructorTablePtr_->end())
81 <<
"Unknown surfaceFilmModel type " << modelType
82 <<
nl <<
nl <<
"Valid surfaceFilmModel types are:" <<
nl 83 << meshConstructorTablePtr_->toc()
errorManipArg< error, int > exit(error &err, const int errNo=1)
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
Ostream & endl(Ostream &os)
Add newline and flush stream.
const Time & time() const
Return the top-level database.
IOdictionary is derived from dictionary and IOobject to give the dictionary automatic IO functionalit...
A class for handling words, derived from string.
const word & constant() const
Return constant name.
static autoPtr< surfaceFilmModel > New(const fvMesh &mesh, const dimensionedVector &g, const word ®ionType="surfaceFilm")
Return a reference to the selected surface film model.
Mesh data needed to do the Finite Volume discretisation.
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
const dimensionedVector & g
IOobject defines the attributes of an object for which implicit objectRegistry management is supporte...
ITstream & lookup(const word &, bool recursive=false, bool patternMatch=true) const
Find and return an entry data stream.