52 word modelType(
"none");
54 if (waveDict.
found(patch.name()))
56 patchDict = waveDict.
subDict(patch.name());
57 modelType = patchDict.
get<
word>(
"waveModel");
62 <<
"Dictionary entry for patch " << patch.name() <<
" not found"
66 Info<<
"Selecting waveModel " << modelType <<
endl;
68 auto* ctorPtr = patchConstructorTable(modelType);
77 *patchConstructorTablePtr_
89 const word& waveDictName
IOdictionary is derived from dictionary and IOobject to give the dictionary automatic IO functionalit...
Defines the attributes of an object for which implicit objectRegistry management is supported,...
const word & constant() const
Return constant name.
static autoPtr< Time > New()
Construct (dummy) Time - no functionObjects or libraries.
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
T get(const word &keyword, enum keyType::option matchOpt=keyType::REGEX) const
const dictionary & subDict(const word &keyword, enum keyType::option matchOpt=keyType::REGEX) const
Find and return a sub-dictionary.
bool found(const word &keyword, enum keyType::option matchOpt=keyType::REGEX) const
Search for an entry (const access) with the given keyword.
Mesh data needed to do the Finite Volume discretisation.
const Time & time() const
Return the top-level database.
Type * getObjectPtr(const word &name, const bool recursive=false) const
A patch is a list of labels that address the faces in the global face list.
const word & modelName() const
Return const access to the name of the sub-model.
A class for managing temporary objects.
Base class for waveModels.
static const word dictName
Dictionary name.
virtual void info(Ostream &os) const
Info.
static tmp< waveModel > lookupOrCreate(const polyPatch &patch, const fvMesh &mesh, const word &waveDictName)
Lookup waveModel from database, or create new.
A class for handling words, derived from Foam::string.
#define FatalIOErrorInLookup(ios, lookupTag, lookupName, lookupTable)
Report an error message using Foam::FatalIOError.
#define FatalIOErrorInFunction(ios)
Report an error message using Foam::FatalIOError.
const word dictName("faMeshDefinition")
messageStream Info
Information stream (stdout output on master, null elsewhere)
Ostream & endl(Ostream &os)
Add newline and flush stream.
errorManipArg< error, int > exit(error &err, const int errNo=1)