tabulatedSolidTransport.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) 2021-2022 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::tabulatedSolidTransport
26 
27 Description
28  Transport properties package using non-uniformly-spaced tabulated data for
29  thermal conductivity vs temperature.
30 
31 Usage
32  \table
33  Property | Description
34  kappa | Thermal conductivity vs temperature table
35  \endtable
36 
37  Example of the specification of the transport properties:
38  \verbatim
39  transport
40  {
41  kappa
42  {
43  values
44  (
45  (200 380)
46  (350 400)
47  (400 450)
48  );
49  }
50  }
51  \endverbatim
52 
53 SourceFiles
54  tabulatedSolidTransportI.H
55  tabulatedSolidTransport.C
56 
57 \*---------------------------------------------------------------------------*/
58 
59 #ifndef tabulatedSolidTransport_H
60 #define tabulatedSolidTransport_H
61 
62 #include "NonUniformTable1.H"
63 
64 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
65 
66 namespace Foam
67 {
68 
69 template<class Thermo> class tabulatedSolidTransport;
70 
71 template<class Thermo>
72 inline tabulatedSolidTransport<Thermo> operator*
73 (
74  const scalar,
76 );
77 
78 template<class Thermo>
79 Ostream& operator<<
80 (
81  Ostream&,
83 );
84 
85 
86 /*---------------------------------------------------------------------------*\
87  Class tabulatedSolidTransport Declaration
88 \*---------------------------------------------------------------------------*/
89 
90 template<class Thermo>
92 :
93  public Thermo
94 {
96 
97 
98  // Private Data
99 
100  //- Thermal conductivity table [W/m/K]
101  nonUniformTable kappa_;
102 
103 
104  // Private Member Functions
105 
106  //- Construct from components
108  (
109  const Thermo& t,
110  const nonUniformTable& kappa
111  );
112 
113 
114 public:
115 
116  // Constructors
117 
118  //- Construct as named copy
120  (
121  const word&,
123  );
124 
125  //- Construct from dictionary
127 
128  //- Construct and return a clone
130 
131  // Selector from dictionary
133  (
134  const dictionary& dict
135  );
136 
137 
138  // Member Functions
139 
140  //- Return the instantiated type name
141  static word typeName()
142  {
143  return "tabulatedSolid<" + Thermo::typeName() + '>';
144  }
145 
146  //- Is the thermal conductivity isotropic
147  static const bool isotropic = true;
148 
149  //- Thermal conductivity [W/m/K]
150  inline scalar kappa(const scalar p, const scalar T) const;
151 
152  //- Thermal conductivity [W/m/K]
153  inline vector Kappa(const scalar p, const scalar T) const;
154 
155  //- Dynamic viscosity [kg/m/s]
156  inline scalar mu(const scalar p, const scalar T) const;
157 
158  //- Write to Ostream
159  void write(Ostream& os) const;
160 
161 
162  // Ostream Operator
163 
164  friend Ostream& operator<< <Thermo>
165  (
166  Ostream&,
168  );
169 };
170 
171 
172 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
173 
174 } // End namespace Foam
175 
176 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
177 
179 
180 #ifdef NoRepository
181  #include "tabulatedSolidTransport.C"
182 #endif
183 
184 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
185 
186 #endif
187 
188 // ************************************************************************* //
dictionary dict
static const bool isotropic
Is the thermal conductivity isotropic.
A list of keyword definitions, which are a keyword followed by any number of values (e...
Definition: dictionary.H:156
vector Kappa(const scalar p, const scalar T) const
Thermal conductivity [W/m/K].
autoPtr< tabulatedSolidTransport > clone() const
Construct and return a clone.
A class for handling words, derived from string.
Definition: word.H:59
scalar mu(const scalar p, const scalar T) const
Dynamic viscosity [kg/m/s].
scalar kappa(const scalar p, const scalar T) const
Thermal conductivity [W/m/K].
An Ostream is an abstract base class for all output systems (streams, files, token lists...
Definition: Ostream.H:54
void T(FieldField< Field, Type > &f1, const FieldField< Field, Type > &f2)
Transport properties package using non-uniformly-spaced tabulated data for thermal conductivity vs te...
static autoPtr< tabulatedSolidTransport > New(const dictionary &dict)
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
Definition: PtrList.H:52
static word typeName()
Return the instantiated type name.
volScalarField & p
void write(Ostream &os) const
Write to Ostream.
Namespace for OpenFOAM.