Model to supply absorption and emission coefficients for radiation modelling. More...
#include <radiation/absorptionEmissionModel.H>
Model to supply absorption and emission coefficients for radiation modelling.
Definition at line 53 of file absorptionEmissionModel.H.
Public Member Functions | |
TypeName ("absorptionEmissionModel") | |
Runtime type information.
| |
declareRunTimeSelectionTable (autoPtr, absorptionEmissionModel, dictionary,(const dictionary &dict, const fvMesh &mesh),(dict, mesh)) | |
Declare runtime constructor selection table.
| |
absorptionEmissionModel (const dictionary &dict, const fvMesh &mesh) | |
Construct from components.
| |
virtual | ~absorptionEmissionModel () |
Destructor.
| |
const fvMesh & | mesh () const |
Reference to the mesh.
| |
const dictionary & | dict () const |
Reference to the dictionary.
| |
virtual tmp< volScalarField > | a (const label bandI=0) const |
Absorption coefficient (net)
| |
virtual tmp< volScalarField > | aCont (const label bandI=0) const |
Absorption coefficient for continuous phase.
| |
virtual tmp< volScalarField > | aDisp (const label bandI=0) const |
Absorption coefficient for dispersed phase.
| |
virtual tmp< volScalarField > | e (const label bandI=0) const |
Emission coefficient (net)
| |
virtual tmp< volScalarField > | eCont (const label bandI=0) const |
Return emission coefficient for continuous phase.
| |
virtual tmp< volScalarField > | eDisp (const label bandI=0) const |
Return emission coefficient for dispersed phase.
| |
virtual tmp< volScalarField > | E (const label bandI=0) const |
Emission contribution (net)
| |
virtual tmp< volScalarField > | ECont (const label bandI=0) const |
Emission contribution for continuous phase.
| |
virtual tmp< volScalarField > | EDisp (const label bandI=0) const |
Emission contribution for dispersed phase.
| |
virtual label | nBands () const |
Const access to the number of bands - defaults to 1 for grey.
| |
virtual const Vector2D< scalar > & | bands (const label n) const |
Const access to the bands - defaults to Vector2D::one for grey.
| |
virtual bool | isGrey () const |
Flag for whether the absorption/emission is for a grey gas.
| |
virtual tmp< volScalarField > | addIntensity (const label rayI, const volScalarField &ILambda) const |
Add radiative intensity for ray i.
| |
virtual void | correct (volScalarField &a, PtrList< volScalarField > &aj) const |
Correct absorption coefficients.
| |
Static Public Member Functions | |
static autoPtr < absorptionEmissionModel > | New (const dictionary &dict, const fvMesh &mesh) |
Selector.
| |
Protected Attributes | |
const dictionary | dict_ |
Radiation model dictionary.
| |
const fvMesh & | mesh_ |
Reference to the fvMesh.
|
absorptionEmissionModel | ( | const dictionary & | dict, |
const fvMesh & | mesh | ||
) |
Construct from components.
Definition at line 42 of file absorptionEmissionModel.C.
~absorptionEmissionModel | ( | ) | [virtual]
|
Destructor.
Definition at line 54 of file absorptionEmissionModel.C.
TypeName | ( | "absorptionEmissionModel" | ) |
Runtime type information.
declareRunTimeSelectionTable | ( | autoPtr | , |
absorptionEmissionModel | , | ||
dictionary | , | ||
(const dictionary &dict, const fvMesh &mesh) | , | ||
(dict, mesh) | |||
) |
Declare runtime constructor selection table.
Foam::autoPtr< Foam::radiation::absorptionEmissionModel > New | ( | const dictionary & | dict, |
const fvMesh & | mesh | ||
) | [static]
|
Selector.
Definition at line 33 of file newAbsorptionEmissionModel.C.
References Foam::endl(), Foam::exit(), Foam::FatalError, FatalErrorIn, Foam::Info, dictionary::lookup(), mesh, and Foam::nl.
const fvMesh& mesh | ( | ) | const [inline]
|
Reference to the mesh.
Definition at line 114 of file absorptionEmissionModel.H.
References absorptionEmissionModel::mesh_.
const dictionary& dict | ( | ) | const [inline]
|
Reference to the dictionary.
Definition at line 120 of file absorptionEmissionModel.H.
References absorptionEmissionModel::dict_.
Foam::tmp< Foam::volScalarField > a | ( | const label | bandI = 0
) |
const [virtual]
|
Absorption coefficient (net)
Definition at line 61 of file absorptionEmissionModel.C.
Foam::tmp< Foam::volScalarField > aCont | ( | const label | bandI = 0
) |
const [virtual]
|
Absorption coefficient for continuous phase.
Reimplemented in binaryAbsorptionEmission, constantAbsorptionEmission, greyMeanAbsorptionEmission, and wideBandAbsorptionEmission.
Definition at line 68 of file absorptionEmissionModel.C.
References Foam::dimLength, Foam::dimless, IOobject::NO_READ, and IOobject::NO_WRITE.
Foam::tmp< Foam::volScalarField > aDisp | ( | const label | bandI = 0
) |
const [virtual]
|
Absorption coefficient for dispersed phase.
Reimplemented in cloudAbsorptionEmission, and binaryAbsorptionEmission.
Definition at line 91 of file absorptionEmissionModel.C.
References Foam::dimLength, Foam::dimless, IOobject::NO_READ, and IOobject::NO_WRITE.
Foam::tmp< Foam::volScalarField > e | ( | const label | bandI = 0
) |
const [virtual]
|
Emission coefficient (net)
Definition at line 114 of file absorptionEmissionModel.C.
Foam::tmp< Foam::volScalarField > eCont | ( | const label | bandI = 0
) |
const [virtual]
|
Return emission coefficient for continuous phase.
Reimplemented in binaryAbsorptionEmission, constantAbsorptionEmission, greyMeanAbsorptionEmission, and wideBandAbsorptionEmission.
Definition at line 121 of file absorptionEmissionModel.C.
References Foam::dimLength, Foam::dimless, IOobject::NO_READ, and IOobject::NO_WRITE.
Foam::tmp< Foam::volScalarField > eDisp | ( | const label | bandI = 0
) |
const [virtual]
|
Return emission coefficient for dispersed phase.
Reimplemented in cloudAbsorptionEmission, and binaryAbsorptionEmission.
Definition at line 144 of file absorptionEmissionModel.C.
References Foam::dimLength, Foam::dimless, IOobject::NO_READ, and IOobject::NO_WRITE.
Foam::tmp< Foam::volScalarField > E | ( | const label | bandI = 0
) |
const [virtual]
|
Emission contribution (net)
Definition at line 167 of file absorptionEmissionModel.C.
Foam::tmp< Foam::volScalarField > ECont | ( | const label | bandI = 0
) |
const [virtual]
|
Emission contribution for continuous phase.
Reimplemented in binaryAbsorptionEmission, constantAbsorptionEmission, greyMeanAbsorptionEmission, and wideBandAbsorptionEmission.
Definition at line 174 of file absorptionEmissionModel.C.
References Foam::dimLength, Foam::dimMass, Foam::dimTime, IOobject::NO_READ, IOobject::NO_WRITE, and Foam::pow3().
Foam::tmp< Foam::volScalarField > EDisp | ( | const label | bandI = 0
) |
const [virtual]
|
Emission contribution for dispersed phase.
Reimplemented in cloudAbsorptionEmission, and binaryAbsorptionEmission.
Definition at line 197 of file absorptionEmissionModel.C.
References Foam::dimLength, Foam::dimMass, Foam::dimTime, IOobject::NO_READ, IOobject::NO_WRITE, and Foam::pow3().
Foam::label nBands | ( | ) | const [virtual]
|
Const access to the number of bands - defaults to 1 for grey.
absorption/emission
Reimplemented in wideBandAbsorptionEmission.
Definition at line 219 of file absorptionEmissionModel.C.
const Foam::Vector2D< Foam::scalar > & bands | ( | const label | n ) | const [virtual]
|
Const access to the bands - defaults to Vector2D::one for grey.
absorption/emission
Reimplemented in wideBandAbsorptionEmission.
Definition at line 226 of file absorptionEmissionModel.C.
bool isGrey | ( | ) | const [virtual]
|
Flag for whether the absorption/emission is for a grey gas.
Reimplemented in constantAbsorptionEmission, greyMeanAbsorptionEmission, and wideBandAbsorptionEmission.
Definition at line 232 of file absorptionEmissionModel.C.
Foam::tmp< Foam::volScalarField > addIntensity | ( | const label | rayI, |
const volScalarField & | ILambda | ||
) | const [virtual]
|
Add radiative intensity for ray i.
Reimplemented in wideBandAbsorptionEmission.
Definition at line 240 of file absorptionEmissionModel.C.
void correct | ( | volScalarField & | a, |
PtrList< volScalarField > & | aj | ||
) | const [virtual]
|
Correct absorption coefficients.
Reimplemented in wideBandAbsorptionEmission.
Definition at line 250 of file absorptionEmissionModel.C.
References GeometricField< Type, PatchField, GeoMesh >::internalField().
const dictionary dict_ [protected]
|
Radiation model dictionary.
Definition at line 61 of file absorptionEmissionModel.H.
Referenced by absorptionEmissionModel::dict().
Reference to the fvMesh.
Definition at line 64 of file absorptionEmissionModel.H.
Referenced by absorptionEmissionModel::mesh().