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 // ************************************************************************* //
p
volScalarField & p
Definition: createFieldRefs.H:8
Foam::word
A class for handling words, derived from Foam::string.
Definition: word.H:65
Foam::constant::physicoChemical::mu
const dimensionedScalar mu
Atomic mass unit.
Definition: createFieldRefs.H:4
Foam::tabulatedTransport
Transport properties package using non-uniform tabulated data for viscosity and thermal conductivity ...
Definition: tabulatedTransport.H:89
specie.H
Foam::constant::electromagnetic::kappa
const dimensionedScalar kappa
Coulomb constant: default SI units: [N.m2/C2].
Foam::tabulatedTransport::kappa
scalar kappa(const scalar p, const scalar T) const
Thermal conductivity [W/m/K].
Definition: tabulatedTransportI.H:91
Foam::T
void T(FieldField< Field, Type > &f1, const FieldField< Field, Type > &f2)
Definition: FieldFieldFunctions.C:58
Foam::tabulatedTransport::alphah
scalar alphah(const scalar p, const scalar T) const
Thermal diffusivity of enthalpy [kg/m/s].
Definition: tabulatedTransportI.H:102
dict
dictionary dict
Definition: searchingEngine.H:14
Foam::dictionary
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Definition: dictionary.H:123
Foam::tabulatedTransport::mu
scalar mu(const scalar p, const scalar T) const
Dynamic viscosity [kg/m/s].
Definition: tabulatedTransportI.H:80
Foam::New
tmp< DimensionedField< TypeR, GeoMesh > > New(const tmp< DimensionedField< TypeR, GeoMesh >> &tdf1, const word &name, const dimensionSet &dimensions)
Global function forwards to reuseTmpDimensionedField::New.
Definition: DimensionedFieldReuseFunctions.H:105
Foam::autoPtr
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
Definition: HashPtrTable.H:53
Foam::tabulatedTransport::clone
autoPtr< tabulatedTransport > clone() const
Return a clone.
Definition: tabulatedTransportI.H:62
Cp
const volScalarField & Cp
Definition: EEqn.H:7
Foam::name
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for INVALID.
Definition: exprTraits.C:59
Foam::tabulatedTransport::New
static autoPtr< tabulatedTransport > New(const dictionary &dict)
Definition: tabulatedTransportI.H:70