Multiphase variant of the reacting parcel class with one/two-way coupling with the continuous phase. More...
#include <lagrangianIntermediate/ReactingMultiphaseParcel.H>
Multiphase variant of the reacting parcel class with one/two-way coupling with the continuous phase.
Definition at line 64 of file ReactingMultiphaseParcel.H.
Classes | |
class | constantProperties |
Class to hold reacting multiphase particle constant properties. More...
| |
class | trackData |
Class used to pass reacting tracking data to the trackToFace function. More...
| |
Public Member Functions | |
TypeName ("ReactingMultiphaseParcel") | |
Runtime type information.
| |
ReactingMultiphaseParcel (ReactingMultiphaseCloud< ParcelType > &owner, const vector &position, const label cellI) | |
Construct from owner, position, and cloud owner.
| |
ReactingMultiphaseParcel (ReactingMultiphaseCloud< ParcelType > &owner, const vector &position, const label cellI, const label typeId, const scalar nParticle0, const scalar d0, const vector &U0, const scalarField &Y0, const scalarField &YGas0, const scalarField &YLiquid0, const scalarField &YSolid0, const constantProperties &constProps) | |
Construct from components.
| |
ReactingMultiphaseParcel (const Cloud< ParcelType > &c, Istream &is, bool readFields=true) | |
Construct from Istream.
| |
ReactingMultiphaseParcel (const ReactingMultiphaseParcel &p) | |
Construct as a copy.
| |
autoPtr< ReactingMultiphaseParcel > | clone () const |
Construct and return a clone.
| |
const scalarField & | YGas () const |
Return const access to mass fractions of gases.
| |
const scalarField & | YLiquid () const |
Return const access to mass fractions of liquids.
| |
const scalarField & | YSolid () const |
Return const access to mass fractions of solids.
| |
bool | canCombust () const |
Return const access to the canCombust flag.
| |
scalarField & | YGas () |
Return access to mass fractions of gases.
| |
scalarField & | YLiquid () |
Return access to mass fractions of liquids.
| |
scalarField & | YSolid () |
Return access to mass fractions of solids.
| |
bool & | canCombust () |
Return access to the canCombust flag.
| |
template<class TrackData > | |
void | setCellValues (TrackData &td, const scalar dt, const label cellI) |
Set cell values.
| |
template<class TrackData > | |
void | cellValueSourceCorrection (TrackData &td, const scalar dt, const label cellI) |
Correct cell values using latest transfer information.
| |
template<class TrackData > | |
void | calc (TrackData &td, const scalar dt, const label cellI) |
Update parcel properties over the time interval.
| |
Static Public Member Functions | |
static void | readFields (Cloud< ParcelType > &c) |
Read.
| |
static void | writeFields (const Cloud< ParcelType > &c) |
Write.
| |
Static Public Attributes | |
static const label | GAS |
static const label | LIQ |
static const label | SLD |
static string | propHeader = " nSolid(Y1..YN)" |
String representation of properties.
| |
Protected Member Functions | |
template<class TrackData > | |
void | calcDevolatilisation (TrackData &td, const scalar dt, const scalar Ts, const scalar d, const scalar T, const scalar mass, const scalar mass0, const label idVolatile, const scalar YVolatileTot, const scalarField &YVolatile, bool &canCombust, scalarField &dMassDV, scalar &Sh, scalar &N, scalar &NCpW, scalarField &Cs) const |
Calculate Devolatilisation.
| |
template<class TrackData > | |
void | calcSurfaceReactions (TrackData &td, const scalar dt, const label cellI, const scalar d, const scalar T, const scalar mass, const bool 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.
| |
Protected Attributes | |
scalarField | YGas_ |
Mass fractions of gases [].
| |
scalarField | YLiquid_ |
Mass fractions of liquids [].
| |
scalarField | YSolid_ |
Mass fractions of solids [].
| |
bool | canCombust_ |
Flag to say that the particle is allowed to combust.
| |
Friends | |
class | Cloud< ParcelType > |
Ostream & | operator (Ostream &, const ReactingMultiphaseParcel< ParcelType > &) |
ReactingMultiphaseParcel | ( | ReactingMultiphaseCloud< ParcelType > & | owner, |
const vector & | position, | ||
const label | cellI | ||
) | [inline]
|
Construct from owner, position, and cloud owner.
Other properties initialised as null
Definition at line 89 of file ReactingMultiphaseParcelI.H.
Referenced by ReactingMultiphaseParcel< CoalParcel< ThermoType > >::clone().
ReactingMultiphaseParcel | ( | ReactingMultiphaseCloud< ParcelType > & | owner, |
const vector & | position, | ||
const label | cellI, | ||
const label | typeId, | ||
const scalar | nParticle0, | ||
const scalar | d0, | ||
const vector & | U0, | ||
const scalarField & | Y0, | ||
const scalarField & | YGas0, | ||
const scalarField & | YLiquid0, | ||
const scalarField & | YSolid0, | ||
const constantProperties & | constProps | ||
) | [inline]
|
Construct from components.
Definition at line 105 of file ReactingMultiphaseParcelI.H.
ReactingMultiphaseParcel | ( | const Cloud< ParcelType > & | c, |
Istream & | is, | ||
bool | readFields = true
|
||
) |
Construct from Istream.
Definition at line 43 of file ReactingMultiphaseParcelIO.C.
References CompositionModel< CloudType >::componentNames(), ReactingCloud< ParcelType >::composition(), CompositionModel< CloudType >::idGas(), CompositionModel< CloudType >::idLiquid(), and List< T >::size().
ReactingMultiphaseParcel | ( | const ReactingMultiphaseParcel< ParcelType > & | p ) |
Construct as a copy.
void calcDevolatilisation | ( | TrackData & | td, |
const scalar | dt, | ||
const scalar | Ts, | ||
const scalar | d, | ||
const scalar | T, | ||
const scalar | mass, | ||
const scalar | mass0, | ||
const label | idVolatile, | ||
const scalar | YVolatileTot, | ||
const scalarField & | YVolatile, | ||
bool & | canCombust, | ||
scalarField & | dMassDV, | ||
scalar & | Sh, | ||
scalar & | N, | ||
scalar & | NCpW, | ||
scalarField & | Cs | ||
) | const [protected]
|
Calculate Devolatilisation.
Definition at line 501 of file ReactingMultiphaseParcel.C.
References beta(), Foam::cbrt(), forAll, Foam::pow(), sqr(), and Foam::sqrt().
void calcSurfaceReactions | ( | TrackData & | td, |
const scalar | dt, | ||
const label | cellI, | ||
const scalar | d, | ||
const scalar | T, | ||
const scalar | mass, | ||
const bool | 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 [protected]
|
Calculate surface reactions.
Definition at line 579 of file ReactingMultiphaseParcel.C.
References Foam::min(), and Foam::sum().
TypeName | ( | "ReactingMultiphaseParcel< ParcelType >" | ) |
Runtime type information.
autoPtr<ReactingMultiphaseParcel> clone | ( | ) | const [inline]
|
Construct and return a clone.
Reimplemented from ReactingParcel< ParcelType >.
Reimplemented in CoalParcel< ThermoType >, and BasicReactingMultiphaseParcel< ThermoType >.
Definition at line 325 of file ReactingMultiphaseParcel.H.
const Foam::scalarField & YGas | ( | ) | const [inline]
|
Return const access to mass fractions of gases.
Definition at line 181 of file ReactingMultiphaseParcelI.H.
References ReactingMultiphaseParcel< ParcelType >::YGas_.
Referenced by ReactingMultiphaseParcel< ParcelType >::writeFields().
const Foam::scalarField & YLiquid | ( | ) | const [inline]
|
Return const access to mass fractions of liquids.
Definition at line 189 of file ReactingMultiphaseParcelI.H.
References ReactingMultiphaseParcel< ParcelType >::YLiquid_.
Referenced by ReactingMultiphaseParcel< ParcelType >::writeFields().
const Foam::scalarField & YSolid | ( | ) | const [inline]
|
Return const access to mass fractions of solids.
Definition at line 197 of file ReactingMultiphaseParcelI.H.
References ReactingMultiphaseParcel< ParcelType >::YSolid_.
Referenced by ReactingMultiphaseParcel< ParcelType >::writeFields().
bool canCombust | ( | ) | const [inline]
|
Return const access to the canCombust flag.
Definition at line 204 of file ReactingMultiphaseParcelI.H.
References ReactingMultiphaseParcel< ParcelType >::canCombust_.
Foam::scalarField & YGas | ( | ) | [inline]
|
Return access to mass fractions of gases.
Definition at line 211 of file ReactingMultiphaseParcelI.H.
References ReactingMultiphaseParcel< ParcelType >::YGas_.
Foam::scalarField & YLiquid | ( | ) | [inline]
|
Return access to mass fractions of liquids.
Definition at line 218 of file ReactingMultiphaseParcelI.H.
References ReactingMultiphaseParcel< ParcelType >::YLiquid_.
Foam::scalarField & YSolid | ( | ) | [inline]
|
Return access to mass fractions of solids.
Definition at line 225 of file ReactingMultiphaseParcelI.H.
References ReactingMultiphaseParcel< ParcelType >::YSolid_.
bool & canCombust | ( | ) | [inline]
|
Return access to the canCombust flag.
Definition at line 232 of file ReactingMultiphaseParcelI.H.
References ReactingMultiphaseParcel< ParcelType >::canCombust_.
void setCellValues | ( | TrackData & | td, |
const scalar | dt, | ||
const label | cellI | ||
) |
Set cell values.
Reimplemented from ReactingParcel< ParcelType >.
Definition at line 133 of file ReactingMultiphaseParcel.C.
void cellValueSourceCorrection | ( | TrackData & | td, |
const scalar | dt, | ||
const label | cellI | ||
) |
Correct cell values using latest transfer information.
Reimplemented from ReactingParcel< ParcelType >.
Definition at line 146 of file ReactingMultiphaseParcel.C.
void calc | ( | TrackData & | td, |
const scalar | dt, | ||
const label | cellI | ||
) |
Update parcel properties over the time interval.
Reimplemented from ReactingParcel< ParcelType >.
Definition at line 185 of file ReactingMultiphaseParcel.C.
References Foam::cbrt(), forAll, kappa(), pc, Foam::mathematicalConstant::pi(), Pr(), Foam::Re(), rhos(), Foam::fvc::Su(), and Ts().
void readFields | ( | Cloud< ParcelType > & | c ) | [static]
|
Read.
Reimplemented from ReactingParcel< ParcelType >.
Definition at line 95 of file ReactingMultiphaseParcelIO.C.
References CompositionModel< CloudType >::componentNames(), ReactingCloud< ParcelType >::composition(), Cloud< ParcelType >::fieldIOobject(), forAll, forAllIter, CompositionModel< CloudType >::idGas(), CompositionModel< CloudType >::idLiquid(), CompositionModel< CloudType >::idSolid(), p, Foam::readFields(), List< T >::setSize(), List< T >::size(), Cloud< ParticleType >::size(), CompositionModel< CloudType >::stateLabels(), ReactingParcel< ParcelType >::Y(), ReactingMultiphaseParcel< ParcelType >::YGas_, ReactingMultiphaseParcel< ParcelType >::YLiquid_, and ReactingMultiphaseParcel< ParcelType >::YSolid_.
void writeFields | ( | const Cloud< ParcelType > & | c ) | [static]
|
Write.
Reimplemented from ReactingParcel< ParcelType >.
Definition at line 189 of file ReactingMultiphaseParcelIO.C.
References CompositionModel< CloudType >::componentNames(), ReactingCloud< ParcelType >::composition(), Cloud< ParcelType >::fieldIOobject(), forAll, forAllConstIter, CompositionModel< CloudType >::idGas(), CompositionModel< CloudType >::idLiquid(), CompositionModel< CloudType >::idSolid(), Cloud< ParcelType >::size(), CompositionModel< CloudType >::stateLabels(), ReactingParcel< ParcelType >::Y(), ReactingMultiphaseParcel< ParcelType >::YGas(), ReactingMultiphaseParcel< ParcelType >::YLiquid(), and ReactingMultiphaseParcel< ParcelType >::YSolid().
friend class Cloud< ParcelType > [friend]
|
Reimplemented from ReactingParcel< ParcelType >.
Definition at line 281 of file ReactingMultiphaseParcel.H.
Ostream& operator | ( | Ostream & | , |
const ReactingMultiphaseParcel< ParcelType > & | |||
) | [friend]
|
const Foam::label GAS [static]
|
Definition at line 72 of file ReactingMultiphaseParcel.H.
const Foam::label LIQ [static]
|
Definition at line 73 of file ReactingMultiphaseParcel.H.
const Foam::label SLD [static]
|
Definition at line 74 of file ReactingMultiphaseParcel.H.
scalarField YGas_ [protected]
|
Mass fractions of gases [].
Definition at line 208 of file ReactingMultiphaseParcel.H.
Referenced by ReactingMultiphaseParcel< ParcelType >::readFields(), and ReactingMultiphaseParcel< ParcelType >::YGas().
scalarField YLiquid_ [protected]
|
Mass fractions of liquids [].
Definition at line 211 of file ReactingMultiphaseParcel.H.
Referenced by ReactingMultiphaseParcel< ParcelType >::readFields(), and ReactingMultiphaseParcel< ParcelType >::YLiquid().
scalarField YSolid_ [protected]
|
Mass fractions of solids [].
Definition at line 214 of file ReactingMultiphaseParcel.H.
Referenced by ReactingMultiphaseParcel< ParcelType >::readFields(), and ReactingMultiphaseParcel< ParcelType >::YSolid().
bool canCombust_ [protected]
|
Flag to say that the particle is allowed to combust.
Only true after volatile content falls below threshold value
Definition at line 218 of file ReactingMultiphaseParcel.H.
Referenced by ReactingMultiphaseParcel< ParcelType >::canCombust().
Foam::string propHeader = " nSolid(Y1..YN)" [static]
|
String representation of properties.
Reimplemented from ReactingParcel< ParcelType >.
Definition at line 275 of file ReactingMultiphaseParcel.H.