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

ReactingCloud< ParcelType > Class Template Reference

Templated base class for reacting cloud. More...

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

List of all members.


Public Types

typedef ParcelType::thermoType thermoType
 Type of thermodynamics the cloud was instantiated for.
typedef ParcelType parcelType
 Type of parcel the cloud was instantiated for.

Public Member Functions

 ReactingCloud (const word &cloudName, const volScalarField &rho, const volVectorField &U, const dimensionedVector &g, basicThermo &thermo)
 Construct given carrier gas fields.
virtual ~ReactingCloud ()
 Destructor.
const
ParcelType::constantProperties & 
constProps () const
 Return the constant properties.
const multiComponentMixture
< thermoType > & 
mcCarrierThermo () const
 Return const access to multi-component carrier phase thermo.
multiComponentMixture
< thermoType > & 
mcCarrierThermo ()
 Return access to multi-component carrier phase thermo.
const CompositionModel
< ReactingCloud< ParcelType > > & 
composition () const
 Return reference to reacting composition model.
const PhaseChangeModel
< ReactingCloud< ParcelType > > & 
phaseChange () const
 Return reference to reacting phase change model.
DimensionedField< scalar,
volMesh > & 
rhoTrans (const label i)
 Mass.
PtrList< DimensionedField
< scalar, volMesh > > & 
rhoTrans ()
 Return reference to mass source fields.
tmp< DimensionedField< scalar,
volMesh > > 
Srho (const label i) const
 Return tmp mass source for field i - fully explicit.
tmp< DimensionedField< scalar,
volMesh > > 
Srho () const
 Return tmp total mass source for carrier phase.
void info () const
 Print cloud information.
void addToMassPhaseChange (const scalar dMass)
 Add to cumulative phase change mass transfer.
void checkParcelProperties (ParcelType &parcel, const scalar lagrangianDt, const bool fullyDescribed)
 Check parcel properties.
void resetSourceTerms ()
 Reset the spray source terms.
void evolve ()
 Evolve the spray (inject, move).

Protected Member Functions

void checkSuppliedComposition (const scalarField &YSupplied, const scalarField &Y, const word &YName)
 Check that size of a composition field is valid.
void preEvolve ()
 Pre-evolve.
void postEvolve ()
 Post-evolve.

Protected Attributes

ParcelType::constantProperties constProps_
 Parcel constant properties.
multiComponentMixture
< thermoType > & 
mcCarrierThermo_
 Multi-component carrier phase thermo.
autoPtr< CompositionModel
< ReactingCloud< ParcelType > > > 
compositionModel_
 Reacting composition model.
autoPtr< PhaseChangeModel
< ReactingCloud< ParcelType > > > 
phaseChangeModel_
 Reacting phase change model.
PtrList< DimensionedField
< scalar, volMesh > > 
rhoTrans_
 Mass transfer fields - one per carrier phase specie.
scalar dMassPhaseChange_
 Total mass transferred to continuous phase via phase change.

Detailed Description

template<class ParcelType>
class Foam::ReactingCloud< ParcelType >

Templated base class for reacting cloud.

  • Adds to thermodynamic cloud
    • Variable composition (single phase)
    • Phase change

Source files

Definition at line 60 of file ReactingCloud.H.


Member Typedef Documentation

typedef ParcelType::thermoType thermoType

Type of thermodynamics the cloud was instantiated for.

Definition at line 68 of file ReactingCloud.H.


Constructor & Destructor Documentation

ReactingCloud ( const word &  cloudName,
const volScalarField &  rho,
const volVectorField &  U,
const dimensionedVector &  g,
basicThermo &  thermo 
) [inline]

Construct given carrier gas fields.

Definition at line 56 of file ReactingCloud.C.

~ReactingCloud (  )  [inline, virtual]

Destructor.

Definition at line 118 of file ReactingCloud.C.


Member Function Documentation

void checkSuppliedComposition ( const scalarField &  YSupplied,
const scalarField &  Y,
const word &  YName 
) [inline, protected]

Check that size of a composition field is valid.

Definition at line 27 of file ReactingCloud.C.

References FatalErrorIn, and Foam::nl.

void preEvolve (  )  [inline, protected]

void postEvolve (  )  [inline, protected]

Post-evolve.

Reimplemented from ThermoCloud< ParcelType >.

Reimplemented in ReactingMultiphaseCloud< ParcelType >, ReactingMultiphaseCloud< CoalParcel< ThermoType > >, and ReactingMultiphaseCloud< BasicReactingMultiphaseParcel< ThermoType > >.

Definition at line 177 of file ReactingCloud.C.

References ReactingCloud< ParcelType >::preEvolve().

Referenced by ReactingCloud< ParcelType >::evolve().

Here is the call graph for this function:

Here is the caller graph for this function:

const ParcelType::constantProperties & constProps (  )  const [inline]

const Foam::multiComponentMixture< typename ParcelType::thermoType > & mcCarrierThermo (  )  const [inline]

Return const access to multi-component carrier phase thermo.

Definition at line 30 of file ReactingCloudI.H.

Foam::multiComponentMixture< typename ParcelType::thermoType > & mcCarrierThermo (  )  [inline]

Return access to multi-component carrier phase thermo.

Definition at line 38 of file ReactingCloudI.H.

const Foam::CompositionModel< Foam::ReactingCloud< ParcelType > > & composition (  )  const [inline]

Return reference to reacting composition model.

Definition at line 46 of file ReactingCloudI.H.

Referenced by ReactingParcel< ParcelType >::ReactingParcel().

Here is the caller graph for this function:

const Foam::PhaseChangeModel< Foam::ReactingCloud< ParcelType > > & phaseChange (  )  const [inline]

Return reference to reacting phase change model.

Definition at line 54 of file ReactingCloudI.H.

Foam::DimensionedField< Foam::scalar, Foam::volMesh > & rhoTrans ( const label  i  )  [inline]

Mass.

Return reference to mass source for field i

Definition at line 62 of file ReactingCloudI.H.

Foam::PtrList< Foam::DimensionedField< Foam::scalar, Foam::volMesh > > & rhoTrans (  )  [inline]

Return reference to mass source fields.

Definition at line 70 of file ReactingCloudI.H.

Foam::tmp< Foam::DimensionedField< Foam::scalar, Foam::volMesh > > Srho ( const label  i  )  const [inline]

Return tmp mass source for field i - fully explicit.

Definition at line 78 of file ReactingCloudI.H.

Foam::tmp< Foam::DimensionedField< Foam::scalar, Foam::volMesh > > Srho (  )  const [inline]

Return tmp total mass source for carrier phase.

  • fully explicit

Definition at line 86 of file ReactingCloudI.H.

References mesh, and fvMesh::V().

Here is the call graph for this function:

void info (  )  const [inline]

void addToMassPhaseChange ( const scalar  dMass  )  [inline]

Add to cumulative phase change mass transfer.

Definition at line 265 of file ReactingCloud.C.

References ReactingCloud< ParcelType >::dMassPhaseChange_, ReactingCloud< ParcelType >::info(), Foam::Info, Foam::nl, and Foam::returnReduce().

Here is the call graph for this function:

void checkParcelProperties ( ParcelType &  parcel,
const scalar  lagrangianDt,
const bool  fullyDescribed 
) [inline]

void resetSourceTerms (  )  [inline]

void evolve (  )  [inline]


Member Data Documentation

ParcelType::constantProperties constProps_ [protected]

Multi-component carrier phase thermo.

Definition at line 90 of file ReactingCloud.H.

Reacting composition model.

Definition at line 97 of file ReactingCloud.H.

Reacting phase change model.

Definition at line 101 of file ReactingCloud.H.

Mass transfer fields - one per carrier phase specie.

Definition at line 107 of file ReactingCloud.H.

Total mass transferred to continuous phase via phase change.

Definition at line 113 of file ReactingCloud.H.

Referenced by ReactingCloud< ParcelType >::addToMassPhaseChange().


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