forGases.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) 2020-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 \*---------------------------------------------------------------------------*/
25 
26 #ifndef forGases_H
27 #define forGases_H
28 
29 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
30 
31 #include "specie.H"
32 
33 #include "Boussinesq.H"
34 #include "perfectGas.H"
35 
36 #include "eConstThermo.H"
37 #include "hConstThermo.H"
38 #include "janafThermo.H"
39 
40 #include "sensibleEnthalpy.H"
41 #include "sensibleInternalEnergy.H"
42 
43 #include "constTransport.H"
44 #include "sutherlandTransport.H"
45 #include "polynomialTransport.H"
46 
47 #include "thermo.H"
48 
49 #include "forThermo.H"
50 
51 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
52 
53 #define forGasEqns(Mu, He, Cp, Macro, Args...) \
54  forThermo(Mu, He, Cp, Boussinesq, specie, Macro, Args); \
55  forThermo(Mu, He, Cp, perfectGas, specie, Macro, Args)
56 
57 #define forGasEnergiesAndThermos(Mu, Macro, Args...) \
58  forGasEqns(Mu, sensibleEnthalpy, hConstThermo, Macro, Args); \
59  forGasEqns(Mu, sensibleEnthalpy, janafThermo, Macro, Args); \
60  forGasEqns(Mu, sensibleInternalEnergy, eConstThermo, Macro, Args); \
61  forGasEqns(Mu, sensibleInternalEnergy, hConstThermo, Macro, Args); \
62  forGasEqns(Mu, sensibleInternalEnergy, janafThermo, Macro, Args)
63 
64 #define forGasTransports(Macro, Args...) \
65  forGasEnergiesAndThermos(constTransport, Macro, Args); \
66  forGasEnergiesAndThermos(sutherlandTransport, Macro, Args)
67 
68 #define forGases(Macro, Args...) \
69  forGasTransports(Macro, Args)
70 
71 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
72 
73 #define forCoeffGasEqns(Mu, He, Cp, Macro, Args...) \
74  forThermo(Mu, He, Cp, perfectGas, specie, Macro, Args)
75 
76 #define forCoeffGasEnergiesAndThermos(Mu, Macro, Args...); \
77  forCoeffGasEqns(Mu, sensibleEnthalpy, hConstThermo, Macro, Args); \
78  forCoeffGasEqns(Mu, sensibleEnthalpy, janafThermo, Macro, Args); \
79  forCoeffGasEqns(Mu, sensibleInternalEnergy, eConstThermo, Macro, Args); \
80  forCoeffGasEqns(Mu, sensibleInternalEnergy, hConstThermo, Macro, Args); \
81  forCoeffGasEqns(Mu, sensibleInternalEnergy, janafThermo, Macro, Args)
82 
83 #define forCoeffGasTransports(Macro, Args...) \
84  forCoeffGasEnergiesAndThermos(constTransport, Macro, Args); \
85  forCoeffGasEnergiesAndThermos(sutherlandTransport, Macro, Args)
86 
87 #define forCoeffGases(Macro, Args...) \
88  forCoeffGasTransports(Macro, Args)
89 
90 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
91 
92 #define forEnergyGasEqns(Mu, He, Cp, Macro, Args...) \
93  forThermo(Mu, He, Cp, Boussinesq, specie, Macro, Args); \
94  forThermo(Mu, He, Cp, perfectGas, specie, Macro, Args)
95 
96 #define forEnergyGasEnergiesAndThermos(Mu, Macro, Args...) \
97  forEnergyGasEqns(Mu, sensibleInternalEnergy, eConstThermo, Macro, Args); \
98  forEnergyGasEqns(Mu, sensibleInternalEnergy, hConstThermo, Macro, Args); \
99  forEnergyGasEqns(Mu, sensibleInternalEnergy, janafThermo, Macro, Args)
100 
101 #define forEnergyGasTransports(Macro, Args...) \
102  forEnergyGasEnergiesAndThermos(constTransport, Macro, Args); \
103  forEnergyGasEnergiesAndThermos(sutherlandTransport, Macro, Args)
104 
105 #define forEnergyGases(Macro, Args...) \
106  forEnergyGasTransports(Macro, Args)
107 
108 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
109 
110 #define forCoeffEnthalpyGasEqns(Mu, He, Cp, Macro, Args...) \
111  forThermo(Mu, He, Cp, perfectGas, specie, Macro, Args)
112 
113 #define forCoeffEnthalpyGasEnergiesAndThermos(Mu, Macro, Args...) \
114  forCoeffEnthalpyGasEqns(Mu, sensibleEnthalpy, hConstThermo, Macro, Args); \
115  forCoeffEnthalpyGasEqns(Mu, sensibleEnthalpy, janafThermo, Macro, Args)
116 
117 #define forCoeffEnthalpyGasTransports(Macro, Args...) \
118  forCoeffEnthalpyGasEnergiesAndThermos(constTransport, Macro, Args); \
119  forCoeffEnthalpyGasEnergiesAndThermos(sutherlandTransport, Macro, Args); \
120  forCoeffEnthalpyGasEnergiesAndThermos(polynomialTransport, Macro, Args)
121 
122 #define forCoeffEnthalpyGases(Macro, Args...) \
123  forCoeffEnthalpyGasTransports(Macro, Args)
124 
125 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
126 
127 #define forCoeffEnergyGasEqns(Mu, He, Cp, Macro, Args...) \
128  forThermo(Mu, He, Cp, perfectGas, specie, Macro, Args)
129 
130 #define forCoeffEnergyGasEnergiesAndThermos(Mu, Args...) \
131  forCoeffEnergyGasEqns(Mu, sensibleInternalEnergy, eConstThermo, Args); \
132  forCoeffEnergyGasEqns(Mu, sensibleInternalEnergy, hConstThermo, Args); \
133  forCoeffEnergyGasEqns(Mu, sensibleInternalEnergy, janafThermo, Args)
134 
135 #define forCoeffEnergyGasTransports(Macro, Args...) \
136  forCoeffEnergyGasEnergiesAndThermos(constTransport, Macro, Args); \
137  forCoeffEnergyGasEnergiesAndThermos(sutherlandTransport, Macro, Args)
138 
139 #define forCoeffEnergyGases(Macro, Args...) \
140  forCoeffEnergyGasTransports(Macro, Args)
141 
142 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
143 
144 #endif
145 
146 // ************************************************************************* //