43namespace surfaceFilmModels
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;
Macros for easy insertion into run-time selection tables.
#define addToRunTimeSelectionTable(baseType, thisType, argNames)
Add to construction table with typeName as the key.
virtual void correct()
Solve the turbulence equations and correct the turbulence viscosity.
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.
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.
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].
A class for managing temporary objects.
#define defineTypeNameAndDebug(Type, DebugSwitch)
Define the typeName and debug information.
constexpr scalar pi(M_PI)
label max(const labelHashSet &set, label maxValue=labelMin)
Find the max value in labelHashSet, optionally limited by second argument.
dimensionedScalar pow3(const dimensionedScalar &ds)
fileName::Type type(const fileName &name, const bool followLink=true)
Return the file type: DIRECTORY or FILE, normally following symbolic links.
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)
tmp< DimensionedField< TypeR, GeoMesh > > New(const tmp< DimensionedField< TypeR, GeoMesh > > &tdf1, const word &name, const dimensionSet &dimensions)
Global function forwards to reuseTmpDimensionedField::New.
#define forAll(list, i)
Loop across all elements in list.