33template<
class CloudType>
45template<
class CloudType>
57template<
class CloudType>
63 const auto& c = this->owner();
82 auto& We = c.template lookupObjectRef<IOField<scalar>>(
"We");
85 const auto&
thermo = c.db().template lookupObject<SLGThermo>(
"SLGThermo");
86 const auto& liquids =
thermo.liquids();
88 const auto& UInterp = td.UInterp();
89 const auto&
pInterp = td.pInterp();
90 const auto& rhoInterp = td.rhoInterp();
95 const parcelType&
p = parcelIter();
97 const auto& coords =
p.coordinates();
98 const auto& tetIs =
p.currentTetIndices();
100 const vector Uc(UInterp.interpolate(coords, tetIs));
105 pInterp.interpolate(coords, tetIs),
106 c.constProps().pMin()
109 const scalar rhoc(rhoInterp.interpolate(coords, tetIs));
111 const scalar sigma = liquids.sigma(pc,
p.
T(), X);
113 We[parceli++] = rhoc*
magSqr(
p.U() - Uc)*
p.d()/sigma;
117 if (c.size() && c.time().writeTime())
Templated cloud function object base class.
Templated base class for dsmc cloud.
tmp< GeometricField< Type, PatchField, GeoMesh > > T() const
Return transpose (only if it is a tensor field)
A primitive field of type <T> with automated input and output.
Defines the attributes of an object for which implicit objectRegistry management is supported,...
virtual void postEvolve()
Post-evolve hook.
Creates particle Weber number field on the cloud.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Class used to pass data into container.
Basic thermodynamics type based on the use of fitting functions for cp, h, s obtained from the templa...
A class for handling words, derived from Foam::string.
autoPtr< volPointInterpolation > pInterp
label max(const labelHashSet &set, label maxValue=labelMin)
Find the max value in labelHashSet, optionally limited by second argument.
dimensioned< typename typeOfMag< Type >::type > magSqr(const dimensioned< Type > &dt)
#define forAllConstIters(container, iter)
Iterate across all elements of the container object with const access.