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-------------------------------------------------------------------------------
10License
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
32template<class Thermo>
34(
35 const Thermo& t,
36 const nonUniformTable& kappa
37)
38:
39 Thermo(t),
40 kappa_(kappa)
41{}
42
43
44template<class Thermo>
46(
47 const word& name,
49)
50:
51 Thermo(name, pt),
52 kappa_(pt.kappa_)
53{}
54
55
56template<class Thermo>
59{
61}
62
63
64template<class Thermo>
67{
69}
70
71
72// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
73
74template<class Thermo>
76(
77 const scalar p,
78 const scalar T
79) const
80{
82 return 0;
83}
84
85
86template<class Thermo>
88(
89 const scalar p,
90 const scalar T
91) const
92{
93 return kappa_.f(p, T);
94}
95
96
97template<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
109template<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// ************************************************************************* //
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
virtual tmp< volVectorField > Kappa() const
Anisotropic thermal conductivity [W/m/K].
Transport properties package using non-uniform tabulated data for thermal conductivity vs temperature...
scalar alphah(const scalar p, const scalar T) const
Thermal diffusivity of enthalpy [kg/m/s].
autoPtr< tabulatedSolidTransport > clone() const
Return a clone.
A class for handling words, derived from Foam::string.
Definition: word.H:68
volScalarField & p
const volScalarField & T
const volScalarField & Cp
Definition: EEqn.H:7
#define NotImplemented
Issue a FatalErrorIn for a function not currently implemented.
Definition: error.H:517
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
Vector< scalar > vector
Definition: vector.H:61
dictionary dict