39 namespace regionModels
41 namespace surfaceFilmModels
51 drippingInjection::drippingInjection
58 deltaStable_(
readScalar(coeffDict_.lookup(
"deltaStable"))),
59 particlesPerParcel_(
readScalar(coeffDict_.lookup(
"particlesPerParcel"))),
60 rndGen_(
label(0), -1),
65 coeffDict_.subDict(
"parcelDistribution"),
89 refCast<const kinematicSingleLayer>(this->
owner());
105 if (gNorm[i] > SMALL)
109 min(availableMass[i],
max(0.0, ddelta*rho[i]*magSf[i]));
117 if (massDrip[cellI] > 0)
126 scalar rhoc = rho[cellI];
129 if (massDrip[cellI] > minMass)
132 massToInject[cellI] += massDrip[cellI];
133 availableMass[cellI] -= massDrip[cellI];
136 diameterToInject[cellI] = diam;
146 massToInject[cellI] = 0.0;
147 diameterToInject[cellI] = 0.0;
152 massToInject[cellI] = 0.0;
153 diameterToInject[cellI] = 0.0;
dimensionedScalar pow3(const dimensionedScalar &ds)
void addToInjectedMass(const scalar dMass)
Add to injected mass.
const autoPtr< distributionModels::distributionModel > parcelDistribution_
Parcel size PDF model.
defineTypeNameAndDebug(kinematicSingleLayer, 0)
virtual const volScalarField & rho() const
Return the film density [kg/m3].
scalarList diameter_
Diameters of particles to inject into the dripping.
scalar deltaStable_
Stable film thickness - drips only formed if thickness.
Base class for film injection models, handling mass transfer from the film.
const volScalarField & delta() const
Return const access to the film thickness / [m].
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
addToRunTimeSelectionTable(surfaceFilmModel, kinematicSingleLayer, mesh)
const fvMesh & regionMesh() const
Return the region mesh database.
A list of keyword definitions, which are a keyword followed by any number of values (e...
const surfaceFilmModel & owner() const
Return const access to the owner surface film model.
scalar particlesPerParcel_
Number of particles per parcel.
dimensioned< Type > max(const dimensioned< Type > &, const dimensioned< Type > &)
bool readScalar(const char *buf, doubleScalar &s)
Read whole of buf as a scalar. Return true if succesful.
virtual const volScalarField & magSf() const
Return the face area magnitudes / [m2].
Macros for easy insertion into run-time selection tables.
static autoPtr< distributionModel > New(const dictionary &dict, cachedRandom &rndGen)
Selector.
fileName::Type type(const fileName &)
Return the file type: DIRECTORY or FILE.
tmp< volScalarField > gNorm() const
Return the gravity normal-to-patch component contribution.
Base class for surface film models.
virtual ~drippingInjection()
Destructor.
dimensioned< Type > min(const dimensioned< Type > &, const dimensioned< Type > &)
A class for managing temporary objects.