Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026 #include "binaryAbsorptionEmission.H"
00027 #include <OpenFOAM/addToRunTimeSelectionTable.H>
00028
00029
00030
00031 namespace Foam
00032 {
00033 namespace radiation
00034 {
00035 defineTypeNameAndDebug(binaryAbsorptionEmission, 0);
00036
00037 addToRunTimeSelectionTable
00038 (
00039 absorptionEmissionModel,
00040 binaryAbsorptionEmission,
00041 dictionary
00042 );
00043 }
00044 }
00045
00046
00047
00048
00049 Foam::radiation::binaryAbsorptionEmission::binaryAbsorptionEmission
00050 (
00051 const dictionary& dict,
00052 const fvMesh& mesh
00053 )
00054 :
00055 absorptionEmissionModel(dict, mesh),
00056 coeffsDict_(dict.subDict(typeName + "Coeffs")),
00057 model1_
00058 (
00059 absorptionEmissionModel::New(coeffsDict_.subDict("model1"), mesh)
00060 ),
00061 model2_
00062 (
00063 absorptionEmissionModel::New(coeffsDict_.subDict("model2"), mesh)
00064 )
00065 {}
00066
00067
00068
00069
00070 Foam::radiation::binaryAbsorptionEmission::~binaryAbsorptionEmission()
00071 {}
00072
00073
00074
00075
00076 Foam::tmp<Foam::volScalarField>
00077 Foam::radiation::binaryAbsorptionEmission::aCont(const label bandI) const
00078 {
00079 return model1_->aCont(bandI) + model2_->aCont(bandI);
00080 }
00081
00082
00083 Foam::tmp<Foam::volScalarField>
00084 Foam::radiation::binaryAbsorptionEmission::aDisp(const label bandI) const
00085 {
00086 return model1_->aDisp(bandI) + model2_->aDisp(bandI);
00087 }
00088
00089
00090 Foam::tmp<Foam::volScalarField>
00091 Foam::radiation::binaryAbsorptionEmission::eCont(const label bandI) const
00092 {
00093 return model1_->eCont(bandI) + model2_->eCont(bandI);
00094 }
00095
00096
00097 Foam::tmp<Foam::volScalarField>
00098 Foam::radiation::binaryAbsorptionEmission::eDisp(const label bandI) const
00099 {
00100 return model1_->eDisp(bandI) + model2_->eDisp(bandI);
00101 }
00102
00103
00104 Foam::tmp<Foam::volScalarField>
00105 Foam::radiation::binaryAbsorptionEmission::ECont(const label bandI) const
00106 {
00107 return model1_->ECont(bandI) + model2_->ECont(bandI);
00108 }
00109
00110
00111 Foam::tmp<Foam::volScalarField>
00112 Foam::radiation::binaryAbsorptionEmission::EDisp(const label bandI) const
00113 {
00114 return model1_->EDisp(bandI) + model2_->EDisp(bandI);
00115 }
00116
00117
00118