constAnIsoSolidTransport.H
Go to the documentation of this file.
1 /*---------------------------------------------------------------------------*\
2  ========= |
3  \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
4  \\ / O peration |
5  \\ / A nd | www.openfoam.com
6  \\/ M anipulation |
7 -------------------------------------------------------------------------------
8  Copyright (C) 2011-2017 OpenFOAM Foundation
9 -------------------------------------------------------------------------------
10 License
11  This file is part of OpenFOAM.
12 
13  OpenFOAM is free software: you can redistribute it and/or modify it
14  under the terms of the GNU General Public License as published by
15  the Free Software Foundation, either version 3 of the License, or
16  (at your option) any later version.
17 
18  OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
19  ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
20  FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
21  for more details.
22 
23  You should have received a copy of the GNU General Public License
24  along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
25 
26 Class
27  Foam::constAnIsoSolidTransport
28 
29 Description
30  Constant properties Transport package.
31  Templated into a given Thermodynamics package (needed for thermal
32  conductivity).
33 
34 SourceFiles
35  constAnIsoSolidTransportI.H
36  constAnIsoSolidTransport.C
37 
38 \*---------------------------------------------------------------------------*/
39 
40 #ifndef constAnIsoSolidTransport_H
41 #define constAnIsoSolidTransport_H
42 #include "vector.H"
43 
44 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
45 
46 namespace Foam
47 {
48 
49 template<class Thermo> class constAnIsoSolidTransport;
50 
51 template<class Thermo>
52 inline constAnIsoSolidTransport<Thermo> operator*
53 (
54  const scalar,
56 );
57 
58 template<class Thermo>
59 Ostream& operator<<
60 (
61  Ostream&,
63 );
64 
65 
66 /*---------------------------------------------------------------------------*\
67  Class constAnIsoSolidTransport Declaration
68 \*---------------------------------------------------------------------------*/
69 
70 template<class Thermo>
72 :
73  public Thermo
74 {
75  // Private data
76 
77  //- Constant anisotropic thermal conductivity.
78  vector kappa_;
79 
80 
81  // Private Member Functions
82 
83  //- Construct from components
84  inline constAnIsoSolidTransport(const Thermo& t, const vector kappa);
85 
86 
87 public:
88 
89  // Constructors
90 
91  //- Construct as named copy
93  (
94  const word&,
96  );
97 
98  //- Construct from dictionary
100 
101  // Selector from dictionary
103  (
104  const dictionary& dict
105  );
106 
107 
108  // Member functions
109 
110  //- Return the instantiated type name
111  static word typeName()
112  {
113  return "constAnIso<" + Thermo::typeName() + '>';
114  }
115 
116  //- Is the thermal conductivity isotropic
117  static const bool isotropic = false;
118 
119  //- Isotropic thermal conductivity [W/mK]
120  inline scalar kappa(const scalar p, const scalar T) const;
121 
122  //- Un-isotropic thermal conductivity [W/mK]
123  inline vector Kappa(const scalar p, const scalar T) const;
124 
125  //- Dynamic viscosity [kg/ms]
126  inline scalar mu(const scalar p, const scalar T) const;
127 
128  //- Thermal diffusivity of enthalpy [kg/ms]
129  inline vector alphah(const scalar p, const scalar T) const;
130 
131 
132  //- Write to Ostream
133  void write(Ostream& os) const;
134 
135 
136  // Member operators
137 
138  inline void operator=(const constAnIsoSolidTransport&);
139  inline void operator+=(const constAnIsoSolidTransport&);
140 
141 
142  // Friend operators
143 
144  friend constAnIsoSolidTransport operator* <Thermo>
145  (
146  const scalar,
148  );
149 
150 
151  // Ostream Operator
152 
153  friend Ostream& operator<< <Thermo>
154  (
155  Ostream&,
157  );
158 };
159 
160 
161 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
162 
163 } // End namespace Foam
164 
165 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
166 
168 
169 #ifdef NoRepository
170  #include "constAnIsoSolidTransport.C"
171 #endif
172 
173 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
174 
175 #endif
176 
177 // ************************************************************************* //
p
volScalarField & p
Definition: createFieldRefs.H:8
Foam::word
A class for handling words, derived from Foam::string.
Definition: word.H:62
Foam::constAnIsoSolidTransport
Constant properties Transport package. Templated into a given Thermodynamics package (needed for ther...
Definition: constAnIsoSolidTransport.H:48
Foam::constAnIsoSolidTransport::operator=
void operator=(const constAnIsoSolidTransport &)
Definition: constAnIsoSolidTransportI.H:101
Foam::constAnIsoSolidTransport::write
void write(Ostream &os) const
Write to Ostream.
Foam::constAnIsoSolidTransport::alphah
vector alphah(const scalar p, const scalar T) const
Thermal diffusivity of enthalpy [kg/ms].
Definition: constAnIsoSolidTransportI.H:92
constAnIsoSolidTransport.C
Foam::T
void T(FieldField< Field, Type > &f1, const FieldField< Field, Type > &f2)
Definition: FieldFieldFunctions.C:58
constAnIsoSolidTransportI.H
dict
dictionary dict
Definition: searchingEngine.H:14
Foam::dictionary
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Definition: dictionary.H:121
Foam::constAnIsoSolidTransport::New
static autoPtr< constAnIsoSolidTransport > New(const dictionary &dict)
Definition: constAnIsoSolidTransportI.H:57
Foam
Namespace for OpenFOAM.
Definition: atmBoundaryLayer.C:33
Foam::constAnIsoSolidTransport::isotropic
static const bool isotropic
Is the thermal conductivity isotropic.
Definition: constAnIsoSolidTransport.H:116
Foam::constAnIsoSolidTransport::mu
scalar mu(const scalar p, const scalar T) const
Dynamic viscosity [kg/ms].
Definition: constAnIsoSolidTransportI.H:83
Foam::constAnIsoSolidTransport::typeName
static word typeName()
Return the instantiated type name.
Definition: constAnIsoSolidTransport.H:110
Foam::constAnIsoSolidTransport::operator+=
void operator+=(const constAnIsoSolidTransport &)
Definition: constAnIsoSolidTransportI.H:111
Foam::autoPtr
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
Definition: HashPtrTable.H:53
Foam::constAnIsoSolidTransport::Kappa
vector Kappa(const scalar p, const scalar T) const
Un-isotropic thermal conductivity [W/mK].
Definition: constAnIsoSolidTransportI.H:75
Foam::Vector< scalar >
Foam::constAnIsoSolidTransport::kappa
scalar kappa(const scalar p, const scalar T) const
Isotropic thermal conductivity [W/mK].
Definition: constAnIsoSolidTransportI.H:68
vector.H
Foam::Ostream
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
Definition: Ostream.H:56