heSolidThermo.H
Go to the documentation of this file.
1 /*---------------------------------------------------------------------------*\
2  ========= |
3  \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
4  \\ / O peration | Website: https://openfoam.org
5  \\ / A nd | Copyright (C) 2011-2022 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 protected:
55 
56  // Protected data
57 
58  //- Anisotropic thermal conductivity [W/m/K]
60 
61 
62  // Private Member Functions
63 
64  //- Calculate the thermo variables
65  void calculate();
66 
67 
68 public:
69 
70  //- Runtime type information
71  TypeName("heSolidThermo");
72 
73 
74  // Constructors
75 
76  //- Construct from mesh and phase name
78  (
79  const fvMesh&,
80  const word& phaseName
81  );
82 
83  //- Disallow default bitwise copy construction
85  (
87  ) = delete;
88 
89 
90  //- Destructor
91  virtual ~heSolidThermo();
92 
93 
94  // Member Functions
95 
96  //- Update properties
97  virtual void correct();
98 
99  //- Return true if thermal conductivity is isotropic
100  virtual bool isotropic() const
101  {
102  return MixtureType::thermoType::isotropic;
103  }
104 
105  //- Anisotropic thermal conductivity [W/m/K]
106  virtual const volVectorField& Kappa() const;
107 
108 
109  // Member Operators
110 
111  //- Disallow default bitwise assignment
112  void operator=
113  (
115  ) = delete;
116 };
117 
118 
119 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
120 
121 } // End namespace Foam
122 
123 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
124 
125 #ifdef NoRepository
126  #include "heSolidThermo.C"
127 #endif
128 
129 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
130 
131 #endif
132 
133 // ************************************************************************* //
Generic GeometricField class.
Mesh data needed to do the Finite Volume discretisation.
Definition: fvMesh.H:101
Energy for a solid mixture.
Definition: heSolidThermo.H:52
heSolidThermo(const fvMesh &, const word &phaseName)
Construct from mesh and phase name.
virtual void correct()
Update properties.
volVectorField Kappa_
Anisotropic thermal conductivity [W/m/K].
Definition: heSolidThermo.H:58
TypeName("heSolidThermo")
Runtime type information.
virtual bool isotropic() const
Return true if thermal conductivity is isotropic.
Definition: heSolidThermo.H:99
virtual const volVectorField & Kappa() const
Anisotropic thermal conductivity [W/m/K].
virtual ~heSolidThermo()
Destructor.
void calculate()
Calculate the thermo variables.
Definition: heSolidThermo.C:31
Enthalpy/Internal energy for a mixture.
Definition: heThermo.H:55
A class for handling words, derived from string.
Definition: word.H:62
Namespace for OpenFOAM.