tabulatedSolidTransportI.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) 2021-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 // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
27 
28 template<class Thermo>
30 (
31  const Thermo& t,
32  const nonUniformTable& kappa
33 )
34 :
35  Thermo(t),
36  kappa_(kappa)
37 {}
38 
39 
40 template<class Thermo>
42 (
43  const word& name,
44  const tabulatedSolidTransport& tst
45 )
46 :
47  Thermo(name, tst),
48  kappa_(tst.kappa_)
49 {}
50 
51 
52 template<class Thermo>
55 {
57  (
59  );
60 }
61 
62 
63 // * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
64 
65 template<class Thermo>
67 (
68  const scalar p, const scalar T
69 ) const
70 {
71  return kappa_.value(T);
72 }
73 
74 
75 template<class Thermo>
77 (
78  const scalar p, const scalar T
79 ) const
80 {
82  const scalar kappa = kappa_.value(T);
83  return vector(kappa, kappa, kappa);
84 }
85 
86 
87 // ************************************************************************* //
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
Definition: autoPtr.H:51
const Type & value() const
Return const reference to value.
Transport properties package using non-uniformly-spaced tabulated data for thermal conductivity vs te...
vector Kappa(const scalar p, const scalar T) const
Anisotropic thermal conductivity [W/m/K].
scalar kappa(const scalar p, const scalar T) const
Isotropic thermal conductivity [W/m/K].
autoPtr< tabulatedSolidTransport > clone() const
Construct and return a clone.
tabulatedSolidTransport(const Thermo &t, const nonUniformTable &kappa)
Construct from components.
A class for handling words, derived from string.
Definition: word.H:62
#define NotImplemented
Issue a FatalErrorIn for a function not currently implemented.
Definition: error.H:381
const dimensionedScalar kappa
Coulomb constant: default SI units: [N.m2/C2].
word name(const bool)
Return a word representation of a bool.
Definition: boolIO.C:39
Vector< scalar > vector
A scalar version of the templated Vector.
Definition: vector.H:49
void T(FieldField< Field, Type > &f1, const FieldField< Field, Type > &f2)
volScalarField & p