1 /*---------------------------------------------------------------------------*\
3 \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
5 \\ / A nd | Copyright (C) 2011 OpenFOAM Foundation
7 -------------------------------------------------------------------------------
9 This file is part of OpenFOAM.
11 OpenFOAM is free software: you can redistribute it and/or modify it
12 under the terms of the GNU General Public License as published by
13 the Free Software Foundation, either version 3 of the License, or
14 (at your option) any later version.
16 OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
17 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
18 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
21 You should have received a copy of the GNU General Public License
22 along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
25 Foam::radiation::binaryAbsorptionEmission
28 Radiation coefficient based on two absorption models
31 binaryAbsorptionEmission.C
33 \*---------------------------------------------------------------------------*/
35 #ifndef radiationBinaryAbsorptionEmission_H
36 #define radiationBinaryAbsorptionEmission_H
38 #include "absorptionEmissionModel.H"
40 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
47 /*---------------------------------------------------------------------------*\
48 Class binaryAbsorptionEmission Declaration
49 \*---------------------------------------------------------------------------*/
51 class binaryAbsorptionEmission
53 public absorptionEmissionModel
57 //- Coefficients dictionary
58 dictionary coeffsDict_;
60 //- First absorption model
61 autoPtr<absorptionEmissionModel> model1_;
63 //- Second absorption model
64 autoPtr<absorptionEmissionModel> model2_;
69 //- Runtime type information
70 TypeName("binaryAbsorptionEmission");
75 //- Construct from components
76 binaryAbsorptionEmission
78 const dictionary& dict,
84 virtual ~binaryAbsorptionEmission();
91 // Absorption coefficient
93 //- Absorption coefficient for continuous phase
94 virtual tmp<volScalarField> aCont(const label bandI = 0) const;
96 //- Absorption coefficient for dispersed phase
97 virtual tmp<volScalarField> aDisp(const label bandI = 0) const;
100 // Emission coefficient
102 //- Emission coefficient for continuous phase
103 virtual tmp<volScalarField> eCont(const label bandI = 0) const;
105 //- Emission coefficient for dispersed phase
106 virtual tmp<volScalarField> eDisp(const label bandI = 0) const;
109 // Emission contribution
111 //- Emission contribution for continuous phase
112 virtual tmp<volScalarField> ECont(const label bandI = 0) const;
114 //- Emission contribution for continuous phase
115 virtual tmp<volScalarField> EDisp(const label bandI = 0) const;
119 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
121 } // End namespace radiation
122 } // End namespace Foam
124 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
128 // ************************************************************************* //