solidZonalThermo.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) 2026 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::solidZonalThermo
26 
27 Description
28  Base-class for zonal solid thermodynamic properties.
29 
30 See also
31  Foam::basicThermo
32 
33 SourceFiles
34  solidZonalThermo.C
35 
36 \*---------------------------------------------------------------------------*/
37 
38 #ifndef solidZonalThermo_H
39 #define solidZonalThermo_H
40 
41 #include "solidThermo.H"
42 #include "zonalThermo.H"
43 #include "SolidThermo.H"
44 
45 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
46 
47 namespace Foam
48 {
49 
50 /*---------------------------------------------------------------------------*\
51  Class solidZonalThermo Declaration
52 \*---------------------------------------------------------------------------*/
53 
54 class solidZonalThermo
55 :
56  virtual public solidThermo,
57  virtual public zonalThermo
58 {
59 public:
60 
61  // Public Classes
62 
63  //- Forward declare the composite class
64  class composite;
65 
66 
67  //- Runtime type information
68  TypeName("solidZonalThermo");
69 
70 
71  // Public Typedefs
72 
73  //- The derived type
74  template<class MixtureType>
75  using DerivedThermoType =
77 
78  //- The derived name
79  static word derivedThermoName()
80  {
81  return "heSolidThermo";
82  }
83 
84 
85  //- Destructor
86  virtual ~solidZonalThermo();
87 };
88 
89 
90 /*---------------------------------------------------------------------------*\
91  Class solidZonalThermo::composite Declaration
92 \*---------------------------------------------------------------------------*/
93 
95 :
100  public solidZonalThermo
101 {
102 public:
103 
104  // Constructors
105 
106  //- Construct from dictionary, zone names, mesh and phase name
107  template<class MixtureType>
108  composite
109  (
110  const dictionary& dict,
111  const MixtureType& mixture,
112  const fvMesh& mesh,
113  const word& phaseName
114  )
115  :
120  {}
121 
122 
123  // Member Functions
124 
125  //- The dpdt term should not be included in the enthalpy equation
126  virtual Switch dpdt() const
127  {
128  return false;
129  }
130 };
131 
132 
133 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
134 
135 } // End namespace Foam
136 
137 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
138 
139 #endif
140 
141 // ************************************************************************* //
Thermo implementation for a solid.
Definition: SolidThermo.H:52
A simple wrapper around bool so that it can be read as a word: true/false, on/off,...
Definition: Switch.H:61
virtual const fvMesh & mesh() const
Return const access to the mesh.
Definition: basicThermo.H:539
virtual const word & phaseName() const
Phase name.
Definition: basicThermo.H:545
Base-class for fluid and solid thermodynamic properties.
Definition: basicThermo.H:78
A list of keywords followed by any number of values (e.g. words and numbers) or sub-dictionaries.
Definition: dictionary.H:162
Mesh data needed to do the Finite Volume discretisation.
Definition: fvMesh.H:98
Base-class for thermodynamic properties based on density.
Definition: rhoThermo.H:54
Base-class for solid thermodynamic properties.
Definition: solidThermo.H:59
virtual Switch dpdt() const
The dpdt term should not be included in the enthalpy equation.
composite(const dictionary &dict, const MixtureType &mixture, const fvMesh &mesh, const word &phaseName)
Construct from dictionary, zone names, mesh and phase name.
Base-class for zonal solid thermodynamic properties.
static word derivedThermoName()
The derived name.
virtual ~solidZonalThermo()
Destructor.
TypeName("solidZonalThermo")
Runtime type information.
A class for handling words, derived from string.
Definition: word.H:63
Base-class for zonal thermodynamic properties.
Definition: zonalThermo.H:55
Namespace for OpenFOAM.
dictionary dict