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-2020 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  //- Return the anisotropic Kappa in the local coordinate system
60  tmp<volSymmTensorField> KappaLocal() const;
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  //- Disallow default bitwise copy construction
88  (
90  ) = delete;
91 
92 
93  //- Destructor
94  virtual ~heSolidThermo();
95 
96 
97  // Member Functions
98 
99  //- Update properties
100  virtual void correct();
101 
102  //- Return true if thermal conductivity is isotropic
103  virtual bool isotropic() const
104  {
105  return MixtureType::thermoType::isotropic;
106  }
107 
108  //- Anisotropic thermal conductivity [W/m/K]
109  virtual tmp<volVectorField> Kappa() const;
110 
111  //- Anisotropic thermal conductivity [W/m/K]
112  virtual tmp<vectorField> Kappa(const label patchi) const;
113 
114  //- Anisotropic thermal conductivity for patch
115  // in the local coordinate system [W/m/K]
116  virtual tmp<symmTensorField> KappaLocal(const label patchi) const;
117 
118  //- Return the heat flux [W/m^2]
119  virtual tmp<surfaceScalarField> q() const;
120 
121  //- Return the source term for the energy equation
122  virtual tmp<fvScalarMatrix> divq(volScalarField& he) const;
123 
124 
125  // Member Operators
126 
127  //- Disallow default bitwise assignment
128  void operator=
129  (
131  ) = delete;
132 };
133 
134 
135 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
136 
137 } // End namespace Foam
138 
139 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
140 
141 #ifdef NoRepository
142  #include "heSolidThermo.C"
143 #endif
144 
145 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
146 
147 #endif
148 
149 // ************************************************************************* //
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:156
virtual bool isotropic() const
Return true if thermal conductivity is isotropic.
virtual volScalarField & he()
Enthalpy/Internal energy [J/kg].
Definition: heThermo.H:196
virtual void correct()
Update properties.
virtual tmp< volVectorField > Kappa() const
Anisotropic thermal conductivity [W/m/K].
A class for handling words, derived from string.
Definition: word.H:59
heSolidThermo(const fvMesh &, const word &phaseName)
Construct from mesh and phase name.
virtual tmp< surfaceScalarField > q() const
Return the heat flux [W/m^2].
label patchi
virtual tmp< fvScalarMatrix > divq(volScalarField &he) const
Return the source term for the energy equation.
Energy for a solid mixture.
Definition: heSolidThermo.H:49
Enthalpy/Internal energy for a mixture.
Definition: heThermo.H:51
Mesh data needed to do the Finite Volume discretisation.
Definition: fvMesh.H:78
A class for managing temporary objects.
Definition: PtrList.H:53
virtual ~heSolidThermo()
Destructor.
Namespace for OpenFOAM.