30template<
class ParcelType>
35 TDevol_(this->dict_, 0.0),
36 LDevol_(this->dict_, 0.0),
37 hRetentionCoeff_(this->dict_, 0.0)
41template<
class ParcelType>
51 hRetentionCoeff_(
cp.hRetentionCoeff_)
55template<
class ParcelType>
63 TDevol_(this->dict_,
"TDevol"),
64 LDevol_(this->dict_,
"LDevol"),
65 hRetentionCoeff_(this->dict_,
"hRetentionCoeff")
69template<
class ParcelType>
87template<
class ParcelType>
95 ParcelType(
mesh, position, celli),
103template<
class ParcelType>
109 const label tetFacei,
112 const scalar nParticle0,
114 const scalar dTarget0,
117 const vector& angularMomentum0,
153template<
class ParcelType>
157 return TDevol_.value();
161template<
class ParcelType>
165 return LDevol_.value();
169template<
class ParcelType>
174 scalar value = hRetentionCoeff_.value();
176 if ((value < 0) || (value > 1))
179 <<
"hRetentionCoeff must be in the range 0 to 1" <<
nl
189template<
class ParcelType>
197template<
class ParcelType>
205template<
class ParcelType>
213template<
class ParcelType>
221template<
class ParcelType>
228template<
class ParcelType>
235template<
class ParcelType>
242template<
class ParcelType>
Class to hold reacting multiphase particle constant properties.
constantProperties()
Null constructor.
scalar hRetentionCoeff() const
Return const access to the fraction of enthalpy retained by.
scalar TDevol() const
Return const access to the devolatilisation temperature.
scalar LDevol() const
Return const access to the latent heat of devolatilisation.
scalarField YLiquid_
Mass fractions of liquids [].
scalarField YSolid_
Mass fractions of solids [].
label canCombust_
Flag to identify if the particle can devolatilise and combust.
scalarField YGas_
Mass fractions of gases [].
label canCombust() const
Return const access to the canCombust flag.
const scalarField & YGas() const
Return const access to mass fractions of gases.
ReactingMultiphaseParcel(const polyMesh &mesh, const barycentric &coordinates, const label celli, const label tetFacei, const label tetPti)
Construct from mesh, position and topology.
const scalarField & YSolid() const
Return const access to mass fractions of solids.
const scalarField & YLiquid() const
Return const access to mass fractions of liquids.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
const barycentric & coordinates() const noexcept
Return current particle coordinates.
Mesh consisting of general polyhedral cells.
PtrList< coordinateSystem > coordinates(solidRegions.size())
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
Field< scalar > scalarField
Specialisation of Field<T> for scalar.
Ostream & endl(Ostream &os)
Add newline and flush stream.
bool cp(const fileName &src, const fileName &dst, const bool followLink=true)
Copy the source to the destination (recursively if necessary).
error FatalError
Error stream (stdout output on all processes), with additional 'FOAM FATAL ERROR' header text and sta...
Barycentric< scalar > barycentric
A scalar version of the templated Barycentric.
errorManipArg< error, int > exit(error &err, const int errNo=1)
constexpr char nl
The newline '\n' character (0x0a).
scalarList Y0(nSpecie, Zero)