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-------------------------------------------------------------------------------
11License
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
33template<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
47template<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
60template<class Thermo>
63{
65}
66
67
68template<class Thermo>
71{
73}
74
75
76// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
77
78template<class Thermo>
80(
81 const scalar p,
82 const scalar T
83) const
84{
85 return mu_.f(p, T);
86}
87
88
89template<class Thermo>
91(
92 const scalar p,
93 const scalar T
94) const
95{
96 return kappa_.f(p, T);
97}
98
99
100template<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// ************************************************************************* //
static autoPtr< Time > New()
Construct (dummy) Time - no functionObjects or libraries.
Definition: Time.C:717
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
Definition: autoPtr.H:66
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Definition: dictionary.H:126
Transport properties package using non-uniform tabulated data for viscosity and thermal conductivity ...
autoPtr< tabulatedTransport > clone() const
Return a clone.
scalar alphah(const scalar p, const scalar T) const
Thermal diffusivity of enthalpy [kg/m/s].
A class for handling words, derived from Foam::string.
Definition: word.H:68
volScalarField & p
const volScalarField & T
const volScalarField & mu
const volScalarField & Cp
Definition: EEqn.H:7
const dimensionedScalar kappa
Coulomb constant: default SI units: [N.m2/C2].
const dimensionedScalar mu
Atomic mass unit.
tmp< DimensionedField< TypeR, GeoMesh > > New(const tmp< DimensionedField< TypeR, GeoMesh > > &tdf1, const word &name, const dimensionSet &dimensions)
Global function forwards to reuseTmpDimensionedField::New.
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for INVALID.
Definition: exprTraits.C:59
dictionary dict