30 template<
class CloudType>
34 return *cloudCopyPtr_;
38 template<
class CloudType>
39 inline const typename CloudType::particleType::constantProperties&
46 template<
class CloudType>
47 inline typename CloudType::particleType::constantProperties&
54 template<
class CloudType>
61 return devolatilisationModel_;
65 template<
class CloudType>
72 return *devolatilisationModel_;
76 template<
class CloudType>
83 return surfaceReactionModel_;
87 template<
class CloudType>
94 return *surfaceReactionModel_;
98 template<
class CloudType>
102 const typename parcelType::trackingData&
td 105 const label celli =
p.cell();
107 const scalar m =
p.nParticle()*
p.mass();
108 const scalar pc =
td.pc();
109 const scalar
T =
p.T();
111 this->rhokTrans()[celli] += m;
113 this->UTrans()[celli] += m*
p.U();
116 const label idG = comp.idGas();
117 const label idL = comp.idLiquid();
123 const label phaseType,
128 const scalar YMix =
p.Y()[phaseType];
132 const label gid = comp.localToCarrierId(phaseType, i);
133 this->rhoTrans(gid)[celli] += m*YMix*
Y[i];
134 this->hsTrans()[celli] += m*YMix*comp.Hs(
phasei,
Y, pc,
T);
138 transfer(parcelType::GAS, idG,
p.YGas());
139 transfer(parcelType::LIQ, idL,
p.YLiquid());
void transferToCarrier(const parcelType &p, const typename parcelType::trackingData &td)
Transfer the effect of parcel to the carrier phase.
basicSpecieMixture & composition
wallPoints::trackData td(isBlockedFace, regionToBlockSize)
Templated base class for multiphase reacting cloud.
#define forAll(list, i)
Loop across all elements in list.
const ReactingMultiphaseCloud & cloudCopy() const
Return a reference to the cloud copy.
PtrList< volScalarField > & Y
const SurfaceReactionModel< ReactingMultiphaseCloud< CloudType > > & surfaceReaction() const
Return const access to reacting surface reaction model.
const parcelType::constantProperties & constProps() const
Return the constant properties.
Templated devolatilisation model class.
Templated surface reaction model class.
const DevolatilisationModel< ReactingMultiphaseCloud< CloudType > > & devolatilisation() const
Return const access to devolatilisation model.