1 /*---------------------------------------------------------------------------*\
3 \\ / F ield | foam-extend: Open Source CFD
5 \\ / A nd | For copyright notice see file Copyright
7 -------------------------------------------------------------------------------
9 This file is part of foam-extend.
11 foam-extend 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 3 of the License, or (at your
14 option) any later version.
16 foam-extend is distributed in the hope that it will be useful, but
17 WITHOUT ANY WARRANTY; without even the implied warranty of
18 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
19 General Public License for more details.
21 You should have received a copy of the GNU General Public License
22 along with foam-extend. If not, see <http://www.gnu.org/licenses/>.
28 Zoned multi-material thermal model controlled by an indicator field.
31 Hrvoje Jasak, Wikki Ltd. All rights reserved.
34 multiMaterialThermal.C
36 \*---------------------------------------------------------------------------*/
38 #ifndef multiMaterialThermal_H
39 #define multiMaterialThermal_H
41 #include "thermalLaw.H"
43 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
48 /*---------------------------------------------------------------------------*\
49 Class multiMaterialThermal Declaration
50 \*---------------------------------------------------------------------------*/
52 class multiMaterialThermal
55 public PtrList<thermalLaw>
57 // Private Member Functions
59 //- Disallow default bitwise copy construct
60 multiMaterialThermal(const multiMaterialThermal&);
62 //- Disallow default bitwise assignment
63 void operator=(const multiMaterialThermal&);
66 //- Calculate indicator field given index
67 tmp<volScalarField> indicator(const label index) const;
73 //- Material indicator field
74 volScalarField materials_;
76 // Protected member functions
78 //- Check that the laws and the material field are okay
81 const volScalarField& T,
82 const dictionary& dict
85 //- Check that the laws and the material field are okay
86 void checkLaws() const;
91 //- Runtime type information
92 TypeName("multiMaterial");
94 // Static data members
99 //- Construct from dictionary
103 const volScalarField& T,
104 const dictionary& dict
107 //- Construct from dictionary and create default material field
111 const volScalarField& T,
112 const dictionary& dict,
113 const scalar defaultMaterial
118 virtual ~multiMaterialThermal();
124 virtual tmp<volScalarField> rho() const;
126 //- Return specific heat capacity
127 virtual tmp<volScalarField> C() const;
129 //- Return thermal conductivity
130 virtual tmp<volScalarField> k() const;
132 //- Correct the rheological model
133 virtual void correct();
137 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
139 } // End namespace Foam
141 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
145 // ************************************************************************* //