34 namespace diameterModels
49 const populationBalanceModel& popBal,
50 const dictionary& dict
53 driftModel(popBal, dict),
57 phaseInterface::iNew(popBal_.
fluid())
59 numberWeighted_(dict.lookupOrDefault<Switch>(
"numberWeighted", false)),
60 W_(interfaces_.size()),
61 dmdtfName_(dict.
lookup(
"dmdtf")),
62 specieName_(dict.lookupOrDefault(
"specie", word()))
102 HashTable<const velocityGroup*>,
107 const velocityGroup& velGrp = *iter();
109 if (interfaces_[
k].contains(velGrp.phase()))
111 forAll(velGrp.sizeGroups(), i)
113 const sizeGroup& fi = velGrp.sizeGroups()[i];
117 W_[
k] += fi*
max(fi.phase(), small)/fi.x();
121 W_[
k] += fi*
max(fi.phase(), small)/fi.x()*fi.a();
140 if (interfaces_[
k].contains(velGrp.phase()))
152 interfaces_[
k].
name()
156 const scalar dmidtfSign =
157 interfaces_[
k].index(velGrp.phase()) == 0 ? +1 : -1;
161 tmp<volScalarField> dDriftRate
163 dmidtfSign*dmidtf/(fi.phase().rho()*W_[
k])
166 if (!numberWeighted_)
168 dDriftRate.ref() *= fi.a();
171 driftRate += velGrp.phase()*dDriftRate;
#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.
virtual void addToDriftRate(volScalarField &driftRate, const label i)
Add to driftRate.
#define forAllConstIter(Container, container, iter)
Iterate across all elements in the container object of type.
dimensionedSphericalTensor inv(const dimensionedSphericalTensor &dt)
virtual void precompute()
Precompute diameter independent expressions.
const populationBalanceModel & popBal_
Reference to the populationBalanceModel.
twoPhaseChangeModel & phaseChange
label k
Boltzmann constant.
const Time & time() const
Return the top-level database.
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 dimensionSet dimLength
phaseChange(const populationBalanceModel &popBal, const dictionary &dict)
Construct from a population balance model and a dictionary.
GeometricField< scalar, fvPatchField, volMesh > volScalarField
stressControl lookup("compactNormalStress") >> compactNormalStress
static word timeName(const scalar, const int precision=curPrecision_)
Return time name of given scalar time.
static word groupName(Name name, const word &group)
addToRunTimeSelectionTable(ensightPart, ensightPartCells, istream)
defineTypeNameAndDebug(combustionModel, 0)
const UPtrList< sizeGroup > & sizeGroups() const
Return the size groups belonging to this populationBalance.
word name(const complex &)
Return a string representation of a complex.
dimensioned< scalar > dimensionedScalar
Dimensioned scalar obtained from generic dimensioned type.
fileType type(const fileName &, const bool checkVariants=true, const bool followLink=true)
Return the file type: directory or file.
const dimensionSet dimVolume
const fvMesh & mesh() const
Return reference to the mesh.
const HashTable< const velocityGroup * > & velocityGroupPtrs() const
Return the velocity groups belonging to this populationBalance.