constAnisoSolidTransport.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::constAnisoSolidTransport
26 
27 Description
28  Constant properties Transport package.
29  Templated into a given Thermodynamics package (needed for thermal
30  conductivity).
31 
32 SourceFiles
33  constAnisoSolidTransportI.H
34  constAnisoSolidTransport.C
35 
36 \*---------------------------------------------------------------------------*/
37 
38 #ifndef constAnisoSolidTransport_H
39 #define constAnisoSolidTransport_H
40 #include "vector.H"
41 
42 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
43 
44 namespace Foam
45 {
46 
47 template<class Thermo> class constAnisoSolidTransport;
48 
49 template<class Thermo>
50 inline constAnisoSolidTransport<Thermo> operator*
51 (
52  const scalar,
54 );
55 
56 template<class Thermo>
57 Ostream& operator<<
58 (
59  Ostream&,
61 );
62 
63 
64 /*---------------------------------------------------------------------------*\
65  Class constAnisoSolidTransport Declaration
66 \*---------------------------------------------------------------------------*/
67 
68 template<class Thermo>
70 :
71  public Thermo
72 {
73  // Private Data
74 
75  //- Constant anisotropic thermal conductivity.
76  vector kappa_;
77 
78 
79 public:
80 
81  // Constructors
82 
83  //- Construct from components
84  inline constAnisoSolidTransport(const Thermo& t, const vector kappa);
85 
86  //- Construct as named copy
88  (
89  const word&,
91  );
92 
93  //- Construct from name and dictionary
95 
96  //- Construct and return a clone
98 
99 
100  // Member Functions
101 
102  //- Return the instantiated type name
103  static word typeName()
104  {
105  return "constAnisoSolid<" + Thermo::typeName() + '>';
106  }
107 
108  //- Is the thermal conductivity isotropic
109  static const bool isotropic = false;
110 
111  //- Isotropic thermal conductivity [W/m/K]
112  // Not implemented
113  inline scalar kappa(const scalar p, const scalar T) const;
114 
115  //- Anisotropic thermal conductivity [W/m/K]
116  inline vector Kappa(const scalar p, const scalar T) const;
117 
118  //- Write to Ostream
119  void write(Ostream& os) const;
120 
121 
122  // Member Operators
123 
124  inline void operator+=(const constAnisoSolidTransport&);
125 
126 
127  // Friend operators
128 
129  friend constAnisoSolidTransport operator* <Thermo>
130  (
131  const scalar,
133  );
134 
135 
136  // Ostream Operator
137 
138  friend Ostream& operator<< <Thermo>
139  (
140  Ostream&,
142  );
143 };
144 
145 
146 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
147 
148 } // End namespace Foam
149 
150 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
151 
153 
154 #ifdef NoRepository
155  #include "constAnisoSolidTransport.C"
156 #endif
157 
158 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
159 
160 #endif
161 
162 // ************************************************************************* //
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...
void operator+=(const constAnisoSolidTransport &)
autoPtr< constAnisoSolidTransport > clone() const
Construct and return a clone.
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.
constAnisoSolidTransport(const Thermo &t, const vector kappa)
Construct from components.
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 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