Public Member Functions | Data Fields | Static Public Attributes | Private Attributes
greyMeanAbsorptionEmission Class Reference

greyMeanAbsorptionEmission radiation absorption and emission coefficients for continuous phase More...

Inheritance diagram for greyMeanAbsorptionEmission:
Inheritance graph
[legend]
Collaboration diagram for greyMeanAbsorptionEmission:
Collaboration graph
[legend]

Public Member Functions

 TypeName ("greyMeanAbsorptionEmission")
 Runtime type information. More...
 
 greyMeanAbsorptionEmission (const dictionary &dict, const fvMesh &mesh)
 Construct from components. More...
 
virtual ~greyMeanAbsorptionEmission ()
 Destructor. More...
 
tmp< volScalarFieldaCont (const label bandI=0) const
 Absorption coefficient for continuous phase. More...
 
tmp< volScalarFieldeCont (const label bandI=0) const
 Emission coefficient for continuous phase. More...
 
tmp< volScalarFieldECont (const label bandI=0) const
 Emission contribution for continuous phase. More...
 
bool isGrey () const
 Flag for whether the absorption/emission is for a grey gas. More...
 
- Public Member Functions inherited from absorptionEmissionModel
 TypeName ("absorptionEmissionModel")
 Runtime type information. More...
 
 declareRunTimeSelectionTable (autoPtr, absorptionEmissionModel, dictionary,(const dictionary &dict, const fvMesh &mesh),(dict, mesh))
 Declare runtime constructor selection table. More...
 
 absorptionEmissionModel (const dictionary &dict, const fvMesh &mesh)
 Construct from components. More...
 
virtual ~absorptionEmissionModel ()
 Destructor. More...
 
const fvMeshmesh () const
 Reference to the mesh. More...
 
const dictionarydict () const
 Reference to the dictionary. More...
 
virtual tmp< volScalarFielda (const label bandI=0) const
 Absorption coefficient (net) More...
 
virtual tmp< volScalarFieldaDisp (const label bandI=0) const
 Absorption coefficient for dispersed phase. More...
 
virtual tmp< volScalarFielde (const label bandI=0) const
 Emission coefficient (net) More...
 
virtual tmp< volScalarFieldeDisp (const label bandI=0) const
 Return emission coefficient for dispersed phase. More...
 
virtual tmp< volScalarFieldE (const label bandI=0) const
 Emission contribution (net) More...
 
virtual tmp< volScalarFieldEDisp (const label bandI=0) const
 Emission contribution for dispersed phase. More...
 
virtual label nBands () const
 Const access to the number of bands - defaults to 1 for grey. More...
 
virtual const Vector2D< scalar > & bands (const label n) const
 Const access to the bands - defaults to Vector2D::one for grey. More...
 
virtual void correct (volScalarField &a, PtrList< volScalarField > &aj) const
 Correct absorption coefficients. More...
 

Data Fields

absorptionCoeffs coeffs_ [nSpecies_]
 

Static Public Attributes

static const int nSpecies_ = 5
 

Private Attributes

dictionary coeffsDict_
 Absorption model dictionary. More...
 
HashTable< labelspeciesNames_
 Hash table of species names. More...
 
FixedList< label, nSpecies_specieIndex_
 Indices of species in the look-up table. More...
 
autoPtr< interpolationLookUpTable< scalar > > lookUpTablePtr_
 Look-up table of species related to ft. More...
 
const fluidThermothermo_
 SLG thermo package. More...
 
const scalar EhrrCoeff_
 Emission constant coefficient. More...
 
UPtrList< volScalarFieldYj_
 Pointer list of species in the registry involved in the absorption. More...
 

Additional Inherited Members

- Static Public Member Functions inherited from absorptionEmissionModel
static autoPtr< absorptionEmissionModelNew (const dictionary &dict, const fvMesh &mesh)
 Selector. More...
 
- Protected Attributes inherited from absorptionEmissionModel
const dictionary dict_
 Radiation model dictionary. More...
 
const fvMeshmesh_
 Reference to the fvMesh. More...
 

Detailed Description

greyMeanAbsorptionEmission radiation absorption and emission coefficients for continuous phase

The coefficients for the species in the Look up table have to be specified for use in moles x P [atm], i.e. (k[i] = species[i]*p*9.869231e-6).

The coefficients for CO and soot or any other added are multiplied by the respective mass fraction being solved

All the species in the dictionary need either to be in the look-up table or being solved. Conversely, all the species solved do not need to be included in the calculation of the absorption coefficient

The names of the species in the absorption dictionary must match exactly the name in the look-up table or the name of the field being solved

The look-up table ("speciesTable") file should be in constant

i.e. dictionary

    LookUpTableFileName     "speciesTable";

    EhrrCoeff       0.0;

    CO2
    {
        Tcommon     300.;   // Common Temp
        invTemp     true;   // Is the polynomial using inverse temperature?
        Tlow        300.;   // Low Temp
        Thigh       2500.;  // High Temp

        loTcoeffs           // coeffs for T < Tcommon
        (
            0               //  a0            +
            0               //  a1*T          +
            0               //  a2*T^(+/-)2   +
            0               //  a3*T^(+/-)3   +
            0               //  a4*T^(+/-)4   +
            0               //  a5*T^(+/-)5   +
        );
        hiTcoeffs           // coeffs for T > Tcommon
        (
            18.741
            -121.31e3
            273.5e6
            -194.05e9
            56.31e12
            -5.8169e15
        );
    }
Source files

Definition at line 104 of file greyMeanAbsorptionEmission.H.

Constructor & Destructor Documentation

◆ greyMeanAbsorptionEmission()

greyMeanAbsorptionEmission ( const dictionary dict,
const fvMesh mesh 
)

Construct from components.

Definition at line 53 of file greyMeanAbsorptionEmission.C.

References Foam::abort(), dict, Foam::endl(), Foam::exit(), Foam::FatalError, FatalErrorInFunction, forAllConstIter(), found, Foam::Info, mesh, Foam::name(), Foam::nl, and Y.

Here is the call graph for this function:

◆ ~greyMeanAbsorptionEmission()

Destructor.

Definition at line 181 of file greyMeanAbsorptionEmission.C.

Member Function Documentation

◆ TypeName()

TypeName ( "greyMeanAbsorptionEmission"  )

Runtime type information.

◆ aCont()

Foam::tmp< Foam::volScalarField > aCont ( const label  bandI = 0) const
virtual

Absorption coefficient for continuous phase.

Reimplemented from absorptionEmissionModel.

Definition at line 188 of file greyMeanAbsorptionEmission.C.

References Foam::constant::physicoChemical::b, Foam::dimLength, Foam::dimless, forAll, forAllConstIter(), mesh, n, Foam::name(), IOobject::NO_READ, IOobject::NO_WRITE, p, Foam::paToAtm(), s(), Foam::T(), and timeName.

Here is the call graph for this function:

◆ eCont()

Foam::tmp< Foam::volScalarField > eCont ( const label  bandI = 0) const
virtual

Emission coefficient for continuous phase.

Reimplemented from absorptionEmissionModel.

Definition at line 269 of file greyMeanAbsorptionEmission.C.

◆ ECont()

Foam::tmp< Foam::volScalarField > ECont ( const label  bandI = 0) const
virtual

Emission contribution for continuous phase.

Reimplemented from absorptionEmissionModel.

Definition at line 276 of file greyMeanAbsorptionEmission.C.

References Foam::dimEnergy, Foam::dimLength, Foam::dimMass, Foam::dimTime, Foam::dimVolume, dQ, Foam::endl(), Foam::name(), IOobject::NO_READ, IOobject::NO_WRITE, Foam::pow3(), and WarningInFunction.

Here is the call graph for this function:

◆ isGrey()

bool isGrey ( ) const
inlinevirtual

Flag for whether the absorption/emission is for a grey gas.

Reimplemented from absorptionEmissionModel.

Definition at line 185 of file greyMeanAbsorptionEmission.H.

Field Documentation

◆ nSpecies_

const int nSpecies_ = 5
static

Definition at line 113 of file greyMeanAbsorptionEmission.H.

◆ coeffs_

Definition at line 116 of file greyMeanAbsorptionEmission.H.

◆ coeffsDict_

dictionary coeffsDict_
private

Absorption model dictionary.

Definition at line 124 of file greyMeanAbsorptionEmission.H.

◆ speciesNames_

HashTable<label> speciesNames_
private

Hash table of species names.

Definition at line 127 of file greyMeanAbsorptionEmission.H.

◆ specieIndex_

FixedList<label, nSpecies_> specieIndex_
private

Indices of species in the look-up table.

Definition at line 130 of file greyMeanAbsorptionEmission.H.

◆ lookUpTablePtr_

autoPtr<interpolationLookUpTable<scalar> > lookUpTablePtr_
mutableprivate

Look-up table of species related to ft.

Definition at line 133 of file greyMeanAbsorptionEmission.H.

◆ thermo_

const fluidThermo& thermo_
private

SLG thermo package.

Definition at line 136 of file greyMeanAbsorptionEmission.H.

◆ EhrrCoeff_

const scalar EhrrCoeff_
private

Emission constant coefficient.

Definition at line 139 of file greyMeanAbsorptionEmission.H.

◆ Yj_

UPtrList<volScalarField> Yj_
private

Pointer list of species in the registry involved in the absorption.

Definition at line 142 of file greyMeanAbsorptionEmission.H.


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