33template<
class CloudType>
45template<
class CloudType>
57template<
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();
93 const auto& rhoInterp =
td.rhoInterp();
96 for (
const parcelType&
p : c)
98 const auto& coords =
p.coordinates();
99 const auto& tetIs =
p.currentTetIndices();
101 const vector Uc(UInterp.interpolate(coords, tetIs));
106 pInterp.interpolate(coords, tetIs),
107 c.constProps().pMin()
110 const scalar rhoc(rhoInterp.interpolate(coords, tetIs));
112 const scalar
sigma = liquids.sigma(pc,
p.T(), X);
117 const bool haveParticles =
c.size();
120 We.write(haveParticles);
CloudFunctionObject(CloudType &owner)
Construct null from owner.
const CloudType & owner() const
Return const access to the owner cloud.
particle::trackingData trackingData
A primitive field of type <T> with automated input and output.
@ REGISTER
Request registration (bool: true).
@ NO_READ
Nothing to be read.
@ NO_WRITE
Ignore writing from objectRegistry::writeObject().
Defines the attributes of an object for which implicit objectRegistry management is supported,...
Creates particle Weber number field on the cloud.
ReactingWeberNumber(const dictionary &dict, CloudType &owner, const word &modelName)
Construct from dictionary.
virtual void postEvolve(const typename parcelType::trackingData &td)
Post-evolve hook.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
const dictionary & dict() const
Return const access to the cloud dictionary.
const word & modelName() const
Return const access to the name of the sub-model.
Basic thermodynamics type based on the use of fitting functions for cp, h, s obtained from the templa...
A Vector of values with scalar precision, where scalar is float/double depending on the compilation f...
A class for handling words, derived from Foam::string.
autoPtr< volPointInterpolation > pInterp
wallPoints::trackData td(isBlockedFace, regionToBlockSize)
const dimensionedScalar c
Speed of light in a vacuum.
bool returnReduceOr(const bool value, const int communicator=UPstream::worldComm)
Perform logical (or) MPI Allreduce on a copy. Uses UPstream::reduceOr.
label max(const labelHashSet &set, label maxValue=labelMin)
Find the max value in labelHashSet, optionally limited by second argument.
DSMCCloud< dsmcParcel > CloudType
Field< scalar > scalarField
Specialisation of Field<T> for scalar.
const word GlobalIOList< Tuple2< scalar, vector > >::typeName("scalarVectorTable")
dimensioned< typename typeOfMag< Type >::type > magSqr(const dimensioned< Type > &dt)
dimensionedScalar sigma("sigma", dimMass/sqr(dimTime), transportProperties)