44 mesh.time().constant(),
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_
87 const polyPatch& patch,
89 const word& waveDictName
94 waveModel* modelPtr =
mesh.getObjectPtr<waveModel>(modelName);
100 modelPtr->info(
Info);
IOdictionary(const IOobject &io, const dictionary *fallback=nullptr)
Construct given an IOobject and optional fallback dictionary content.
@ NO_REGISTER
Do not request registration (bool: false).
@ MUST_READ
Reading required.
@ NO_WRITE
Ignore writing from objectRegistry::writeObject().
Defines the attributes of an object for which implicit objectRegistry management is supported,...
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
Find and return a T. FatalIOError if not found, or if the number of tokens is incorrect.
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
Find an entry (const access) with the given keyword.
Mesh data needed to do the Finite Volume discretisation.
A patch is a list of labels that address the faces in the global face list.
bool store()
Register object with its registry and transfer ownership to the registry.
A class for managing temporary objects.
static const word dictName
Dictionary name.
waveModel(const dictionary &dict, const fvMesh &mesh, const polyPatch &patch, const bool readFields=true)
Constructor.
static autoPtr< waveModel > New(const word &dictName, const fvMesh &mesh, const polyPatch &patch)
Return a reference to the selected wave model.
virtual void info(Ostream &os) const
Info.
static word modelName(const word &patchName)
Utility function to construct the model name.
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.
messageStream Info
Information stream (stdout output on master, null elsewhere).
Ostream & endl(Ostream &os)
Add newline and flush stream.
IOerror FatalIOError
Error stream (stdout output on all processes), with additional 'FOAM FATAL IO ERROR' header text and ...
errorManipArg< error, int > exit(error &err, const int errNo=1)