absorptionCoeffs.H
Go to the documentation of this file.
1 /*---------------------------------------------------------------------------*\
2  ========= |
3  \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
4  \\ / O peration | Website: https://openfoam.org
5  \\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation
6  \\/ M anipulation |
7 -------------------------------------------------------------------------------
8 License
9  This file is part of OpenFOAM.
10 
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.
15 
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.
20 
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/>.
23 
24 Class
25  Foam::absorptionCoeffs
26 
27 Description
28  Absorption coefficients class used in greyMean and wideBand
29  absorptionEmission models
30 
31 SourceFiles
32  absorptionCoeffs.C
33 
34 \*---------------------------------------------------------------------------*/
35 
36 #ifndef absorptionCoeffs_H
37 #define absorptionCoeffs_H
38 
39 #include "List.H"
40 #include "IOstreams.H"
41 #include "IOdictionary.H"
42 
43 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
44 
45 namespace Foam
46 {
47 namespace radiationModels
48 {
49 
50 /*---------------------------------------------------------------------------*\
51  Class absorptionCoeffs Declaration
52 \*---------------------------------------------------------------------------*/
53 
54 class absorptionCoeffs
55 {
56 public:
57 
58  // Public data members
59 
60  static const int nCoeffs_ = 6;
62 
63 
64 private:
65 
66  // Private Data
67 
68  // Temperature limits of applicability for functions
69 
70  scalar Tcommon_;
71 
72  scalar Tlow_;
73 
74  scalar Thigh_;
75 
76 
77  // Polynomial using inverse temperatures
78  bool invTemp_;
79 
80  coeffArray highACoeffs_;
81  coeffArray lowACoeffs_;
82 
83 
84  // Private Member Functions
85 
86  //- Check given temperature is within the range of the fitted coeffs
87  void checkT(const scalar T) const;
88 
89 
90 public:
91 
92  // Constructors
93 
94  // Null constructor
96  {}
97 
98 
99  //- Destructor
101 
102 
103  // Member Functions
104 
105  //- Return the coefficients corresponding to the given temperature
106  const coeffArray& coeffs(const scalar T) const;
107 
108  // Initialise from a dictionary
109  void initialise(const dictionary&);
110 
111 
112  // Access Functions
113 
114  inline bool invTemp() const;
115 
116  inline scalar Tcommon() const;
117 
118  inline scalar Tlow() const;
119 
120  inline scalar Thigh() const;
121 
122  inline const coeffArray& highACoeffs() const;
123 
124  inline const coeffArray& lowACoeffs() const;
125 };
126 
127 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
128 
129 } // End namespace Foam
130 } // End namespace radiationModels
131 
132 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
133 
134 #include "absorptionCoeffsI.H"
135 
136 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
137 
138 #endif
139 
140 // ************************************************************************* //
Useful combination of include files which define Sin, Sout and Serr and the use of IO streams general...
A list of keyword definitions, which are a keyword followed by any number of values (e....
Definition: dictionary.H:160
FixedList< scalar, nCoeffs_ > coeffArray
const coeffArray & highACoeffs() const
const coeffArray & coeffs(const scalar T) const
Return the coefficients corresponding to the given temperature.
const coeffArray & lowACoeffs() const
Namespace for OpenFOAM.
void T(FieldField< Field, Type > &f1, const FieldField< Field, Type > &f2)