41 namespace regionModels
43 namespace surfaceFilmModels
53 drippingInjection::drippingInjection
60 deltaStable_(coeffDict_.
get<scalar>(
"deltaStable")),
61 particlesPerParcel_(coeffDict_.
get<scalar>(
"particlesPerParcel")),
67 coeffDict_.subDict(
"parcelDistribution"),
71 diameter_(film.regionMesh().nCells(), -1.0)
91 refCast<const kinematicSingleLayer>(this->
film());
107 if (gNorm[i] > SMALL)
111 min(availableMass[i],
max(0.0, ddelta*
rho[i]*magSf[i]));
119 if (massDrip[celli] > 0)
128 scalar rhoc =
rho[celli];
131 if (massDrip[celli] > minMass)
134 massToInject[celli] += massDrip[celli];
135 availableMass[celli] -= massDrip[celli];
138 diameterToInject[celli] = diam;
148 massToInject[celli] = 0.0;
149 diameterToInject[celli] = 0.0;
154 massToInject[celli] = 0.0;
155 diameterToInject[celli] = 0.0;
List< ReturnType > get(const UPtrList< T > &list, const AccessOp &aop)
List of values generated by applying the access operation to each list item.
virtual ~drippingInjection()
Destructor.
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 a number of values (eg...
label max(const labelHashSet &set, label maxValue=labelMin)
Find the max value in labelHashSet, optionally limited by second argument.
tmp< DimensionedField< TypeR, GeoMesh > > New(const tmp< DimensionedField< TypeR, GeoMesh >> &tf1, const word &name, const dimensionSet &dimensions, const bool initCopy=false)
Global function forwards to reuseTmpDimensionedField::New.
virtual const volScalarField & rho() const =0
Return the film density [kg/m3].
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.
#define forAll(list, i)
Loop across all elements in list.
fileName::Type type(const fileName &name, const bool followLink=true)
Return the file type: DIRECTORY or FILE, normally following symbolic links.
scalar particlesPerParcel_
Number of particles per parcel.
const autoPtr< distributionModel > parcelDistribution_
Parcel size PDF model.
Film dripping mass transfer model.
scalarList diameter_
Diameters of particles to inject into the dripping.
virtual const volScalarField & delta() const =0
Return the film thickness [m].
const fvMesh & regionMesh() const
Return the region mesh database.
constexpr scalar pi(M_PI)
label min(const labelHashSet &set, label minValue=labelMax)
Find the min value in labelHashSet, optionally limited by second argument.
void addToInjectedMass(const scalar dMass)
Add to injected mass.
Base class for film injection models, handling mass transfer from the film.
dimensionedScalar pow3(const dimensionedScalar &ds)
virtual const volScalarField & magSf() const
Return the face area magnitudes / [m2].
label nCells() const noexcept
Number of mesh cells.
A library of runtime-selectable doubly-truncated probability distribution models. Returns random samp...
A class for managing temporary objects.
defineTypeNameAndDebug(kinematicSingleLayer, 0)
static constexpr const zero Zero
Global zero (0)