icoTabulatedTransportI.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 icoTabulatedTransport& 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>
83 (
84  const scalar p,
85  const scalar T
86 ) const
87 {
88  return mu_.value(T);
89 }
90 
91 
92 template<class Thermo>
94 (
95  const scalar p,
96  const scalar T
97 ) const
98 {
99  return kappa_.value(T);
100 }
101 
102 
103 // ************************************************************************* //
dictionary dict
static autoPtr< icoTabulatedTransport > New(const dictionary &dict)
A list of keyword definitions, which are a keyword followed by any number of values (e...
Definition: dictionary.H:156
Transport properties package using non-uniform tabulated data for viscosity and thermal conductivity ...
autoPtr< icoTabulatedTransport > clone() const
Construct and return a clone.
virtual Type value(scalar x) const
Evaluate the function and return the result.
const dimensionedScalar kappa
Coulomb constant: default SI units: [N.m2/C2].
A class for handling words, derived from string.
Definition: word.H:59
scalar kappa(const scalar p, const scalar T) const
Thermal conductivity [W/m/K].
const dimensionedScalar mu
Atomic mass unit.
scalar mu(const scalar p, const scalar T) const
Dynamic viscosity [kg/m/s].
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
Definition: PtrList.H:52