1 /*---------------------------------------------------------------------------*\
3 \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
5 \\ / A nd | Copyright (C) 1991-2009 OpenCFD Ltd.
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 the
13 Free Software Foundation; either version 2 of the License, or (at your
14 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, write to the Free Software Foundation,
23 Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
29 The thermophysical properties of a solid
34 \*---------------------------------------------------------------------------*/
41 #include "runTimeSelectionTables.H"
43 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
57 /*---------------------------------------------------------------------------*\
58 Class solid Declaration
59 \*---------------------------------------------------------------------------*/
69 //- Specific heat capacity [J/(kg.K)]
72 //- Thermal conductivity [W/(m.K)]
75 //- Heat of formation [J/kg]
84 //- Runtime type information
88 // Declare run-time constructor selection tables
90 declareRunTimeSelectionTable
99 declareRunTimeSelectionTable
111 //- Construct from components
121 //- Construct from Istream
124 //- Return a pointer to a new solid created from input
125 static autoPtr<solid> New(Istream& is);
136 // Phisical constants which define the solid
139 inline scalar rho() const;
141 //- Specific heat capacity [J/(kg.K)]
142 inline scalar cp() const;
144 //- Thermal conductivity [W/(m.K)]
145 inline scalar K() const;
147 //- Heat of formation [J/kg]
148 inline scalar Hf() const;
151 inline scalar emissivity() const;
156 //- Write the solid properties
157 virtual void writeData(Ostream& os) const;
162 friend Ostream& operator<<(Ostream& os, const solid& s);
166 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
170 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
172 } // End namespace Foam
174 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
178 // ************************************************************************* //