OpenFOAM logo
The Open Source CFD Toolbox
  Source Guide OpenCFD Solutions Contact OpenFOAM

binaryAbsorptionEmission.C

Go to the documentation of this file.
00001 /*---------------------------------------------------------------------------*\
00002   =========                 |
00003   \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox
00004    \\    /   O peration     |
00005     \\  /    A nd           | Copyright (C) 1991-2009 OpenCFD Ltd.
00006      \\/     M anipulation  |
00007 -------------------------------------------------------------------------------
00008 License
00009     This file is part of OpenFOAM.
00010 
00011     OpenFOAM is free software; you can redistribute it and/or modify it
00012     under the terms of the GNU General Public License as published by the
00013     Free Software Foundation; either version 2 of the License, or (at your
00014     option) any later version.
00015 
00016     OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
00017     ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
00018     FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
00019     for more details.
00020 
00021     You should have received a copy of the GNU General Public License
00022     along with OpenFOAM; if not, write to the Free Software Foundation,
00023     Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
00024 
00025 \*---------------------------------------------------------------------------*/
00026 
00027 #include "binaryAbsorptionEmission.H"
00028 #include "addToRunTimeSelectionTable.H"
00029 
00030 // * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
00031 
00032 namespace Foam
00033 {
00034     namespace radiation
00035     {
00036         defineTypeNameAndDebug(binaryAbsorptionEmission, 0);
00037 
00038         addToRunTimeSelectionTable
00039         (
00040             absorptionEmissionModel,
00041             binaryAbsorptionEmission,
00042             dictionary
00043         );
00044     }
00045 }
00046 
00047 
00048 // * * * * * * * * * * * * * * * * Constructors  * * * * * * * * * * * * * * //
00049 
00050 Foam::radiation::binaryAbsorptionEmission::binaryAbsorptionEmission
00051 (
00052     const dictionary& dict,
00053     const fvMesh& mesh
00054 )
00055 :
00056     absorptionEmissionModel(dict, mesh),
00057     coeffsDict_(dict.subDict(typeName + "Coeffs")),
00058     model1_
00059     (
00060         absorptionEmissionModel::New(coeffsDict_.subDict("model1"), mesh)
00061     ),
00062     model2_
00063     (
00064         absorptionEmissionModel::New(coeffsDict_.subDict("model2"), mesh)
00065     )
00066 {}
00067 
00068 
00069 // * * * * * * * * * * * * * * * * Destructor  * * * * * * * * * * * * * * * //
00070 
00071 Foam::radiation::binaryAbsorptionEmission::~binaryAbsorptionEmission()
00072 {}
00073 
00074 
00075 // * * * * * * * * * * * * * * * Member Functions  * * * * * * * * * * * * * //
00076 
00077 Foam::tmp<Foam::volScalarField>
00078 Foam::radiation::binaryAbsorptionEmission::aCont(const label bandI) const
00079 {
00080     return model1_->aCont(bandI) + model2_->aCont(bandI);
00081 }
00082 
00083 
00084 Foam::tmp<Foam::volScalarField>
00085 Foam::radiation::binaryAbsorptionEmission::aDisp(const label bandI) const
00086 {
00087     return model1_->aDisp(bandI) + model2_->aDisp(bandI);
00088 }
00089 
00090 
00091 Foam::tmp<Foam::volScalarField>
00092 Foam::radiation::binaryAbsorptionEmission::eCont(const label bandI) const
00093 {
00094     return model1_->eCont(bandI) + model2_->eCont(bandI);
00095 }
00096 
00097 
00098 Foam::tmp<Foam::volScalarField>
00099 Foam::radiation::binaryAbsorptionEmission::eDisp(const label bandI) const
00100 {
00101     return model1_->eDisp(bandI) + model2_->eDisp(bandI);
00102 }
00103 
00104 
00105 Foam::tmp<Foam::volScalarField>
00106 Foam::radiation::binaryAbsorptionEmission::ECont(const label bandI) const
00107 {
00108     return model1_->ECont(bandI) + model2_->ECont(bandI);
00109 }
00110 
00111 
00112 Foam::tmp<Foam::volScalarField>
00113 Foam::radiation::binaryAbsorptionEmission::EDisp(const label bandI) const
00114 {
00115     return model1_->EDisp(bandI) + model2_->EDisp(bandI);
00116 }
00117 
00118 
00119 // ************************************************************************* //
Copyright © 2000-2009 OpenCFD Ltd