37namespace diameterModels
39namespace nucleationModels
55Foam::diameterModels::nucleationModels::wallBoiling::
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];
162 alphatWallBoilingWallFunction;
168 isA<alphatWallBoilingWallFunction>(alphatBf[patchi])
171 const alphatWallBoilingWallFunction& alphatw =
172 refCast<const alphatWallBoilingWallFunction>(alphatBf[patchi]);
183 if (dmdt[facei] > SMALL)
185 const label faceCelli =
faceCells[facei];
187 nucleationRate[faceCelli] +=
191 velGroup_.formFactor()*
pow3(dDep[facei]*unitLength)
193 *dmdt[facei]/
rho[faceCelli]/fi.
x().
value();
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,...
virtual const fileName & name() const
Return the name of the stream.
A thermal wall function for simulation of boiling wall.
Base class for nucleation models.
Wall-boiling model which requires a velocityGroup (i.e. phase) to be specified in which the nucleatio...
virtual void correct()
Correct diameter independent expressions.
virtual void addToNucleationRate(volScalarField &nucleationRate, const label i)
Add to nucleationRate.
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,...
const Type & value() const
Return const reference to value.
Smooth ATC in cells next to a set of patches supplied by type.
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 managing temporary objects.
Abstract base class for turbulence models (RAS, LES and laminar).
A class for handling words, derived from Foam::string.
#define defineTypeNameAndDebug(Type, DebugSwitch)
Define the typeName and debug information.
label max(const labelHashSet &set, label maxValue=labelMin)
Find the max value in labelHashSet, optionally limited by second argument.
To & refCast(From &r)
Reference type cast template function.
const dimensionSet dimLength(0, 1, 0, 0, 0, 0, 0)
dimensionedScalar pow3(const dimensionedScalar &ds)
Ostream & endl(Ostream &os)
Add newline and flush stream.
label min(const labelHashSet &set, label minValue=labelMax)
Find the min value in labelHashSet, optionally limited by second argument.
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for INVALID.
#define forAll(list, i)
Loop across all elements in list.