48 diameterProperties_(
dict),
64 Info<<
"Selecting diameterModel for phase "
69 auto* ctorPtr = dictionaryConstructorTable(modelType);
78 *dictionaryConstructorTablePtr_
84 dict.optionalSubDict(modelType +
"Coeffs"),
98 diameterProperties_ =
dict.optionalSubDict(
type() +
"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)
const phaseModel & phase_
dictionary diameterProperties_
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Single incompressible phase derived from the phase-fraction. Used as part of the multiPhaseMixture fo...
Single incompressible phase derived from the phase-fraction. Used as part of the multiPhaseMixture fo...
const word & name() const
A class for handling words, derived from Foam::string.
#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.
errorManip< error > abort(error &err)
IOerror FatalIOError
Error stream (stdout output on all processes), with additional 'FOAM FATAL IO ERROR' header text and ...
#define defineRunTimeSelectionTable(baseType, argNames)
Define run-time selection table.