tabulatedTransportI.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) 2020 OpenFOAM Foundation
9  Copyright (C) 2020 OpenCFD Ltd.
10 -------------------------------------------------------------------------------
11 License
12  This file is part of OpenFOAM.
13 
14  OpenFOAM is free software: you can redistribute it and/or modify it
15  under the terms of the GNU General Public License as published by
16  the Free Software Foundation, either version 3 of the License, or
17  (at your option) any later version.
18 
19  OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
20  ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
21  FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
22  for more details.
23 
24  You should have received a copy of the GNU General Public License
25  along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
26 
27 \*---------------------------------------------------------------------------*/
28 
29 #include "specie.H"
30 
31 // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
32 
33 template<class Thermo>
35 (
36  const Thermo& t,
37  const nonUniformTable& mu,
38  const nonUniformTable& kappa
39 )
40 :
41  Thermo(t),
42  mu_(mu),
43  kappa_(kappa)
44 {}
45 
46 
47 template<class Thermo>
49 (
50  const word& name,
51  const tabulatedTransport& pt
52 )
53 :
54  Thermo(name, pt),
55  mu_(pt.mu_),
56  kappa_(pt.kappa_)
57 {}
58 
59 
60 template<class Thermo>
63 {
65 }
66 
67 
68 template<class Thermo>
71 {
73 }
74 
75 
76 // * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
77 
78 template<class Thermo>
79 inline Foam::scalar Foam::tabulatedTransport<Thermo>::mu
80 (
81  const scalar p,
82  const scalar T
83 ) const
84 {
85  return mu_.f(p, T);
86 }
87 
88 
89 template<class Thermo>
91 (
92  const scalar p,
93  const scalar T
94 ) const
95 {
96  return kappa_.f(p, T);
97 }
98 
99 
100 template<class Thermo>
102 (
103  const scalar p,
104  const scalar T
105 ) const
106 {
107  return kappa(p, T)/this->Cp(p, T);
108 }
109 
110 
111 // ************************************************************************* //
dictionary dict
A list of keyword definitions, which are a keyword followed by a number of values (eg...
Definition: dictionary.H:129
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].
tmp< DimensionedField< TypeR, GeoMesh > > New(const tmp< DimensionedField< TypeR, GeoMesh >> &tf1, const word &name, const dimensionSet &dimensions, const bool initCopy=false)
Global function forwards to reuseTmpDimensionedField::New.
static autoPtr< tabulatedTransport > New(const dictionary &dict)
const dimensionedScalar kappa
Coulomb constant: default SI units: [N.m2/C2].
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for expressions::valueTypeCode::INVALID.
Definition: exprTraits.C:127
A class for handling words, derived from Foam::string.
Definition: word.H:63
Transport properties package using non-uniform tabulated data for viscosity and thermal conductivity ...
const volScalarField & Cp
Definition: EEqn.H:7
const volScalarField & T
scalar alphah(const scalar p, const scalar T) const
Thermal diffusivity of enthalpy [kg/m/s].
const dimensionedScalar mu
Atomic mass unit.
autoPtr< tabulatedTransport > clone() const
Return a clone.
Pointer management similar to std::unique_ptr, with some additional methods and type checking...
Definition: HashPtrTable.H:48
volScalarField & p