/*---------------------------------------------------------------------------*\ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | Website: https://openfoam.org \\ / A nd | Copyright (C) 2011-2024 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License This file is part of OpenFOAM. OpenFOAM is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. OpenFOAM is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with OpenFOAM. If not, see . \*---------------------------------------------------------------------------*/ #include "binary.H" #include "addToRunTimeSelectionTable.H" // * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * // namespace Foam { namespace radiationModels { namespace absorptionEmissionModels { defineTypeNameAndDebug(binary, 0); addToRunTimeSelectionTable ( absorptionEmissionModel, binary, dictionary ); } } } // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * // Foam::radiationModels::absorptionEmissionModels::binary::binary ( const dictionary& dict, const fvMesh& mesh ) : absorptionEmissionModel(mesh), model1_ ( absorptionEmissionModel::New(dict.subDict("model1"), mesh) ), model2_ ( absorptionEmissionModel::New(dict.subDict("model2"), mesh) ) {} // * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * // Foam::radiationModels::absorptionEmissionModels::binary::~binary() {} // * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * // Foam::tmp Foam::radiationModels::absorptionEmissionModels::binary::aCont ( const label bandI ) const { return model1_->aCont(bandI) + model2_->aCont(bandI); } Foam::tmp Foam::radiationModels::absorptionEmissionModels::binary::aDisp ( const label bandI ) const { return model1_->aDisp(bandI) + model2_->aDisp(bandI); } Foam::tmp Foam::radiationModels::absorptionEmissionModels::binary::eCont ( const label bandI ) const { return model1_->eCont(bandI) + model2_->eCont(bandI); } Foam::tmp Foam::radiationModels::absorptionEmissionModels::binary::eDisp ( const label bandI ) const { return model1_->eDisp(bandI) + model2_->eDisp(bandI); } Foam::tmp Foam::radiationModels::absorptionEmissionModels::binary::ECont ( const label bandI ) const { return model1_->ECont(bandI) + model2_->ECont(bandI); } Foam::tmp Foam::radiationModels::absorptionEmissionModels::binary::EDisp ( const label bandI ) const { return model1_->EDisp(bandI) + model2_->EDisp(bandI); } // ************************************************************************* //