44 const dictionary&
dict,
45 const phaseModel& phase
48 diameterProperties_(
dict),
58 const dictionary&
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_
virtual bool read()
Re-read model coefficients if they have changed.
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.
virtual void correct()
Correct the diameter field.
const phaseModel & phase() const
Return the phase.
T get(const word &keyword, enum keyType::option matchOpt=keyType::REGEX) const
const dictionary & optionalSubDict(const word &keyword, enum keyType::option matchOpt=keyType::REGEX) const
Find and return a sub-dictionary, otherwise return this dictionary.
Abstract base-class for dispersed-phase particle diameter models.
const word & name() const
#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.
errorManipArg< error, int > exit(error &err, const int errNo=1)
#define defineRunTimeSelectionTable(baseType, argNames)
Define run-time selection table.