heRhoThermo.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 | www.openfoam.com
6  \\/ M anipulation |
7 -------------------------------------------------------------------------------
8  Copyright (C) 2011-2016 OpenFOAM Foundation
9  Copyright (C) 2015-2017 OpenCFD Ltd.
10 -------------------------------------------------------------------------------
11 License
12  This file is part of OpenFOAM.
13 
14  OpenFOAM is free software: you can redistribute it and/or modify it
15  under the terms of the GNU General Public License as published by
16  the Free Software Foundation, either version 3 of the License, or
17  (at your option) any later version.
18 
19  OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
20  ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
21  FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
22  for more details.
23 
24  You should have received a copy of the GNU General Public License
25  along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
26 
27 Class
28  Foam::heRhoThermo
29 
30 Description
31  Energy for a mixture based on density
32 
33 SourceFiles
34  heRhoThermo.C
35 
36 \*---------------------------------------------------------------------------*/
37 
38 #ifndef heRhoThermo_H
39 #define heRhoThermo_H
40 
41 #include "rhoThermo.H"
42 #include "heThermo.H"
43 
44 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
45 
46 namespace Foam
47 {
48 
49 /*---------------------------------------------------------------------------*\
50  Class heRhoThermo Declaration
51 \*---------------------------------------------------------------------------*/
52 
53 template<class BasicPsiThermo, class MixtureType>
54 class heRhoThermo
55 :
56  public heThermo<BasicPsiThermo, MixtureType>
57 {
58  // Private Member Functions
59 
60  //- Calculate the thermo variables
61  void calculate
62  (
63  const volScalarField& p,
70  const bool doOldTimes
71  );
72 
73  //- Construct as copy (not implemented)
75 
76 
77 public:
78 
79  //- Runtime type information
80  TypeName("heRhoThermo");
81 
82 
83  // Constructors
84 
85  //- Construct from mesh and phase name
87  (
88  const fvMesh&,
89  const word& phaseName
90  );
91 
92 
93  //- Construct from mesh,dictionary,phase name with a single temperature
95  (
96  const fvMesh&,
97  const word& phaseName,
98  const word& dictName
99  );
100 
101 
102  //- Destructor
103  virtual ~heRhoThermo();
104 
105 
106  // Member functions
107 
108  //- Update properties
109  virtual void correct();
110 
111  //- Update properties from T
112  //virtual void correctT();
113 };
114 
115 
116 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
117 
118 } // End namespace Foam
119 
120 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
121 
122 #ifdef NoRepository
123  #include "heRhoThermo.C"
124 #endif
125 
126 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
127 
128 #endif
129 
130 // ************************************************************************* //
Foam::heThermo
Enthalpy/Internal energy for a mixture.
Definition: heThermo.H:52
p
volScalarField & p
Definition: createFieldRefs.H:8
Foam::word
A class for handling words, derived from Foam::string.
Definition: word.H:65
Foam::constant::physicoChemical::mu
const dimensionedScalar mu
Atomic mass unit.
Definition: createFieldRefs.H:4
Foam::heThermo< BasicPsiThermo, MixtureType >::he
virtual volScalarField & he()
Enthalpy/Internal energy [J/kg].
Definition: heThermo.H:163
Foam::constant::atomic::alpha
const dimensionedScalar alpha
Fine-structure constant: default SI units: [].
Definition: readThermalProperties.H:212
dictName
const word dictName("faMeshDefinition")
Foam::heRhoThermo
Energy for a mixture based on density.
Definition: heRhoThermo.H:53
rho
rho
Definition: readInitialConditions.H:88
rhoThermo.H
Foam::heRhoThermo::~heRhoThermo
virtual ~heRhoThermo()
Destructor.
Definition: heRhoThermo.C:221
Foam::T
void T(FieldField< Field, Type > &f1, const FieldField< Field, Type > &f2)
Definition: FieldFieldFunctions.C:58
Foam::fvMesh
Mesh data needed to do the Finite Volume discretisation.
Definition: fvMesh.H:85
Foam
Namespace for OpenFOAM.
Definition: atmBoundaryLayer.C:33
heRhoThermo.C
Foam::heRhoThermo::TypeName
TypeName("heRhoThermo")
Runtime type information.
Foam::GeometricField< scalar, fvPatchField, volMesh >
psi
const volScalarField & psi
Definition: createFieldRefs.H:1
heThermo.H
Foam::heRhoThermo::correct
virtual void correct()
Update properties.
Definition: heRhoThermo.C:228