35 namespace diameterModels
37 namespace nucleationModels
56 const populationBalanceModel& popBal,
57 const dictionary&
dict 60 nucleationModel(popBal, dict)
76 typedef compressible::alphatWallBoilingWallFunctionFvPatchScalarField
77 alphatWallBoilingWallFunction;
83 isA<alphatWallBoilingWallFunction>(alphatBf[patchi])
86 const alphatWallBoilingWallFunction& alphatw =
87 refCast<const alphatWallBoilingWallFunction>(alphatBf[
patchi]);
94 <<
"Minimum departure diameter " <<
min(dDep)
95 <<
" m outside of range [" 98 <<
" at patch " << alphatw.patch().name()
100 <<
" The nucleation rate in populationBalance " 102 <<
" Adjust discretisation over property space to" 103 <<
" suppress this warning." 109 <<
"Maximum departure diameter " <<
max(dDep)
110 <<
" m outside of range [" 113 <<
" at patch " << alphatw.patch().name()
115 <<
" The nucleation rate in populationBalance " 117 <<
" Adjust discretisation over property space to" 118 <<
" suppress this warning." 134 const phaseModel& phase = fi.phase();
145 typedef compressible::alphatWallBoilingWallFunctionFvPatchScalarField
146 alphatWallBoilingWallFunction;
152 isA<alphatWallBoilingWallFunction>(alphatBf[patchi])
155 const alphatWallBoilingWallFunction& alphatw =
156 refCast<const alphatWallBoilingWallFunction>(alphatBf[
patchi]);
161 const labelList& faceCells = alphatw.patch().faceCells();
167 if (dmdt[facei] > small)
169 const label faceCelli = faceCells[facei];
171 nucleationRate[faceCelli] +=
175 fi.x()/
pow3(fi.dSph())*
pow3(dDep[facei]*unitLength)
177 *dmdt[facei]/rho[faceCelli]/fi.x().
value();
#define forAll(list, i)
Loop across all elements in list.
layerAndWeight max(const layerAndWeight &a, const layerAndWeight &b)
FvWallInfoData< WallInfo, label > label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
const word & name() const
Return name.
const velocityGroup & velGroup_
Velocity group in which the nucleation occurs.
Ostream & endl(Ostream &os)
Add newline and flush stream.
const word & name() const
const populationBalanceModel & popBal_
Reference to the populationBalanceModel.
GeometricBoundaryField< scalar, fvPatchField, volMesh > Boundary
Type of the boundary field.
const Type & lookupObject(const word &name) const
Lookup and return the object of the given Type.
Macros for easy insertion into run-time selection tables.
const dimensionedScalar eta(const label i, const dimensionedScalar &v) const
Return allocation coefficient.
const dimensionSet dimLength
GeometricField< scalar, fvPatchField, volMesh > volScalarField
const phaseModel & continuousPhase() const
Return continuous phase.
Field< scalar > scalarField
Specialisation of Field<T> for scalar.
static word groupName(Name name, const word &group)
virtual void precompute()
Precompute diameter independent expressions.
const Type & value() const
Return const reference to value.
layerAndWeight min(const layerAndWeight &a, const layerAndWeight &b)
List< label > labelList
A List of labels.
virtual void addToNucleationRate(volScalarField &nucleationRate, const label i)
Add to nucleationRate.
addToRunTimeSelectionTable(ensightPart, ensightPartCells, istream)
defineTypeNameAndDebug(combustionModel, 0)
const UPtrList< sizeGroup > & sizeGroups() const
Return the size groups belonging to this populationBalance.
dimensionedScalar pow3(const dimensionedScalar &ds)
dimensioned< scalar > dimensionedScalar
Dimensioned scalar obtained from generic dimensioned type.
wallBoiling(const populationBalanceModel &popBal, const dictionary &dict)
const PtrList< sizeGroup > & sizeGroups() const
Return sizeGroups belonging to this velocityGroup.
const fvMesh & mesh() const
Return reference to the mesh.