32template<
class CloudType>
44template<
class CloudType>
56template<
class CloudType>
59 const typename parcelType::trackingData&
td
62 auto& c = this->owner();
64 auto* resultPtr = c.template getObjectPtr<IOField<scalar>>(
"Re");
83 auto&
Re = *resultPtr;
88 for (
const parcelType&
p : c)
90 Re[parceli++] =
p.Re(
td);
93 const bool haveParticles =
c.size();
96 Re.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,...
Calculates and writes particle Reynolds number field on the cloud. The normalisation factors are calc...
KinematicReynoldsNumber(const dictionary &dict, CloudType &owner, const word &modelName)
Construct from dictionary.
virtual void postEvolve(const typename parcelType::trackingData &td)
Post-evolve hook.
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 dictionary & dict() const
Return const access to the cloud dictionary.
const word & modelName() const
Return const access to the name of the sub-model.
A class for handling words, derived from Foam::string.
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.
DSMCCloud< dsmcParcel > CloudType
const word GlobalIOList< Tuple2< scalar, vector > >::typeName("scalarVectorTable")
scalarField Re(const UList< complex > &cmplx)
Extract real component.