45 const phaseModel& phase
48 diameterProperties_(
dict),
59 const phaseModel& phase
62 const word modelType(
dict.get<word>(
"diameterModel"));
64 Info<<
"Selecting diameterModel for phase "
69 auto* ctorPtr = dictionaryConstructorTable(modelType);
78 *dictionaryConstructorTablePtr_
84 dict.optionalSubDict(modelType +
"Coeffs"),
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
Abstract base-class for dispersed-phase particle diameter models.
virtual bool read(const dictionary &phaseProperties)=0
Read phaseProperties dictionary.
virtual void correct()
Correct the diameter field.
static autoPtr< diameterModel > New(const dictionary &diameterProperties, const phaseModel &phase)
const phaseModel & phase() const
Return the phase.
diameterModel(const dictionary &dict, const phaseModel &phase)
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
const dictionary & optionalSubDict(const word &keyword, enum keyType::option matchOpt=keyType::REGEX) const
Find and return a sub-dictionary, otherwise return this dictionary.
#define defineTypeNameAndDebug(Type, DebugSwitch)
Define the typeName and debug information.
#define FatalIOErrorInLookup(ios, lookupTag, lookupName, lookupTable)
Report an error message using Foam::FatalIOError.
messageStream Info
Information stream (stdout output on master, null elsewhere).
fileName::Type type(const fileName &name, const bool followLink=true)
Return the file type: DIRECTORY or FILE, normally following symbolic links.
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)
#define defineRunTimeSelectionTable(baseType, argNames)
Define run-time selection table.