33 template<
class CloudType>
45 template<
class CloudType>
57 template<
class CloudType>
60 const typename parcelType::trackingData& td
63 auto&
c = this->owner();
65 auto* resultPtr =
c.template getObjectPtr<IOField<scalar>>(
"Re");
84 auto&
Re = *resultPtr;
88 typename parcelType::trackingData& nctd =
89 const_cast<typename parcelType::trackingData&
>(td);
94 const parcelType&
p = parcelIter();
96 scalar Ts, rhos, mus,
Pr, kappas;
97 p.template calcSurfaceValues<CloudType>
99 c, nctd,
p.T(), Ts, rhos, mus,
Pr, kappas
102 Re[parceli++] =
p.Re(rhos,
p.U(), td.Uc(),
p.d(), mus);
105 const bool haveParticles =
c.size();
108 Re.write(haveParticles);
dimensionedScalar Pr("Pr", dimless, laminarTransport)
void resize(const label len)
Adjust allocated size of list.
A list of keyword definitions, which are a keyword followed by a number of values (eg...
const dimensionedScalar re
Classical electron radius: default SI units: [m].
Calculates and writes particle Reynolds number field on the cloud. The normalisation factors are calc...
ThermoReynoldsNumber(const dictionary &dict, CloudType &owner, const word &modelName)
Construct from dictionary.
A class for handling words, derived from Foam::string.
scalarField Re(const UList< complex > &cmplx)
Extract real component.
const dimensionedScalar c
Speed of light in a vacuum.
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.
forAllConstIters(mixture.phases(), phase)
virtual void postEvolve(const typename parcelType::trackingData &td)
Post-evolve hook.