33 template<
class CloudType>
45 template<
class CloudType>
57 template<
class CloudType>
60 const typename parcelType::trackingData&
td 63 auto&
c = this->owner();
67 auto* resultPtr =
c.template getObjectPtr<IOField<scalar>>(
"htc");
86 auto& htc = *resultPtr;
90 const auto& heatTransfer = tc.heatTransfer();
91 typename parcelType::trackingData& nctd =
92 const_cast<typename parcelType::trackingData&
>(
td);
95 for (
const parcelType&
p :
c)
97 scalar Ts, rhos, mus,
Pr, kappas;
98 p.template calcSurfaceValues<CloudType>
100 c, nctd,
p.T(), Ts, rhos, mus,
Pr, kappas
102 const scalar
Re =
p.Re(rhos,
p.U(),
td.Uc(),
p.d(), mus);
104 htc[parceli++] = heatTransfer.htc(
p.d(),
Re,
Pr, kappas, 0);
108 const bool haveParticles =
c.size();
111 htc.
write(haveParticles);
dimensionedScalar Pr("Pr", dimless, laminarTransport)
Calculates and writes particle heat transfer coefficient field on the cloud.
A list of keyword definitions, which are a keyword followed by a number of values (eg...
wallPoints::trackData td(isBlockedFace, regionToBlockSize)
virtual void postEvolve(const typename parcelType::trackingData &td)
Post-evolve hook.
bool store()
Register object with its registry and transfer ownership to the registry.
virtual void write(Ostream &os) const
Write to os.
Templated base class for thermodynamic cloud.
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.
HeatTransferCoeff(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.