38 #ifndef ReactingMultiphaseParcel_H 39 #define ReactingMultiphaseParcel_H 50 template<
class ParcelType>
53 template<
class ParcelType>
64 template<
class ParcelType>
72 static const std::size_t sizeofFields_;
87 public ParcelType::constantProperties
119 inline scalar
TDevol()
const;
122 inline scalar
LDevol()
const;
135 template<
class TrackData>
147 template<
class TrackData>
159 template<
class TrackData>
171 scalar updateMassFractions
207 template<
class TrackData>
230 template<
class TrackData>
259 TypeName(
"ReactingMultiphaseParcel");
280 const label tetFacei,
291 const label tetFacei,
294 const scalar nParticle0,
296 const scalar dTarget0,
299 const vector& angularMomentum0,
399 template<
class TrackData>
408 template<
class TrackData>
417 template<
class TrackData>
429 template<
class CloudType,
class CompositionType>
433 const CompositionType& compModel
437 template<
class CloudType>
441 template<
class CloudType,
class CompositionType>
445 const CompositionType& compModel
449 template<
class CloudType>
455 friend Ostream& operator<< <ParcelType>
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
static void writeFields(const CloudType &c, const CompositionType &compModel)
Write.
A list of keyword definitions, which are a keyword followed by any number of values (e...
AddToPropertyList(ParcelType," nGas(Y1..YN)"+" nLiquid(Y1..YN)"+" nSolid(Y1..YN)")
String representation of properties.
label canCombust_
Flag to identify if the particle can devolatilise and combust.
scalar hRetentionCoeff() const
Return const access to the fraction of enthalpy retained by.
void setCellValues(TrackData &td, const scalar dt, const label celli)
Set cell values.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)...
void cellValueSourceCorrection(TrackData &td, const scalar dt, const label celli)
Correct cell values using latest transfer information.
bool cp(const fileName &src, const fileName &dst)
Copy, recursively if necessary, the source to the destination.
void calc(TrackData &td, const scalar dt, const label celli)
Update parcel properties over the time interval.
scalar TDevol() const
Return const access to the devolatilisation temperature.
scalarList Y0(nSpecie, 0.0)
label canCombust() const
Return const access to the canCombust flag.
static void readFields(CloudType &c, const CompositionType &compModel)
Read.
virtual autoPtr< particle > clone() const
Construct and return a (basic particle) clone.
scalarField YGas_
Mass fractions of gases [].
constantProperties()
Null constructor.
ReactingMultiphaseParcel(const polyMesh &mesh, const vector &position, const label celli, const label tetFacei, const label tetPtI)
Construct from owner, position, and cloud owner.
const scalarField & YLiquid() const
Return const access to mass fractions of liquids.
An Ostream is an abstract base class for all output systems (streams, files, token lists...
const scalarField & YGas() const
Return const access to mass fractions of gases.
scalarField YSolid_
Mass fractions of solids [].
void T(FieldField< Field, Type > &f1, const FieldField< Field, Type > &f2)
scalar LDevol() const
Return const access to the latent heat of devolatilisation.
scalarField YLiquid_
Mass fractions of liquids [].
const scalarField & YSolid() const
Return const access to mass fractions of solids.
const dimensionedScalar c
Speed of light in a vacuum.
friend Ostream & operator(Ostream &, const ReactingMultiphaseParcel< ParcelType > &)
Multiphase variant of the reacting parcel class with one/two-way coupling with the continuous phase...
void calcDevolatilisation(TrackData &td, const scalar dt, const scalar age, const scalar Ts, const scalar d, const scalar T, const scalar mass, const scalar mass0, const scalarField &YGasEff, const scalarField &YLiquidEff, const scalarField &YSolidEff, label &canCombust, scalarField &dMassDV, scalar &Sh, scalar &N, scalar &NCpW, scalarField &Cs) const
Calculate Devolatilisation.
void calcSurfaceReactions(TrackData &td, const scalar dt, const label celli, const scalar d, const scalar T, const scalar mass, const label canCombust, const scalar N, const scalarField &YMix, const scalarField &YGas, const scalarField &YLiquid, const scalarField &YSolid, scalarField &dMassSRGas, scalarField &dMassSRLiquid, scalarField &dMassSRSolid, scalarField &dMassSRCarrier, scalar &Sh, scalar &dhsTrans) const
Calculate surface reactions.
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
Mesh consisting of general polyhedral cells.
TypeName("ReactingMultiphaseParcel")
Runtime type information.
Factory class to read-construct particles used for.
Templated base class for dsmc cloud.
Class to hold reacting multiphase particle constant properties.