57 const populationBalanceModel& popBal,
61 nucleationModel(popBal,
dict),
86 d_.value() < velGroup_.sizeGroups().first().d().value()
87 || d_.value() > velGroup_.sizeGroups().last().d().value()
91 <<
"Departure diameter " << d_.value() <<
" m outside of range ["
92 << velGroup_.sizeGroups().first().d().value() <<
", "
93 << velGroup_.sizeGroups().last().d().value() <<
"] m" <<
endl
94 <<
" The nucleation rate is set to zero." <<
endl
95 <<
" Adjust discretization over property space to suppress this"
109 const sizeGroup& fi = popBal_.sizeGroups()[i];
114 popBal_.gamma(i, velGroup_.formFactor()*
pow3(d_))
Macros for easy insertion into run-time selection tables.
#define addToRunTimeSelectionTable(baseType, thisType, argNames)
Add to construction table with typeName as the key.
Defines the attributes of an object for which implicit objectRegistry management is supported,...
Base class for nucleation models.
const populationBalanceModel & popBal() const
Return reference to the populationBalanceModel.
nucleationModel(const populationBalanceModel &popBal, const dictionary &dict)
const populationBalanceModel & popBal_
Reference to the populationBalanceModel.
Constant nucleation rate within all classes. Used for verification and validation of the nucleation f...
virtual void correct()
Correct diameter independent expressions.
virtual void addToNucleationRate(volScalarField &nucleationRate, const label i)
Add to nucleationRate.
constantNucleation(const populationBalanceModel &popBal, const dictionary &dict)
Class that solves the univariate population balance equation by means of a class method (also called ...
This class represents a single sizeGroup belonging to a velocityGroup. The main property of a sizeGro...
const dimensionedScalar & x() const
Return representative volume of the sizeGroup.
const phaseModel & phase() const
Return const-reference to the phase.
This diameterModel is intended for use with a populationBalanceModel in order to simulate polydispers...
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 dimensionedScalar & rho() const
Return const-access to phase1 density.
A class for handling words, derived from Foam::string.
#define defineTypeNameAndDebug(Type, DebugSwitch)
Define the typeName and debug information.
#define WarningInFunction
Report a warning using Foam::Warning.
Type & refCast(U &obj)
A dynamic_cast (for references) to Type reference.
const dimensionSet dimLength(0, 1, 0, 0, 0, 0, 0)
dimensionedScalar pow3(const dimensionedScalar &ds)
GeometricField< scalar, fvPatchField, volMesh > volScalarField
Ostream & endl(Ostream &os)
Add newline and flush stream.