OpenFOAM logo
The Open Source CFD Toolbox
  Source Guide OpenCFD Solutions Contact OpenFOAM

ReactingMultiphaseParcel< ParcelType > Class Template Reference

Multiphase variant of the reacting parcel class with one/two-way coupling with the continuous phase. More...

Inheritance diagram for ReactingMultiphaseParcel< ParcelType >:
Collaboration diagram for ReactingMultiphaseParcel< ParcelType >:

List of all members.


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 (ReactingMultiphaseCloud< ParcelType > &c)
 Read.
static void writeFields (const ReactingMultiphaseCloud< ParcelType > &c)
 Write.

Static Public Attributes

static const label GAS
static const label LIQ
static const label SLD
static string propHeader
 String representation of properties.

Protected Member Functions

template<class TrackData >
void calcDevolatilisation (TrackData &td, const scalar dt, 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 &dhsTrans) 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 scalarField &dMassVolatile, 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 > &)

Detailed Description

template<class ParcelType>
class Foam::ReactingMultiphaseParcel< ParcelType >

Multiphase variant of the reacting parcel class with one/two-way coupling with the continuous phase.

Source files

Definition at line 59 of file ReactingMultiphaseParcel.H.


Constructor & Destructor Documentation

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 81 of file ReactingMultiphaseParcelI.H.

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 97 of file ReactingMultiphaseParcelI.H.

ReactingMultiphaseParcel ( const ReactingMultiphaseParcel< ParcelType > &  p  ) 

Construct as a copy.


Member Function Documentation

void calcDevolatilisation ( TrackData &  td,
const scalar  dt,
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 &  dhsTrans 
) const [inline, protected]

Calculate Devolatilisation.

Definition at line 445 of file ReactingMultiphaseParcel.C.

void calcSurfaceReactions ( TrackData &  td,
const scalar  dt,
const label  cellI,
const scalar  d,
const scalar  T,
const scalar  mass,
const bool  canCombust,
const scalarField &  dMassVolatile,
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 [inline, protected]

Calculate surface reactions.

Definition at line 495 of file ReactingMultiphaseParcel.C.

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 324 of file ReactingMultiphaseParcel.H.

const Foam::scalarField & YGas (  )  const [inline]

Return const access to mass fractions of gases.

Definition at line 173 of file ReactingMultiphaseParcelI.H.

const Foam::scalarField & YLiquid (  )  const [inline]

Return const access to mass fractions of liquids.

Definition at line 181 of file ReactingMultiphaseParcelI.H.

References ReactingMultiphaseParcel< ParcelType >::YGas_.

const Foam::scalarField & YSolid (  )  const [inline]

Return const access to mass fractions of solids.

Definition at line 189 of file ReactingMultiphaseParcelI.H.

References ReactingMultiphaseParcel< ParcelType >::YLiquid_.

bool canCombust (  )  const [inline]

Return const access to the canCombust flag.

Definition at line 196 of file ReactingMultiphaseParcelI.H.

References ReactingMultiphaseParcel< ParcelType >::YSolid_.

Foam::scalarField & YGas (  )  [inline]

Return access to mass fractions of gases.

Definition at line 203 of file ReactingMultiphaseParcelI.H.

References ReactingMultiphaseParcel< ParcelType >::canCombust_.

Foam::scalarField & YLiquid (  )  [inline]

Return access to mass fractions of liquids.

Definition at line 210 of file ReactingMultiphaseParcelI.H.

References ReactingMultiphaseParcel< ParcelType >::YGas_.

Foam::scalarField & YSolid (  )  [inline]

Return access to mass fractions of solids.

Definition at line 217 of file ReactingMultiphaseParcelI.H.

References ReactingMultiphaseParcel< ParcelType >::YLiquid_.

bool & canCombust (  )  [inline]

Return access to the canCombust flag.

Definition at line 224 of file ReactingMultiphaseParcelI.H.

References ReactingMultiphaseParcel< ParcelType >::YSolid_.

void setCellValues ( TrackData &  td,
const scalar  dt,
const label  cellI 
) [inline]

Set cell values.

Reimplemented from ReactingParcel< ParcelType >.

Definition at line 124 of file ReactingMultiphaseParcel.C.

Referenced by ReactingMultiphaseParcel< ParcelType >::cellValueSourceCorrection().

Here is the caller graph for this function:

void cellValueSourceCorrection ( TrackData &  td,
const scalar  dt,
const label  cellI 
) [inline]

Correct cell values using latest transfer information.

Reimplemented from ReactingParcel< ParcelType >.

Definition at line 137 of file ReactingMultiphaseParcel.C.

References ReactingMultiphaseParcel< ParcelType >::setCellValues().

Here is the call graph for this function:

void calc ( TrackData &  td,
const scalar  dt,
const label  cellI 
) [inline]

Update parcel properties over the time interval.

Reimplemented from ReactingParcel< ParcelType >.

Definition at line 176 of file ReactingMultiphaseParcel.C.

void readFields ( ReactingMultiphaseCloud< ParcelType > &  c  )  [inline, static]

Read.

Definition at line 87 of file ReactingMultiphaseParcelIO.C.

void writeFields ( const ReactingMultiphaseCloud< ParcelType > &  c  )  [inline, static]

Write.

Definition at line 178 of file ReactingMultiphaseParcelIO.C.


Friends And Related Function Documentation

friend class Cloud< ParcelType > [friend]

Reimplemented from ReactingParcel< ParcelType >.

Definition at line 278 of file ReactingMultiphaseParcel.H.

Ostream& operator ( Ostream &  ,
const ReactingMultiphaseParcel< ParcelType > &   
) [friend]


Member Data Documentation

const Foam::label GAS [inline, static]

const Foam::label LIQ [inline, static]

const Foam::label SLD [inline, static]

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 219 of file ReactingMultiphaseParcel.H.

Referenced by ReactingMultiphaseParcel< ParcelType >::YGas().

Foam::string propHeader [inline, static]

Initial value:

    ReactingParcel<ParcelType>::propHeader
  + " nGas(Y1..YN)"
  + " nLiquid(Y1..YN)"
  + " nSolid(Y1..YN)"
String representation of properties.

Reimplemented from ReactingParcel< ParcelType >.

Definition at line 272 of file ReactingMultiphaseParcel.H.


The documentation for this class was generated from the following files:
Copyright © 2000-2009 OpenCFD Ltd