1 /*---------------------------------------------------------------------------*\
3 \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
5 \\ / A nd | Copyright (C) 1991-2009 OpenCFD Ltd.
7 -------------------------------------------------------------------------------
9 This file is part of OpenFOAM.
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 the
13 Free Software Foundation; either version 2 of the License, or (at your
14 option) any later version.
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
21 You should have received a copy of the GNU General Public License
22 along with OpenFOAM; if not, write to the Free Software Foundation,
23 Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
29 Constant properties Transport package.
30 Templated into a given thermodynamics package (needed for thermal
37 \*---------------------------------------------------------------------------*/
39 #ifndef constTransport_H
40 #define constTransport_H
42 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
47 // Forward declaration of friend functions and operators
49 template<class thermo> class constTransport;
51 template<class thermo>
52 inline constTransport<thermo> operator+
54 const constTransport<thermo>&,
55 const constTransport<thermo>&
58 template<class thermo>
59 inline constTransport<thermo> operator-
61 const constTransport<thermo>&,
62 const constTransport<thermo>&
65 template<class thermo>
66 inline constTransport<thermo> operator*
69 const constTransport<thermo>&
72 template<class thermo>
73 inline constTransport<thermo> operator==
75 const constTransport<thermo>&,
76 const constTransport<thermo>&
79 template<class thermo>
83 const constTransport<thermo>&
87 /*---------------------------------------------------------------------------*\
88 Class constTransport Declaration
89 \*---------------------------------------------------------------------------*/
91 template<class thermo>
98 //- Constant viscosity and reciprocal Prandtl Number.
102 // Private member functions
104 //- Construct from components
105 inline constTransport
117 //- Construct as named copy
118 inline constTransport(const word&, const constTransport&);
120 //- Construct from Istream
121 constTransport(Istream&);
126 //- Dynamic viscosity [kg/ms]
127 inline scalar mu(const scalar T) const;
129 //- Thermal conductivity [W/mK]
130 inline scalar kappa(const scalar T) const;
132 //- Thermal diffusivity for enthalpy [kg/ms]
133 inline scalar alpha(const scalar T) const;
135 // Species diffusivity
136 //inline scalar D(const scalar T) const;
141 inline constTransport& operator=
143 const constTransport&
149 friend constTransport operator+ <thermo>
151 const constTransport&,
152 const constTransport&
155 friend constTransport operator- <thermo>
157 const constTransport&,
158 const constTransport&
161 friend constTransport operator* <thermo>
164 const constTransport&
167 friend constTransport operator== <thermo>
169 const constTransport&,
170 const constTransport&
176 friend Ostream& operator<< <thermo>
179 const constTransport&
184 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
186 } // End namespace Foam
188 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
190 #include "constTransportI.H"
193 # include "constTransport.C"
196 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
200 // ************************************************************************* //