1 /*---------------------------------------------------------------------------*\
3 \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
5 \\ / A nd | Copyright (C) 2011 OpenFOAM Foundation
7 -------------------------------------------------------------------------------
9 This file is part of OpenFOAM.
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.
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
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/>.
25 Foam::isotropicKSolidThermo
28 Directional conductivity + table interpolation.
31 isotropicKSolidThermo.C
33 \*---------------------------------------------------------------------------*/
35 #ifndef directionalSolidThermo_H
36 #define directionalSolidThermo_H
38 #include "interpolatedSolidThermo.H"
40 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
45 /*---------------------------------------------------------------------------*\
46 Class isotropicKSolidThermo Declaration
47 \*---------------------------------------------------------------------------*/
49 class isotropicKSolidThermo
51 public interpolatedSolidThermo
55 //- Thermal conductivity [W/(m.K)]
58 //- Thermal conductivity vector
59 Field<scalar> KValues_;
64 //- Runtime type information
65 TypeName("isotropicKSolidThermo");
70 //- Construct from mesh
71 isotropicKSolidThermo(const fvMesh& mesh);
73 //- Construct from mesh and dicionary
74 isotropicKSolidThermo(const fvMesh& mesh, const dictionary& dict);
79 virtual ~isotropicKSolidThermo();
85 virtual void correct();
89 //- Constant access to K
90 virtual const volScalarField& K() const
96 // Per patch calculation
98 //- Thermal conductivity [W//m/K]
99 virtual tmp<scalarField> K(const label patchI) const;
104 //- Read solidThermophysicalProperties dictionary
108 virtual bool writeData(Ostream& os) const;
111 friend Ostream& operator<<
114 const isotropicKSolidThermo& s
119 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
121 } // End namespace Foam
123 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
127 // ************************************************************************* //