basicSpecieMixture.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) 2014-2018 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::basicSpecieMixture
26 
27 Description
28  Specialization of basicMultiComponentMixture for a mixture consisting
29  of a number for molecular species.
30 
31 SourceFiles
32  basicSpecieMixture.C
33 
34 \*---------------------------------------------------------------------------*/
35 
36 #ifndef basicSpecieMixture_H
37 #define basicSpecieMixture_H
38 
40 
41 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
42 
43 namespace Foam
44 {
45 
46 /*---------------------------------------------------------------------------*\
47  Class basicSpecieMixture Declaration
48 \*---------------------------------------------------------------------------*/
49 
51 :
53 {
54 
55 public:
56 
57  //- Run time type information
58  TypeName("basicSpecieMixture");
59 
60  //- The base class of the mixture
62 
63 
64  // Constructors
65 
66  //- Construct from dictionary, species names, mesh and phase name
68  (
69  const dictionary&,
70  const wordList& specieNames,
71  const fvMesh&,
72  const word&
73  );
74 
75 
76  //- Destructor
77  virtual ~basicSpecieMixture()
78  {}
79 
80 
81  // Member functions
82 
83  // Per specie properties
84 
85  //- Molecular weight of the given specie [kg/kmol]
86  virtual scalar W(const label speciei) const = 0;
87 
88 
89  // Per specie thermo properties
90 
91  //- Heat capacity at constant pressure [J/(kg K)]
92  virtual scalar Cp
93  (
94  const label speciei,
95  const scalar p,
96  const scalar T
97  ) const = 0;
98 
99  //- Heat capacity at constant volume [J/(kg K)]
100  virtual scalar Cv
101  (
102  const label speciei,
103  const scalar p,
104  const scalar T
105  ) const = 0;
106 
107  //- Absolute enthalpy [J/kg]
108  virtual scalar Ha
109  (
110  const label speciei,
111  const scalar p,
112  const scalar T
113  ) const = 0;
114 
115  //- Sensible enthalpy [J/kg]
116  virtual scalar Hs
117  (
118  const label speciei,
119  const scalar p,
120  const scalar T
121  ) const = 0;
122 
123  //- Chemical enthalpy [J/kg]
124  virtual scalar Hc(const label speciei) const = 0;
125 
126  //- Entropy [J/(kg K)]
127  virtual scalar S
128  (
129  const label speciei,
130  const scalar p,
131  const scalar T
132  ) const = 0;
133 
134  //- Sensible internal energy [J/kg]
135  virtual scalar Es
136  (
137  const label speciei,
138  const scalar p,
139  const scalar T
140  ) const = 0;
141 
142  //- Gibbs free energy [J/kg]
143  virtual scalar G
144  (
145  const label speciei,
146  const scalar p,
147  const scalar T
148  ) const = 0;
149 
150  //- Helmholtz free energy [J/kg]
151  virtual scalar A
152  (
153  const label speciei,
154  const scalar p,
155  const scalar T
156  ) const = 0;
157 
158 
159  // Per specie transport properties
160 
161  //- Dynamic viscosity [kg/m/s]
162  virtual scalar mu
163  (
164  const label speciei,
165  const scalar p,
166  const scalar T
167  ) const = 0;
168 
169  //- Thermal conductivity [W/m/K]
170  virtual scalar kappa
171  (
172  const label speciei,
173  const scalar p,
174  const scalar T
175  ) const = 0;
176 
177  //- Thermal diffusivity of enthalpy [kg/m/s]
178  virtual scalar alphah
179  (
180  const label speciei,
181  const scalar p,
182  const scalar T
183  ) const = 0;
184 
185  //- Density [kg/m3]
186  virtual scalar rho
187  (
188  const label speciei,
189  const scalar p,
190  const scalar T
191  ) const = 0;
192 };
193 
194 
195 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
196 
197 } // End namespace Foam
198 
199 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
200 
201 #endif
202 
203 // ************************************************************************* //
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
A list of keyword definitions, which are a keyword followed by any number of values (e...
Definition: dictionary.H:137
virtual scalar kappa(const label speciei, const scalar p, const scalar T) const =0
Thermal conductivity [W/m/K].
virtual scalar Es(const label speciei, const scalar p, const scalar T) const =0
Sensible internal energy [J/kg].
virtual scalar Ha(const label speciei, const scalar p, const scalar T) const =0
Absolute enthalpy [J/kg].
virtual scalar rho(const label speciei, const scalar p, const scalar T) const =0
Density [kg/m3].
Specialization of basicMultiComponentMixture for a mixture consisting of a number for molecular speci...
virtual scalar A(const label speciei, const scalar p, const scalar T) const =0
Helmholtz free energy [J/kg].
virtual scalar Cp(const label speciei, const scalar p, const scalar T) const =0
Heat capacity at constant pressure [J/(kg K)].
virtual scalar mu(const label speciei, const scalar p, const scalar T) const =0
Dynamic viscosity [kg/m/s].
A class for handling words, derived from string.
Definition: word.H:59
virtual scalar Hc(const label speciei) const =0
Chemical enthalpy [J/kg].
virtual ~basicSpecieMixture()
Destructor.
virtual scalar Cv(const label speciei, const scalar p, const scalar T) const =0
Heat capacity at constant volume [J/(kg K)].
virtual scalar G(const label speciei, const scalar p, const scalar T) const =0
Gibbs free energy [J/kg].
virtual scalar S(const label speciei, const scalar p, const scalar T) const =0
Entropy [J/(kg K)].
virtual scalar alphah(const label speciei, const scalar p, const scalar T) const =0
Thermal diffusivity of enthalpy [kg/m/s].
void T(FieldField< Field, Type > &f1, const FieldField< Field, Type > &f2)
TypeName("basicSpecieMixture")
Run time type information.
Mesh data needed to do the Finite Volume discretisation.
Definition: fvMesh.H:78
virtual scalar Hs(const label speciei, const scalar p, const scalar T) const =0
Sensible enthalpy [J/kg].
basicSpecieMixture basicMixtureType
The base class of the mixture.
volScalarField & p
virtual scalar W(const label speciei) const =0
Molecular weight of the given specie [kg/kmol].
basicSpecieMixture(const dictionary &, const wordList &specieNames, const fvMesh &, const word &)
Construct from dictionary, species names, mesh and phase name.
Namespace for OpenFOAM.