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/>.
24 \*---------------------------------------------------------------------------*/
26 #include "binaryAbsorptionEmission.H"
27 #include "addToRunTimeSelectionTable.H"
29 // * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
35 defineTypeNameAndDebug(binaryAbsorptionEmission, 0);
37 addToRunTimeSelectionTable
39 absorptionEmissionModel,
40 binaryAbsorptionEmission,
47 // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
49 Foam::radiation::binaryAbsorptionEmission::binaryAbsorptionEmission
51 const dictionary& dict,
55 absorptionEmissionModel(dict, mesh),
56 coeffsDict_(dict.subDict(typeName + "Coeffs")),
59 absorptionEmissionModel::New(coeffsDict_.subDict("model1"), mesh)
63 absorptionEmissionModel::New(coeffsDict_.subDict("model2"), mesh)
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 // ************************************************************************* //