tabulatedSolidTransportI.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) 2022 OpenCFD Ltd.
9 -------------------------------------------------------------------------------
10 License
11  This file is part of OpenFOAM.
12 
13  OpenFOAM is free software: you can redistribute it and/or modify it
14  under the terms of the GNU General Public License as published by
15  the Free Software Foundation, either version 3 of the License, or
16  (at your option) any later version.
17 
18  OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
19  ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
20  FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
21  for more details.
22 
23  You should have received a copy of the GNU General Public License
24  along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
25 
26 \*---------------------------------------------------------------------------*/
27 
28 #include "specie.H"
29 
30 // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
31 
32 template<class Thermo>
34 (
35  const Thermo& t,
36  const nonUniformTable& kappa
37 )
38 :
39  Thermo(t),
40  kappa_(kappa)
41 {}
42 
43 
44 template<class Thermo>
46 (
47  const word& name,
48  const tabulatedSolidTransport& pt
49 )
50 :
51  Thermo(name, pt),
52  kappa_(pt.kappa_)
53 {}
54 
55 
56 template<class Thermo>
59 {
61 }
62 
63 
64 template<class Thermo>
67 {
69 }
70 
71 
72 // * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
73 
74 template<class Thermo>
76 (
77  const scalar p,
78  const scalar T
79 ) const
80 {
82  return 0;
83 }
84 
85 
86 template<class Thermo>
88 (
89  const scalar p,
90  const scalar T
91 ) const
92 {
93  return kappa_.f(p, T);
94 }
95 
96 
97 template<class Thermo>
99 (
100  const scalar p,
101  const scalar T
102 ) const
103 {
104  const scalar kappa(kappa_.f(p, T));
105  return vector(kappa, kappa, kappa);
106 }
107 
108 
109 template<class Thermo>
111 (
112  const scalar p,
113  const scalar T
114 ) const
115 {
116  return kappa(p, T)/this->Cp(p, T);
117 }
118 
119 
120 // ************************************************************************* //
dictionary dict
A list of keyword definitions, which are a keyword followed by a number of values (eg...
Definition: dictionary.H:129
scalar alphah(const scalar p, const scalar T) const
Thermal diffusivity of enthalpy [kg/m/s].
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.
const dimensionedScalar kappa
Coulomb constant: default SI units: [N.m2/C2].
vector Kappa(const scalar p, const scalar T) const
Thermal conductivity [W/m/K].
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for expressions::valueTypeCode::INVALID.
Definition: exprTraits.C:127
autoPtr< tabulatedSolidTransport > clone() const
Return a clone.
A class for handling words, derived from Foam::string.
Definition: word.H:63
scalar mu(const scalar p, const scalar T) const
Dynamic viscosity [kg/m/s].
Vector< scalar > vector
Definition: vector.H:57
scalar kappa(const scalar p, const scalar T) const
Thermal conductivity [W/m/K].
A Vector of values with scalar precision, where scalar is float/double depending on the compilation f...
const volScalarField & Cp
Definition: EEqn.H:7
const volScalarField & T
Transport properties package using non-uniform tabulated data for thermal conductivity vs temperature...
static autoPtr< tabulatedSolidTransport > New(const dictionary &dict)
Pointer management similar to std::unique_ptr, with some additional methods and type checking...
Definition: HashPtrTable.H:48
volScalarField & p
#define NotImplemented
Issue a FatalErrorIn for a function not currently implemented.
Definition: error.H:686