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/>.
28 Constant radiative properties
34 \*---------------------------------------------------------------------------*/
36 #ifndef constSolidRad_H
37 #define constSolidRad_H
39 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
44 template<class thermo> class constSolidRad;
46 template<class thermo>
50 const constSolidRad<thermo>&
53 /*---------------------------------------------------------------------------*\
54 Class constSolidRad Declaration
55 \*---------------------------------------------------------------------------*/
57 template<class thermo>
64 //- Absorption coefficient
67 //- Scattering coefficient
70 //- Emissivity coefficient
74 //- Construct from components
80 const scalar emissivity
88 //- Construct from Istream
89 constSolidRad(const dictionary&);
91 //- Construct as named copy
92 inline constSolidRad(const word& name, const constSolidRad&);
94 //- Construct and return a clone
95 inline autoPtr<constSolidRad> clone() const;
97 // Selector from Istream
98 inline static autoPtr<constSolidRad> New(Istream& is);
103 //- Return absorption coefficient [1/m]
104 inline scalar kappa(scalar T) const;
106 //- Return scattering [1/m]
107 inline scalar sigmaS(scalar T) const;
109 //- Return emissivity[]
110 inline scalar emissivity(scalar T) const;
115 friend Ostream& operator<< <thermo>
123 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
125 } // End namespace Foam
127 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
129 #include "constSolidRadI.H"
132 # include "constSolidRad.C"
135 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
139 // ************************************************************************* //