39 namespace regionModels
41 namespace surfaceFilmModels
51 drippingInjection::drippingInjection
58 deltaStable_(
readScalar(coeffDict_.lookup(
"deltaStable"))),
59 particlesPerParcel_(
readScalar(coeffDict_.lookup(
"particlesPerParcel"))),
65 coeffDict_.subDict(
"parcelDistribution"),
89 refCast<const kinematicSingleLayer>(this->
film());
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;
virtual ~drippingInjection()
Destructor.
#define forAll(list, i)
Loop across all elements in list.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
Base class for surface film models.
Kinematic form of single-cell layer surface film model.
A list of keyword definitions, which are a keyword followed by any number of values (e...
dimensioned< Type > max(const dimensioned< Type > &, const dimensioned< Type > &)
tmp< volScalarField > gNorm() const
Return the gravity normal-to-patch component contribution.
addToRunTimeSelectionTable(surfaceFilmRegionModel, kinematicSingleLayer, mesh)
Macros for easy insertion into run-time selection tables.
const surfaceFilmRegionModel & film() const
Return const access to the film surface film model.
scalar deltaStable_
Stable film thickness - drips only formed if thickness.
scalar particlesPerParcel_
Number of particles per parcel.
const autoPtr< distributionModel > parcelDistribution_
Parcel size PDF model.
scalarList diameter_
Diameters of particles to inject into the dripping.
const fvMesh & regionMesh() const
Return the region mesh database.
bool readScalar(const char *buf, doubleScalar &s)
Read whole of buf as a scalar. Return true if successful.
void addToInjectedMass(const scalar dMass)
Add to injected mass.
Base class for film injection models, handling mass transfer from the film.
const volScalarField & delta() const
Return const access to the film thickness [m].
dimensioned< Type > min(const dimensioned< Type > &, const dimensioned< Type > &)
fileName::Type type(const fileName &, const bool followLink=true)
Return the file type: DIRECTORY or FILE.
dimensionedScalar pow3(const dimensionedScalar &ds)
virtual const volScalarField & magSf() const
Return the face area magnitudes / [m2].
static autoPtr< distributionModel > New(const dictionary &dict, Random &rndGen)
Selector.
virtual const volScalarField & rho() const
Return the film density [kg/m3].
A class for managing temporary objects.
defineTypeNameAndDebug(kinematicSingleLayer, 0)