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-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 \*---------------------------------------------------------------------------*/
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 // * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
69 
70 template<class Thermo>
72 (
73  const scalar p,
74  const scalar T
75 ) const
76 {
77  return mu_.value(T);
78 }
79 
80 
81 template<class Thermo>
83 (
84  const scalar p,
85  const scalar T
86 ) const
87 {
88  return kappa_.value(T);
89 }
90 
91 
92 // ************************************************************************* //
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
Definition: autoPtr.H:51
Transport properties package using non-uniformly-spaced tabulated data for viscosity and thermal cond...
scalar mu(const scalar p, const scalar T) const
Dynamic viscosity [kg/m/s].
icoTabulatedTransport(const Thermo &t, const nonUniformTable &mu, const nonUniformTable &kappa)
Construct from components.
scalar kappa(const scalar p, const scalar T) const
Thermal conductivity [W/m/K].
autoPtr< icoTabulatedTransport > clone() const
Construct and return a clone.
A class for handling words, derived from string.
Definition: word.H:62
const dimensionedScalar kappa
Coulomb constant: default SI units: [N.m2/C2].
const dimensionedScalar mu
Atomic mass unit.
word name(const complex &)
Return a string representation of a complex.
Definition: complex.C:47
void T(FieldField< Field, Type > &f1, const FieldField< Field, Type > &f2)
volScalarField & p