FreeFOAM The Cross-Platform CFD Toolkit
Hosted by SourceForge:
Get FreeFOAM at SourceForge.net.
            Fast, secure and Free Open Source software downloads

ReactingCloud< ParcelType > Class Template Reference

Templated base class for reacting cloud. More...

#include <lagrangianIntermediate/ReactingCloud_.H>


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 65 of file ReactingCloud_.H.

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, bool readFields=true)
 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  evolveCloud ()
 Evolve the cloud.
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.

Member Typedef Documentation

typedef ParcelType::thermoType thermoType

Type of thermodynamics the cloud was instantiated for.

Definition at line 73 of file ReactingCloud_.H.

typedef ParcelType parcelType

Type of parcel the cloud was instantiated for.

Reimplemented from ThermoCloud< ParcelType >.

Reimplemented in ReactingMultiphaseCloud< ParcelType >.

Definition at line 167 of file ReactingCloud_.H.


Constructor & Destructor Documentation

ReactingCloud ( const word &   cloudName,
const volScalarField &   rho,
const volVectorField &   U,
const dimensionedVector &   g,
basicThermo &   thermo,
bool   readFields = true  
)

Construct given carrier gas fields.

Definition at line 145 of file ReactingCloud_.C.

References Foam::dimMass, forAll, mesh, name(), and Foam::readFields().

~ReactingCloud (  ) [virtual]

Destructor.

Definition at line 213 of file ReactingCloud_.C.


Member Function Documentation

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

Check that size of a composition field is valid.

Definition at line 35 of file ReactingCloud_.C.

References Foam::abort(), Foam::FatalError, FatalErrorIn, Foam::nl, and List< T >::size().

void preEvolve (  ) [protected]

Pre-evolve.

Reimplemented from ThermoCloud< ParcelType >.

Reimplemented in ReactingMultiphaseCloud< ParcelType >.

Definition at line 61 of file ReactingCloud_.C.

void evolveCloud (  ) [protected]

Evolve the cloud.

Reimplemented from ThermoCloud< ParcelType >.

Reimplemented in ReactingMultiphaseCloud< ParcelType >.

Definition at line 68 of file ReactingCloud_.C.

References cp, mu, p, rho, GeometricField< Type, PatchField, GeoMesh >::T(), T, and U.

void postEvolve (  ) [protected]

Post-evolve.

Reimplemented from ThermoCloud< ParcelType >.

Reimplemented in ReactingMultiphaseCloud< ParcelType >.

Definition at line 135 of file ReactingCloud_.C.

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

Return the constant properties.

Reimplemented from ThermoCloud< ParcelType >.

Reimplemented in ReactingMultiphaseCloud< ParcelType >.

Definition at line 30 of file ReactingCloudI_.H.

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

Return const access to multi-component carrier phase thermo.

Definition at line 38 of file ReactingCloudI_.H.

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

Return access to multi-component carrier phase thermo.

Definition at line 46 of file ReactingCloudI_.H.

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

Return reference to reacting phase change model.

Definition at line 62 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 70 of file ReactingCloudI_.H.

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

Return reference to mass source fields.

Definition at line 78 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 86 of file ReactingCloudI_.H.

References mesh, and fvMesh::V().

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

Return tmp total mass source for carrier phase.

  • fully explicit

Definition at line 94 of file ReactingCloudI_.H.

References forAll, mesh, name(), timeName, and fvMesh::V().

void info (  ) const

Print cloud information.

Reimplemented from ThermoCloud< ParcelType >.

Reimplemented in ReactingMultiphaseCloud< ParcelType >.

Definition at line 282 of file ReactingCloud_.C.

References Foam::Info, Foam::nl, and Foam::returnReduce().

void addToMassPhaseChange ( const scalar   dMass  )

Add to cumulative phase change mass transfer.

Definition at line 292 of file ReactingCloud_.C.

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

Check parcel properties.

Reimplemented from ThermoCloud< ParcelType >.

Reimplemented in ReactingMultiphaseCloud< ParcelType >.

Definition at line 221 of file ReactingCloud_.C.

References composition.

void resetSourceTerms (  )

Reset the spray source terms.

Reimplemented from ThermoCloud< ParcelType >.

Reimplemented in ReactingMultiphaseCloud< ParcelType >.

Definition at line 254 of file ReactingCloud_.C.

References forAll.

void evolve (  )

Evolve the spray (inject, move)

Reimplemented from ThermoCloud< ParcelType >.

Reimplemented in ReactingMultiphaseCloud< ParcelType >.

Definition at line 265 of file ReactingCloud_.C.

References Foam::endl(), and Foam::Info.


Member Data Documentation

ParcelType::constantProperties constProps_ [protected]

Parcel constant properties.

Reimplemented from ThermoCloud< ParcelType >.

Reimplemented in ReactingMultiphaseCloud< ParcelType >.

Definition at line 92 of file ReactingCloud_.H.

Multi-component carrier phase thermo.

Definition at line 95 of file ReactingCloud_.H.

Reacting composition model.

Definition at line 102 of file ReactingCloud_.H.

Reacting phase change model.

Definition at line 106 of file ReactingCloud_.H.

PtrList<DimensionedField<scalar, volMesh> > rhoTrans_ [protected]

Mass transfer fields - one per carrier phase specie.

Definition at line 112 of file ReactingCloud_.H.

scalar dMassPhaseChange_ [protected]

Total mass transferred to continuous phase via phase change.

Definition at line 118 of file ReactingCloud_.H.


The documentation for this class was generated from the following files: