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-2021 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  //- Disallow default bitwise copy construction
80  (
82  ) = delete;
83 
84 
85  //- Destructor
86  virtual ~heSolidThermo();
87 
88 
89  // Member Functions
90 
91  //- Update properties
92  virtual void correct();
93 
94  //- Return true if thermal conductivity is isotropic
95  virtual bool isotropic() const
96  {
97  return MixtureType::thermoType::isotropic;
98  }
99 
100  //- Anisotropic thermal conductivity [W/m/K]
101  virtual tmp<volVectorField> Kappa() const;
102 
103  //- Anisotropic thermal conductivity [W/m/K]
104  virtual tmp<vectorField> Kappa(const label patchi) const;
105 
106  //- Anisotropic thermal conductivity for patch
107  // in the local coordinate system [W/m/K]
108  virtual tmp<symmTensorField> KappaLocal(const label patchi) const;
109 
110  //- Return the heat flux [W/m^2]
111  virtual tmp<surfaceScalarField> q() const;
112 
113  //- Return the source term for the energy equation
114  virtual tmp<fvScalarMatrix> divq(volScalarField& he) const;
115 
116 
117  // Member Operators
118 
119  //- Disallow default bitwise assignment
120  void operator=
121  (
123  ) = delete;
124 };
125 
126 
127 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
128 
129 } // End namespace Foam
130 
131 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
132 
133 #ifdef NoRepository
134  #include "heSolidThermo.C"
135 #endif
136 
137 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
138 
139 #endif
140 
141 // ************************************************************************* //
TypeName("heSolidThermo")
Runtime type information.
virtual bool isotropic() const
Return true if thermal conductivity is isotropic.
Definition: heSolidThermo.H:94
virtual volScalarField & he()
Enthalpy/Internal energy [J/kg].
Definition: heThermo.H:188
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:95
A class for managing temporary objects.
Definition: PtrList.H:53
virtual ~heSolidThermo()
Destructor.
Namespace for OpenFOAM.