53drippingInjection::drippingInjection
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;
constexpr scalar pi(M_PI)
Macros for easy insertion into run-time selection tables.
#define addToRunTimeSelectionTable(baseType, thisType, argNames)
Add to construction table with typeName as the key.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
A library of runtime-selectable doubly-truncated probability distribution models. Returns random samp...
label nCells() const noexcept
Number of mesh cells.
const fvMesh & regionMesh() const
Return the region mesh database.
virtual const volScalarField & magSf() const
Return the face area magnitudes / [m2].
Film dripping mass transfer model.
scalar particlesPerParcel_
Number of particles per parcel.
scalar deltaStable_
Stable film thickness - drips only formed if thickness.
virtual ~drippingInjection()
Destructor.
Random rndGen_
Random number generator.
const autoPtr< distributionModel > parcelDistribution_
Parcel size PDF model.
scalarList diameter_
Diameters of particles to inject into the dripping.
const surfaceFilmRegionModel & film() const
Return const access to the film surface film model.
Base class for film injection models, handling mass transfer from the film.
void addToInjectedMass(const scalar dMass)
Add to injected mass.
static autoPtr< injectionModel > New(surfaceFilmRegionModel &film, const dictionary &dict, const word &mdoelType)
Return a reference to the selected injection model.
Kinematic form of single-cell layer surface film model.
Base class for surface film models.
virtual const volScalarField & rho() const =0
Return the film density [kg/m3].
virtual const volScalarField & delta() const =0
Return the film thickness [m].
const dictionary coeffDict_
Coefficients dictionary.
const dictionary & dict() const
Return const access to the cloud dictionary.
A class for managing temporary objects.
#define defineTypeNameAndDebug(Type, DebugSwitch)
Define the typeName and debug information.
constexpr scalar pi(M_PI)
Type & refCast(U &obj)
A dynamic_cast (for references) to Type reference.
label max(const labelHashSet &set, label maxValue=labelMin)
Find the max value in labelHashSet, optionally limited by second argument.
dimensionedScalar pow3(const dimensionedScalar &ds)
Field< scalar > scalarField
Specialisation of Field<T> for scalar.
label min(const labelHashSet &set, label minValue=labelMax)
Find the min value in labelHashSet, optionally limited by second argument.
static constexpr const zero Zero
Global zero (0).
#define forAll(list, i)
Loop across all elements in list.