34 namespace diameterModels
56 dict.lookup(
"interfaces"),
59 numberWeighted_(
dict.lookupOrDefault<
Switch>(
"numberWeighted", false)),
60 W_(interfaces_.size()),
61 dmdtfName_(
dict.lookup(
"dmdtf")),
62 specieName_(
dict.lookupOrDefault(
"specie",
word()))
104 if (!isA<velocityGroup>(phase.
diameter()))
continue;
107 refCast<const velocityGroup>(phase.
diameter());
137 if (interfaces_[
k].contains(velGrp.
phase()))
149 interfaces_[
k].
name()
153 const scalar dmidtfSign =
154 interfaces_[
k].index(velGrp.
phase()) == 0 ? +1 : -1;
156 const sizeGroup& fi = popBal_.sizeGroups()[i];
160 dmidtfSign*dmidtf/(fi.
phase().
rho()*W_[
k])
163 if (!numberWeighted_)
165 dDriftRate.
ref() *= fi.
a();
168 driftRate += velGrp.
phase()*dDriftRate;
#define forAll(list, i)
Loop across all elements in list.
#define forAllConstIter(Container, container, iter)
Iterate across all elements in the container object of type.
Macros for easy insertion into run-time selection tables.
const Mesh & mesh() const
Return mesh.
Generic GeometricField class.
IOobject defines the attributes of an object for which implicit objectRegistry management is supporte...
static word groupName(Name name, const word &group)
A simple wrapper around bool so that it can be read as a word: true/false, on/off,...
const phaseModel & phase() const
Return the phase.
Class used for the read-construction of.
Base class for drift models.
const populationBalanceModel & popBal_
Reference to the populationBalanceModel.
Drift induced by phase change. By default phase change mass flux is distributed between sizeGroups of...
virtual void precompute()
Precompute diameter independent expressions.
phaseChange(const populationBalanceModel &popBal, const dictionary &dict)
Construct from a population balance model and a dictionary.
virtual void addToDriftRate(volScalarField &driftRate, const label i)
Add to driftRate.
Model for tracking the evolution of a dispersed phase size distribution due to coalescence (synonymou...
const fvMesh & mesh() const
Return reference to the mesh.
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 tmp< volScalarField > a() const
Return representative surface area of the sizeGroup.
const phaseModel & phase() const
Return const-reference to the phase.
Computes the Sauter mean diameter based on a user specified size distribution, defined in terms of si...
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 word & name() const
Return const reference to name.
const Time & time() const
Return the top-level database.
Class to represent an interface between phases. Derivations can further specify the configuration of ...
const diameterModel & diameter() const
Return a reference to the diameterModel of the phase.
virtual const volScalarField & rho() const =0
Return the density field.
A class for managing temporary objects.
T & ref() const
Return non-const reference or generate a fatal error.
A class for handling words, derived from string.
addToRunTimeSelectionTable(driftModel, constantDrift, dictionary)
defineTypeNameAndDebug(constantDrift, 0)
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
word name(const bool)
Return a word representation of a bool.
const dimensionSet dimLength
const dimensionSet dimVolume
word typedName(Name name)
Return the name of the object within the given type.
layerAndWeight max(const layerAndWeight &a, const layerAndWeight &b)
dimensionedSphericalTensor inv(const dimensionedSphericalTensor &dt)