34 namespace diameterModels
36 namespace nucleationModels
65 popBal_.fluid().phases()[
dict.lookup<
word>(
"reactingPhase")]
67 dmdtfName_(
dict.lookup(
"dmdtf")),
68 specieName_(
dict.lookup(
"specie"))
77 <<
"Nucleation diameter " << dNuc_.
value() <<
"m outside of range ["
94 const sizeGroup& fi = popBal_.sizeGroups()[i];
109 const scalar dmidtfSign =
110 interface.
index(velGroup_.phase()) == 0 ? +1 : -1;
113 popBal_.eta(i,
pi/6*
pow3(dNuc_))*dmidtfSign*dmidtf/
rho/fi.
x();
Macros for easy insertion into run-time selection tables.
const Mesh & mesh() const
Return mesh.
Generic GeometricField class.
static word groupName(Name name, const word &group)
Base class for nucleation models.
const dictionary & dict() const
Return reference to model dictionary.
const velocityGroup & velGroup_
Velocity group in which the nucleation occurs.
virtual void addToNucleationRate(volScalarField &nucleationRate, const label i)
Add to nucleationRate.
reactionDriven(const populationBalanceModel &popBal, const dictionary &dict)
Model for tracking the evolution of a dispersed phase size distribution due to coalescence (synonymou...
Single size class fraction field representing a fixed particle volume as defined by the user through ...
const dimensionedScalar & x() const
Return representative volume of the sizeGroup.
const phaseModel & phase() const
Return const-reference to the phase.
const PtrList< sizeGroup > & sizeGroups() const
Return sizeGroups belonging to this velocityGroup.
A list of keyword definitions, which are a keyword followed by any number of values (e....
const Type & value() const
Return const reference to value.
Class to represent an interface between phases. Derivations can further specify the configuration of ...
virtual word name() const
Name.
label index(const phaseModel &phase) const
Return the index of the given phase. Generates a FatalError if.
virtual const volScalarField & rho() const =0
Return the density field.
A class for handling words, derived from string.
#define FatalIOErrorInFunction(ios)
Report an error message using Foam::FatalIOError.
defineTypeNameAndDebug(reactionDriven, 0)
addToRunTimeSelectionTable(nucleationModel, reactionDriven, dictionary)
errorManipArg< error, int > exit(error &err, const int errNo=1)
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
dimensionedScalar pow3(const dimensionedScalar &ds)
const dimensionSet dimLength