tabulatedAnIsoSolidTransportI.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 autoPtr<Function1<vector>>& kappa
37 
38 )
39 :
40  Thermo(t),
41  kappa_(kappa.clone())
42 {}
43 
44 
45 template<class Thermo>
47 (
48  const word& name,
50 )
51 :
52  Thermo(name, pt),
53  kappa_(pt.kappa_.clone())
54 {}
55 
56 
57 template<class Thermo>
60 {
62 }
63 
64 
65 template<class Thermo>
68 {
70 }
71 
72 
73 // * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
74 
75 template<class Thermo>
77 (
78  const scalar p,
79  const scalar T
80 ) const
81 {
83  return 0;
84 }
85 
86 
87 template<class Thermo>
89 (
90  const scalar p,
91  const scalar T
92 ) const
93 {
94  return mag(kappa_->value(T));
95 }
96 
97 
98 template<class Thermo>
100 (
101  const scalar p,
102  const scalar T
103 ) const
104 {
105  return kappa_->value(T);
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 // ************************************************************************* //
vector Kappa(const scalar p, const scalar T) const
Thermal conductivity [W/m/K].
dictionary dict
autoPtr< tabulatedAnIsoSolidTransport > clone() const
Return a clone.
dimensioned< typename typeOfMag< Type >::type > mag(const dimensioned< Type > &dt)
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].
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for expressions::valueTypeCode::INVALID.
Definition: exprTraits.C:127
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].
A Vector of values with scalar precision, where scalar is float/double depending on the compilation f...
static autoPtr< tabulatedAnIsoSolidTransport > New(const dictionary &dict)
const volScalarField & Cp
Definition: EEqn.H:7
Transport properties package using Function1 type data for anisotropic thermal conductivity.
const volScalarField & T
scalar kappa(const scalar p, const scalar T) const
Thermal conductivity [W/m/K].
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