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