34 namespace diameterModels
36 namespace nucleationModels
55 const populationBalanceModel& popBal,
56 const dictionary&
dict 59 nucleationModel(popBal, dict),
65 popBal.
mesh().lookupObject<phaseModel>
70 dict.
lookup(
"velocityGroup")
84 d_.value() < velGroup_.sizeGroups().first().d().value()
85 || d_.value() > velGroup_.sizeGroups().last().d().value()
89 <<
"Departure diameter " << d_.value() <<
" m outside of range [" 90 << velGroup_.sizeGroups().first().d().value() <<
", " 91 << velGroup_.sizeGroups().last().d().value() <<
"] m" <<
endl 92 <<
" The nucleation rate is set to zero." <<
endl 93 <<
" Adjust discretization over property space to suppress this" 107 const sizeGroup& fi = *popBal_.sizeGroups()[i];
108 phaseModel& phase =
const_cast<phaseModel&
>(fi.phase());
112 popBal_.gamma(i, velGroup_.formFactor()*
pow3(d_))
113 *(popBal_.fluid().fvOptions()(
phase,
rho)&rho)/rho/fi.x();
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
To & refCast(From &r)
Reference type cast template function.
Ostream & endl(Ostream &os)
Add newline and flush stream.
Macros for easy insertion into run-time selection tables.
virtual void addToNucleationRate(volScalarField &nucleationRate, const label i)
Add to nucleationRate.
virtual void correct()
Correct diameter independent expressions.
GeometricField< scalar, fvPatchField, volMesh > volScalarField
stressControl lookup("compactNormalStress") >> compactNormalStress
const phaseModel & phase() const
addToRunTimeSelectionTable(ensightPart, ensightPartCells, istream)
defineTypeNameAndDebug(combustionModel, 0)
dimensionedScalar pow3(const dimensionedScalar &ds)
#define WarningInFunction
Report a warning using Foam::Warning.
const dimensionSet dimLength(0, 1, 0, 0, 0, 0, 0)
constantNucleation(const populationBalanceModel &popBal, const dictionary &dict)