All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
tabulatedTransportI.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) 2020 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 \*---------------------------------------------------------------------------*/
25 
26 #include "specie.H"
27 
28 // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
29 
30 template<class Thermo>
32 (
33  const Thermo& t,
34  const nonUniformTable& mu,
35  const nonUniformTable& kappa
36 )
37 :
38  Thermo(t),
39  mu_(mu),
40  kappa_(kappa)
41 {}
42 
43 
44 template<class Thermo>
46 (
47  const word& name,
48  const tabulatedTransport& pt
49 )
50 :
51  Thermo(name, pt),
52  mu_(pt.mu_),
53  kappa_(pt.kappa_)
54 {}
55 
56 
57 template<class Thermo>
60 {
62  (
64  );
65 }
66 
67 
68 template<class Thermo>
71 {
73  (
75  );
76 }
77 
78 
79 // * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
80 
81 template<class Thermo>
82 inline Foam::scalar Foam::tabulatedTransport<Thermo>::mu
83 (
84  const scalar p,
85  const scalar T
86 ) const
87 {
88  return mu_.f(p, T);
89 }
90 
91 
92 template<class Thermo>
94 (
95  const scalar p,
96  const scalar T
97 ) const
98 {
99  return kappa_.f(p, T);
100 }
101 
102 
103 template<class Thermo>
105 (
106  const scalar p,
107  const scalar T
108 ) const
109 {
110  return kappa(p, T)/this->Cp(p, T);
111 }
112 
113 
114 // ************************************************************************* //
dictionary dict
const dimensionedScalar & kappa
Coulomb constant: default SI units: [N.m2/C2].
A list of keyword definitions, which are a keyword followed by any number of values (e...
Definition: dictionary.H:158
scalar mu(const scalar p, const scalar T) const
Dynamic viscosity [kg/m/s].
scalar kappa(const scalar p, const scalar T) const
Thermal conductivity [W/m/K].
static autoPtr< tabulatedTransport > New(const dictionary &dict)
A class for handling words, derived from string.
Definition: word.H:59
Transport properties package using non-uniform tabulated data for viscosity and thermal conductivity ...
scalar alphah(const scalar p, const scalar T) const
Thermal diffusivity of enthalpy [kg/m/s].
scalar f(scalar p, scalar T) const
Evaluate the function and return the result.
const dimensionedScalar & mu
Atomic mass unit.
scalar Cp(const scalar p, const scalar T) const
Definition: EtoHthermo.H:2
autoPtr< tabulatedTransport > clone() const
Construct and return a clone.
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
Definition: PtrList.H:52