heSolidThermo.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 | Copyright (C) 2011-2016 OpenFOAM Foundation
6  \\/ M anipulation |
7 -------------------------------------------------------------------------------
8 License
9  This file is part of OpenFOAM.
10 
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.
15 
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.
20 
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/>.
23 
24 Class
25  Foam::heSolidThermo
26 
27 Description
28  Energy for a solid mixture
29 
30 SourceFiles
31  heSolidThermo.C
32 
33 \*---------------------------------------------------------------------------*/
34 
35 #ifndef heSolidThermo_H
36 #define heSolidThermo_H
37 
38 #include "heThermo.H"
39 
40 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
41 
42 namespace Foam
43 {
44 
45 /*---------------------------------------------------------------------------*\
46  Class heSolidThermo Declaration
47 \*---------------------------------------------------------------------------*/
48 
49 template<class BasicSolidThermo, class MixtureType>
50 class heSolidThermo
51 :
52  public heThermo<BasicSolidThermo, MixtureType>
53 {
54  // Private Member Functions
55 
56  //- Calculate the thermo variables
57  void calculate();
58 
59  //- Construct as copy (not implemented)
61 
62 
63 public:
64 
65  //- Runtime type information
66  TypeName("heSolidThermo");
67 
68 
69  // Constructors
70 
71  //- Construct from mesh and phase name
73  (
74  const fvMesh&,
75  const word& phaseName
76  );
77 
78  //- Construct from mesh, dictionary and phase name
80  (
81  const fvMesh&,
82  const dictionary&,
83  const word& phaseName
84  );
85 
86 
87  //- Destructor
88  virtual ~heSolidThermo();
89 
90 
91  // Member functions
92 
93  //- Update properties
94  virtual void correct();
95 
96 
97  // Derived thermal properties
98 
99  //- Anisotropic thermal conductivity [W/m/K]
100  virtual tmp<volVectorField> Kappa() const;
101 
102  //- Return true if thermal conductivity is isotropic
103  virtual bool isotropic() const
104  {
105  return MixtureType::thermoType::isotropic;
106  }
107 
108 
109  // Per patch calculation
110 
111  //- Anisotropic thermal conductivity [W/m/K]
112  virtual tmp<vectorField> Kappa(const label patchi) const;
113 };
114 
115 
116 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
117 
118 } // End namespace Foam
119 
120 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
121 
122 #ifdef NoRepository
123  #include "heSolidThermo.C"
124 #endif
125 
126 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
127 
128 #endif
129 
130 // ************************************************************************* //
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
Definition: label.H:59
TypeName("heSolidThermo")
Runtime type information.
A list of keyword definitions, which are a keyword followed by any number of values (e...
Definition: dictionary.H:137
virtual bool isotropic() const
Return true if thermal conductivity is isotropic.
virtual tmp< volVectorField > Kappa() const
Anisotropic thermal conductivity [W/m/K].
virtual void correct()
Update properties.
A class for handling words, derived from string.
Definition: word.H:59
label patchi
Energy for a solid mixture.
Definition: heSolidThermo.H:49
Enthalpy/Internal energy for a mixture.
Definition: heThermo.H:49
Mesh data needed to do the Finite Volume discretisation.
Definition: fvMesh.H:78
A class for managing temporary objects.
Definition: PtrList.H:54
virtual ~heSolidThermo()
Destructor.
Namespace for OpenFOAM.