exponentialSolidTransport.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-2023 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::exponentialSolidTransport
26 
27 Description
28  Exponential properties for solid heat transport
29  Templated into a given thermodynamics package.
30 
31 SourceFiles
32  exponentialSolidTransportI.H
33  exponentialSolidTransport.C
34 
35 \*---------------------------------------------------------------------------*/
36 
37 #ifndef exponentialSolidTransport_H
38 #define exponentialSolidTransport_H
39 
40 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
41 
42 namespace Foam
43 {
44 
45 template<class Thermo> class exponentialSolidTransport;
46 
47 template<class Thermo>
48 inline exponentialSolidTransport<Thermo> operator*
49 (
50  const scalar,
52 );
53 
54 template<class Thermo>
55 Ostream& operator<<
56 (
57  Ostream&,
59 );
60 
61 
62 /*---------------------------------------------------------------------------*\
63  Class exponentialSolidTransport Declaration
64 \*---------------------------------------------------------------------------*/
65 
66 template<class Thermo>
68 :
69  public Thermo
70 {
71  // Private Data
72 
73  //- Constant thermal coefficient.
74  scalar kappa0_;
75 
76  //- Exponent coefficient
77  scalar n0_;
78 
79  //- Reference temperature
80  scalar Tref_;
81 
82 
83 public:
84 
85  // Constructors
86 
87  //- Construct from components
89  (
90  const Thermo& t,
91  const scalar kappa0,
92  const scalar n0,
93  const scalar Tref
94  );
95 
96  //- Construct as named copy
98  (
99  const word&,
101  );
102 
103  //- Construct from name and dictionary
105 
106  //- Construct and return a clone
108 
109 
110  // Member Functions
111 
112  //- Return the instantiated type name
113  static word typeName()
114  {
115  return "exponentialSolid<" + Thermo::typeName() + '>';
116  }
117 
118  //- Is the thermal conductivity isotropic
119  static const bool isotropic = true;
120 
121  //- Isotropic thermal conductivity [W/m/K]
122  inline scalar kappa(const scalar p, const scalar T) const;
123 
124  //- Anisotropic thermal conductivity [W/m/K]
125  // Not implemented
126  inline vector Kappa(const scalar p, const scalar T) const;
127 
128  //- Write to Ostream
129  void write(Ostream& os) const;
130 
131 
132  // Member Operators
133 
134  inline void operator+=(const exponentialSolidTransport&);
135 
136 
137  // Friend operators
138 
139  friend exponentialSolidTransport operator* <Thermo>
140  (
141  const scalar,
143  );
144 
145  // Ostream Operator
146 
147  friend Ostream& operator<< <Thermo>
148  (
149  Ostream&,
151  );
152 };
153 
154 
155 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
156 
157 } // End namespace Foam
158 
159 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
160 
162 
163 #ifdef NoRepository
164  #include "exponentialSolidTransport.C"
165 #endif
166 
167 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
168 
169 #endif
170 
171 // ************************************************************************* //
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
Definition: Ostream.H:57
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
Definition: autoPtr.H:51
A list of keyword definitions, which are a keyword followed by any number of values (e....
Definition: dictionary.H:160
Exponential properties for solid heat transport Templated into a given thermodynamics package.
vector Kappa(const scalar p, const scalar T) const
Anisotropic thermal conductivity [W/m/K].
exponentialSolidTransport(const Thermo &t, const scalar kappa0, const scalar n0, const scalar Tref)
Construct from components.
scalar kappa(const scalar p, const scalar T) const
Isotropic thermal conductivity [W/m/K].
static word typeName()
Return the instantiated type name.
static const bool isotropic
Is the thermal conductivity isotropic.
void write(Ostream &os) const
Write to Ostream.
autoPtr< exponentialSolidTransport > clone() const
Construct and return a clone.
void operator+=(const exponentialSolidTransport &)
A class for handling words, derived from string.
Definition: word.H:62
Namespace for OpenFOAM.
word name(const bool)
Return a word representation of a bool.
Definition: boolIO.C:39
void T(FieldField< Field, Type > &f1, const FieldField< Field, Type > &f2)
dictionary dict
volScalarField & p