Forward compatibility: flex
[foam-extend-3.2.git] / src / thermophysicalModels / radiation / submodels / absorptionEmissionModel / binaryAbsorptionEmission / binaryAbsorptionEmission.C
blob666ea6212b8978062736db2e4433e82dd2fa780b
1 /*---------------------------------------------------------------------------*\
2   =========                 |
3   \\      /  F ield         | foam-extend: Open Source CFD
4    \\    /   O peration     | Version:     3.2
5     \\  /    A nd           | Web:         http://www.foam-extend.org
6      \\/     M anipulation  | For copyright notice see file Copyright
7 -------------------------------------------------------------------------------
8 License
9     This file is part of foam-extend.
11     foam-extend is free software: you can redistribute it and/or modify it
12     under the terms of the GNU General Public License as published by the
13     Free Software Foundation, either version 3 of the License, or (at your
14     option) any later version.
16     foam-extend is distributed in the hope that it will be useful, but
17     WITHOUT ANY WARRANTY; without even the implied warranty of
18     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
19     General Public License for more details.
21     You should have received a copy of the GNU General Public License
22     along with foam-extend.  If not, see <http://www.gnu.org/licenses/>.
24 \*---------------------------------------------------------------------------*/
26 #include "binaryAbsorptionEmission.H"
27 #include "addToRunTimeSelectionTable.H"
29 // * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
31 namespace Foam
33     namespace radiation
34     {
35         defineTypeNameAndDebug(binaryAbsorptionEmission, 0);
37         addToRunTimeSelectionTable
38         (
39             absorptionEmissionModel,
40             binaryAbsorptionEmission,
41             dictionary
42         );
43     }
47 // * * * * * * * * * * * * * * * * Constructors  * * * * * * * * * * * * * * //
49 Foam::radiation::binaryAbsorptionEmission::binaryAbsorptionEmission
51     const dictionary& dict,
52     const fvMesh& mesh
55     absorptionEmissionModel(dict, mesh),
56     coeffsDict_(dict.subDict(typeName + "Coeffs")),
57     model1_
58     (
59         absorptionEmissionModel::New(coeffsDict_.subDict("model1"), mesh)
60     ),
61     model2_
62     (
63         absorptionEmissionModel::New(coeffsDict_.subDict("model2"), mesh)
64     )
68 // * * * * * * * * * * * * * * * * Destructor  * * * * * * * * * * * * * * * //
70 Foam::radiation::binaryAbsorptionEmission::~binaryAbsorptionEmission()
74 // * * * * * * * * * * * * * * * Member Functions  * * * * * * * * * * * * * //
76 Foam::tmp<Foam::volScalarField>
77 Foam::radiation::binaryAbsorptionEmission::aCont(const label bandI) const
79     return model1_->aCont(bandI) + model2_->aCont(bandI);
83 Foam::tmp<Foam::volScalarField>
84 Foam::radiation::binaryAbsorptionEmission::aDisp(const label bandI) const
86     return model1_->aDisp(bandI) + model2_->aDisp(bandI);
90 Foam::tmp<Foam::volScalarField>
91 Foam::radiation::binaryAbsorptionEmission::eCont(const label bandI) const
93     return model1_->eCont(bandI) + model2_->eCont(bandI);
97 Foam::tmp<Foam::volScalarField>
98 Foam::radiation::binaryAbsorptionEmission::eDisp(const label bandI) const
100     return model1_->eDisp(bandI) + model2_->eDisp(bandI);
104 Foam::tmp<Foam::volScalarField>
105 Foam::radiation::binaryAbsorptionEmission::ECont(const label bandI) const
107     return model1_->ECont(bandI) + model2_->ECont(bandI);
111 Foam::tmp<Foam::volScalarField>
112 Foam::radiation::binaryAbsorptionEmission::EDisp(const label bandI) const
114     return model1_->EDisp(bandI) + model2_->EDisp(bandI);
118 // ************************************************************************* //