38 #ifndef ReactingMultiphaseParcel_H
39 #define ReactingMultiphaseParcel_H
50 template<
class ParcelType>
51 class ReactingMultiphaseParcel;
53 template<
class ParcelType>
71 template<
class ParcelType>
75 public ReactingMultiphaseParcelName
80 static const std::size_t sizeofFields_;
95 public ParcelType::constantProperties
127 inline scalar
TDevol()
const;
130 inline scalar
LDevol()
const;
147 template<
class TrackCloudType>
150 TrackCloudType&
cloud,
160 template<
class TrackCloudType>
163 TrackCloudType&
cloud,
173 template<
class TrackCloudType>
176 TrackCloudType&
cloud,
186 scalar updateMassFractions
225 template<
class TrackCloudType>
228 TrackCloudType&
cloud,
248 template<
class TrackCloudType>
251 TrackCloudType&
cloud,
296 const label tetFacei,
308 label& nLocateBoundaryHits
339 inline scalar
mass0()
const;
357 inline scalar&
mass0();
375 template<
class TrackCloudType>
379 template<
class TrackCloudType>
382 TrackCloudType&
cloud,
388 template<
class TrackCloudType>
391 TrackCloudType&
cloud,
400 template<
class CloudType,
class CompositionType>
404 const CompositionType& compModel
408 template<
class CloudType>
412 template<
class CloudType,
class CompositionType>
416 const CompositionType& compModel
420 template<
class CloudType>
426 friend Ostream& operator<< <ParcelType>
Templated base class for dsmc cloud.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
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.
Multiphase variant of the reacting parcel class with one/two-way coupling with the continuous phase.
scalarField YLiquid_
Mass fractions of liquids [].
scalarField YSolid_
Mass fractions of solids [].
label canCombust_
Flag to identify if the particle can devolatilise and combust.
void calcSurfaceReactions(TrackCloudType &cloud, trackingData &td, const scalar dt, 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.
void cellValueSourceCorrection(TrackCloudType &cloud, trackingData &td, const scalar dt)
Correct cell values using latest transfer information.
AddToPropertyList(ParcelType, " mass0"+" nGas(Y1..YN)"+" nLiquid(Y1..YN)"+" nSolid(Y1..YN)")
String representation of properties.
static void writeFields(const CloudType &c, const CompositionType &compModel)
Write.
scalarField YGas_
Mass fractions of gases [].
void calcDevolatilisation(TrackCloudType &cloud, trackingData &td, const scalar dt, 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.
label canCombust() const
Return const access to the canCombust flag.
ParcelType::trackingData trackingData
Use base tracking data.
const scalarField & YGas() const
Return const access to mass fractions of gases.
virtual autoPtr< particle > clone() const
Construct and return a clone.
scalar mass0() const
Return const access to initial mass [kg].
ReactingMultiphaseParcel(const polyMesh &mesh, const barycentric &coordinates, const label celli, const label tetFacei, const label tetPti, const label facei)
Construct from mesh, coordinates and topology.
void setCellValues(TrackCloudType &cloud, trackingData &td)
Set cell values.
scalar mass0_
Initial mass [kg].
static autoPtr< ReactingMultiphaseParcel > New(Istream &is)
Construct from Istream and return.
const scalarField & YSolid() const
Return const access to mass fractions of solids.
const scalarField & YLiquid() const
Return const access to mass fractions of liquids.
static void readFields(CloudType &c, const CompositionType &compModel)
Read.
void calc(TrackCloudType &cloud, trackingData &td, const scalar dt)
Update parcel properties over the time interval.
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
A cloud is a collection of lagrangian particles.
A list of keyword definitions, which are a keyword followed by any number of values (e....
Mesh consisting of general polyhedral cells.
const dimensionedScalar c
Speed of light in a vacuum.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
bool cp(const fileName &src, const fileName &dst, const bool followLink=true)
Copy, recursively if necessary, the source to the destination.
TemplateName(FvFaceCellWave)
void T(FieldField< Field, Type > &f1, const FieldField< Field, Type > &f2)