37 namespace diameterModels
39 namespace nucleationModels
84 popBal_.continuousPhase().
name()
99 alphatWallBoilingWallFunction;
105 isA<alphatWallBoilingWallFunction>(alphatBf[patchi])
108 const alphatWallBoilingWallFunction& alphatw =
109 refCast<const alphatWallBoilingWallFunction>(alphatBf[patchi]);
113 if (
min(dDep) < velGroup_.sizeGroups().first().d().value())
116 <<
"Minimum departure diameter " <<
min(dDep)
117 <<
" m outside of range [" 118 << velGroup_.sizeGroups().first().d().value() <<
", " 119 << velGroup_.sizeGroups().last().d().value() <<
"] m" 120 <<
" at patch " << alphatw.patch().name()
122 <<
" The nucleation rate in populationBalance " 123 << popBal_.
name() <<
" is set to zero." <<
endl 124 <<
" Adjust discretization over property space to" 125 <<
" suppress this warning." 128 else if (
max(dDep) > velGroup_.sizeGroups().last().d().value())
131 <<
"Maximum departure diameter " <<
max(dDep)
132 <<
" m outside of range [" 133 << velGroup_.sizeGroups().first().d().value() <<
", " 134 << velGroup_.sizeGroups().last().d().value() <<
"] m" 135 <<
" at patch " << alphatw.patch().name()
137 <<
" The nucleation rate in populationBalance " 138 << popBal_.
name() <<
" is set to zero." <<
endl 139 <<
" Adjust discretization over property space to" 140 <<
" suppress this warning." 155 const sizeGroup& fi = popBal_.sizeGroups()[i];
163 alphatWallBoilingWallFunction;
169 isA<alphatWallBoilingWallFunction>(alphatBf[patchi])
172 const alphatWallBoilingWallFunction& alphatw =
173 refCast<const alphatWallBoilingWallFunction>(alphatBf[patchi]);
184 if (dmdt[facei] > SMALL)
186 const label faceCelli =
faceCells[facei];
188 nucleationRate[faceCelli] +=
192 velGroup_.formFactor()*
pow3(dDep[facei]*unitLength)
194 *dmdt[facei]/
rho[faceCelli]/fi.x().value();
List< ReturnType > get(const UPtrList< T > &list, const AccessOp &aop)
List of values generated by applying the access operation to each list item.
addToRunTimeSelectionTable(nucleationModel, constantNucleation, dictionary)
const dimensionedScalar & rho() const
Return const-access to phase1 density.
virtual const fileName & name() const
The name of the stream.
A list of keyword definitions, which are a keyword followed by a number of values (eg...
Class that solves the univariate population balance equation by means of a class method (also called ...
label max(const labelHashSet &set, label maxValue=labelMin)
Find the max value in labelHashSet, optionally limited by second argument.
Type & refCast(U &obj)
A dynamic_cast (for references) to Type reference.
Ostream & endl(Ostream &os)
Add newline and flush stream.
tmp< volScalarField > trho
virtual void addToNucleationRate(volScalarField &nucleationRate, const label i)
Add to nucleationRate.
virtual void correct()
Correct diameter independent expressions.
This diameterModel is intended for use with a populationBalanceModel in order to simulate polydispers...
Smooth ATC in cells next to a set of patches supplied by type.
Abstract base class for turbulence models (RAS, LES and laminar).
Macros for easy insertion into run-time selection tables.
#define forAll(list, i)
Loop across all elements in list.
A thermal wall function for simulation of boiling wall.
Base class for nucleation models.
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for expressions::valueTypeCode::INVALID.
A class for handling words, derived from Foam::string.
phase(const word &name, const dictionary &phaseDict, const volVectorField &U, const surfaceScalarField &phi)
Construct from components.
label min(const labelHashSet &set, label minValue=labelMax)
Find the min value in labelHashSet, optionally limited by second argument.
defineTypeNameAndDebug(constantNucleation, 0)
messageStream Warning
Warning stream (stdout output on master, null elsewhere), with additional 'FOAM Warning' header text...
dimensionedScalar pow3(const dimensionedScalar &ds)
const dimensionSet dimLength(0, 1, 0, 0, 0, 0, 0)
wallBoiling(const populationBalanceModel &popBal, const dictionary &dict)
Single incompressible phase derived from the phase-fraction. Used as part of the multiPhaseMixture fo...
A class for managing temporary objects.
Defines the attributes of an object for which implicit objectRegistry management is supported...
Single incompressible phase derived from the phase-fraction. Used as part of the multiPhaseMixture fo...