33 template<
class CloudType>
45 template<
class CloudType>
57 template<
class CloudType>
60 const typename parcelType::trackingData& td
63 const auto&
c = this->owner();
65 auto* resultPtr =
c.template getObjectPtr<IOField<scalar>>(
"We");
84 auto& We = *resultPtr;
88 const auto&
thermo =
c.db().template lookupObject<SLGThermo>(
"SLGThermo");
89 const auto& liquids =
thermo.liquids();
91 const auto& UInterp = td.UInterp();
92 const auto&
pInterp = td.pInterp();
93 const auto& rhoInterp = td.rhoInterp();
98 const parcelType&
p = parcelIter();
100 const auto& coords =
p.coordinates();
101 const auto& tetIs =
p.currentTetIndices();
103 const vector Uc(UInterp.interpolate(coords, tetIs));
108 pInterp.interpolate(coords, tetIs),
109 c.constProps().pMin()
112 const scalar rhoc(rhoInterp.interpolate(coords, tetIs));
114 const scalar
sigma = liquids.sigma(pc,
p.T(), X);
119 const bool haveParticles =
c.size();
122 We.write(haveParticles);
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.
dimensionedScalar sigma("sigma", dimMass/sqr(dimTime), transportProperties)
psiReactionThermo & thermo
A class for handling words, derived from Foam::string.
Field< scalar > scalarField
Specialisation of Field<T> for scalar.
Creates particle Weber number field on the cloud.
virtual void postEvolve(const typename parcelType::trackingData &td)
Post-evolve hook.
const dimensionedScalar c
Speed of light in a vacuum.
WeberNumberReacting(const dictionary &dict, CloudType &owner, const word &modelName)
Construct from dictionary.
bool returnReduceOr(const bool value, const label comm=UPstream::worldComm)
Perform logical (or) MPI Allreduce on a copy. Uses UPstream::reduceOr.
Defines the attributes of an object for which implicit objectRegistry management is supported...
Templated base class for dsmc cloud.
Templated cloud function object base class.
A primitive field of type <T> with automated input and output.
dimensioned< typename typeOfMag< Type >::type > magSqr(const dimensioned< Type > &dt)
forAllConstIters(mixture.phases(), phase)
autoPtr< volPointInterpolation > pInterp