ENH: autoLayerDriver: better layering information message
[OpenFOAM-2.0.x.git] / src / thermophysicalModels / basicSolidThermo / isotropicKSolidThermo / isotropicKSolidThermo.H
blob77f84f3ba63e39c4484b4d3f3e974d898d188490
1 /*---------------------------------------------------------------------------*\
2   =========                 |
3   \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox
4    \\    /   O peration     |
5     \\  /    A nd           | Copyright (C) 2011 OpenFOAM Foundation
6      \\/     M anipulation  |
7 -------------------------------------------------------------------------------
8 License
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
19     for more details.
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/>.
24 Class
25     Foam::isotropicKSolidThermo
27 Description
28     Directional conductivity + table interpolation.
30 SourceFiles
31     isotropicKSolidThermo.C
33 \*---------------------------------------------------------------------------*/
35 #ifndef directionalSolidThermo_H
36 #define directionalSolidThermo_H
38 #include "interpolatedSolidThermo.H"
40 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
42 namespace Foam
45 /*---------------------------------------------------------------------------*\
46                   Class isotropicKSolidThermo Declaration
47 \*---------------------------------------------------------------------------*/
49 class isotropicKSolidThermo
51     public interpolatedSolidThermo
53     // Private data
55         //- Thermal conductivity [W/(m.K)]
56         volScalarField K_;
58         //- Thermal conductivity vector
59         Field<scalar> KValues_;
62 public:
64     //- Runtime type information
65     TypeName("isotropicKSolidThermo");
68     // Constructors
70         //- Construct from mesh
71         isotropicKSolidThermo(const fvMesh& mesh);
73         //- Construct from mesh and dicionary
74         isotropicKSolidThermo(const fvMesh& mesh, const dictionary& dict);
78     //- Destructor
79     virtual ~isotropicKSolidThermo();
82     // Member functions
84         //- Update properties
85         virtual void correct();
87         // Access functions
89             //- Constant access to K
90             virtual const volScalarField& K() const
91             {
92                 return K_;
93             }
96         // Per patch calculation
98             //- Thermal conductivity [W//m/K]
99             virtual tmp<scalarField> K(const label patchI) const;
102     // I-O
104         //- Read solidThermophysicalProperties dictionary
105         virtual bool read();
107         //- Write properties
108         virtual bool writeData(Ostream& os) const;
110         //- Ostream Operator
111         friend Ostream& operator<<
112         (
113             Ostream& os,
114             const isotropicKSolidThermo& s
115         );
119 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
121 } // End namespace Foam
123 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
125 #endif
127 // ************************************************************************* //