ENH: autoLayerDriver: better layering information message
[OpenFOAM-2.0.x.git] / src / thermophysicalModels / radiationModels / submodels / absorptionEmissionModel / binaryAbsorptionEmission / binaryAbsorptionEmission.C
blob09ca88c56d6df9b7a569d5cdf1f8163d9185b115
1 /*---------------------------------------------------------------------------*\
2   =========                 |
3   \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox
4    \\    /   O peration     |
5     \\  /    A nd           | Copyright (C) 2011 OpenFOAM Foundation
6      \\/     M anipulation  |
7 -------------------------------------------------------------------------------
8 License
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
19     for more details.
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/>.
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 // ************************************************************************* //