constIsoSolidTransport.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::constIsoSolidTransport
26 
27 Description
28  Constant properties Transport package.
29  Templated into a given thermodynamics package (needed for thermal
30  conductivity).
31 
32 SourceFiles
33  constIsoSolidTransportI.H
34  constIsoSolidTransport.C
35 
36 \*---------------------------------------------------------------------------*/
37 
38 #ifndef constIsoSolidTransport_H
39 #define constIsoSolidTransport_H
40 
41 #include "vector.H"
42 
43 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
44 
45 namespace Foam
46 {
47 
48 template<class Thermo> class constIsoSolidTransport;
49 
50 template<class Thermo>
51 inline constIsoSolidTransport<Thermo> operator*
52 (
53  const scalar,
55 );
56 
57 template<class Thermo>
58 Ostream& operator<<
59 (
60  Ostream&,
62 );
63 
64 
65 /*---------------------------------------------------------------------------*\
66  Class constIsoSolidTransport Declaration
67 \*---------------------------------------------------------------------------*/
68 
69 template<class Thermo>
71 :
72  public Thermo
73 {
74  // Private Data
75 
76  //- Constant isotropic thermal conductivity
77  scalar kappa_;
78 
79 
80 public:
81 
82  // Constructors
83 
84  //- Construct from components
85  inline constIsoSolidTransport(const Thermo& t, const scalar kappa);
86 
87  //- Construct as named copy
89  (
90  const word&,
92  );
93 
94  //- Construct from name and dictionary
96 
97  //- Construct and return a clone
99 
100 
101  // Member Functions
102 
103  //- Return the instantiated type name
104  static word typeName()
105  {
106  return "constIsoSolid<" + Thermo::typeName() + '>';
107  }
108 
109  //- Is the thermal conductivity isotropic
110  static const bool isotropic = true;
111 
112  //- Isotropic thermal conductivity [W/m/K]
113  inline scalar kappa(const scalar p, const scalar T) const;
114 
115  //- Anisotropic thermal conductivity [W/m/K]
116  // Not implemented
117  inline vector Kappa(const scalar p, const scalar T) const;
118 
119  //- Write to Ostream
120  void write(Ostream& os) const;
121 
122 
123  // Member Operators
124 
125  inline void operator+=(const constIsoSolidTransport&);
126 
127 
128  // Friend operators
129 
130  friend constIsoSolidTransport operator* <Thermo>
131  (
132  const scalar,
134  );
135 
136 
137  // Ostream Operator
138 
139  friend Ostream& operator<< <Thermo>
140  (
141  Ostream&,
143  );
144 };
145 
146 
147 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
148 
149 } // End namespace Foam
150 
151 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
152 
153 #include "constIsoSolidTransportI.H"
154 
155 #ifdef NoRepository
156  #include "constIsoSolidTransport.C"
157 #endif
158 
159 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
160 
161 #endif
162 
163 // ************************************************************************* //
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
Constant properties Transport package. Templated into a given thermodynamics package (needed for ther...
vector Kappa(const scalar p, const scalar T) const
Anisotropic thermal conductivity [W/m/K].
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.
constIsoSolidTransport(const Thermo &t, const scalar kappa)
Construct from components.
autoPtr< constIsoSolidTransport > clone() const
Construct and return a clone.
void operator+=(const constIsoSolidTransport &)
A list of keyword definitions, which are a keyword followed by any number of values (e....
Definition: dictionary.H:160
A class for handling words, derived from string.
Definition: word.H:62
Namespace for OpenFOAM.
word name(const complex &)
Return a string representation of a complex.
Definition: complex.C:47
void T(FieldField< Field, Type > &f1, const FieldField< Field, Type > &f2)
dictionary dict
volScalarField & p