forLiquids.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 forLiquids_H
27 #define forLiquids_H
28 
29 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
30 
31 #include "specie.H"
32 
33 #include "adiabaticPerfectFluid.H"
34 #include "rhoConst.H"
35 #include "rPolynomial.H"
36 
37 #include "eConstThermo.H"
38 #include "hConstThermo.H"
39 
40 #include "sensibleEnthalpy.H"
41 #include "sensibleInternalEnergy.H"
42 
43 #include "constTransport.H"
44 
45 #include "thermo.H"
46 
47 #include "forThermo.H"
48 
49 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
50 
51 #define forLiquidEqns(Mu, He, Cp, Macro, Args...) \
52  forThermo(Mu, He, Cp, adiabaticPerfectFluid, specie, Macro, Args); \
53  forThermo(Mu, He, Cp, rhoConst, specie, Macro, Args); \
54  forThermo(Mu, He, Cp, rPolynomial, specie, Macro, Args)
55 
56 #define forLiquidEnergiesAndThermos(Mu, Macro, Args...) \
57  forLiquidEqns(Mu, sensibleEnthalpy, hConstThermo, Macro, Args); \
58  forLiquidEqns(Mu, sensibleInternalEnergy, eConstThermo, Macro, Args); \
59  forLiquidEqns(Mu, sensibleInternalEnergy, hConstThermo, Macro, Args)
60 
61 #define forLiquidTransports(Macro, Args...) \
62  forLiquidEnergiesAndThermos(constTransport, Macro, Args)
63 
64 #define forLiquids(Macro, Args...) \
65  forLiquidTransports(Macro, Args)
66 
67 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
68 
69 #define forCoeffLiquidEqns(Mu, He, Cp, Macro, Args...) \
70  forThermo(Mu, He, Cp, rhoConst, specie, Macro, Args); \
71  forThermo(Mu, He, Cp, rPolynomial, specie, Macro, Args)
72 
73 #define forCoeffLiquidEnergiesAndThermos(Mu, Macro, Args...) \
74  forCoeffLiquidEqns(Mu, sensibleEnthalpy, hConstThermo, Macro, Args); \
75  forCoeffLiquidEqns(Mu, sensibleInternalEnergy, eConstThermo, Macro, Args); \
76  forCoeffLiquidEqns(Mu, sensibleInternalEnergy, hConstThermo, Macro, Args)
77 
78 #define forCoeffLiquidTransports(Macro, Args...) \
79  forCoeffLiquidEnergiesAndThermos(constTransport, Macro, Args)
80 
81 #define forCoeffLiquids(Macro, Args...) \
82  forCoeffLiquidTransports(Macro, Args)
83 
84 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
85 
86 #define forEnergyLiquidEqns(Mu, He, Cp, Macro, Args...) \
87  forThermo(Mu, He, Cp, adiabaticPerfectFluid, specie, Macro, Args); \
88  forThermo(Mu, He, Cp, rhoConst, specie, Macro, Args); \
89  forThermo(Mu, He, Cp, rPolynomial, specie, Macro, Args)
90 
91 #define forEnergyLiquidEnergiesAndThermos(Mu, Macro, Args...) \
92  forEnergyLiquidEqns(Mu, sensibleInternalEnergy, eConstThermo, Macro, Args);\
93  forEnergyLiquidEqns(Mu, sensibleInternalEnergy, hConstThermo, Macro, Args)
94 
95 #define forEnergyLiquidTransports(Macro, Args...) \
96  forEnergyLiquidEnergiesAndThermos(constTransport, Macro, Args)
97 
98 #define forEnergyLiquids(Macro, Args...) \
99  forEnergyLiquidTransports(Macro, Args)
100 
101 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
102 
103 #define forCoeffEnergyLiquidEqns(Mu, He, Cp, Macro, Args...) \
104  forThermo(Mu, He, Cp, rhoConst, specie, Macro, Args); \
105  forThermo(Mu, He, Cp, rPolynomial, specie, Macro, Args)
106 
107 #define forCoeffEnergyLiquidEnergiesAndThermos(Mu, Args...) \
108  forCoeffEnergyLiquidEqns(Mu, sensibleInternalEnergy, eConstThermo, Args); \
109  forCoeffEnergyLiquidEqns(Mu, sensibleInternalEnergy, hConstThermo, Args)
110 
111 #define forCoeffEnergyLiquidTransports(Macro, Args...) \
112  forCoeffEnergyLiquidEnergiesAndThermos(constTransport, Macro, Args)
113 
114 #define forCoeffEnergyLiquids(Macro, Args...) \
115  forCoeffEnergyLiquidTransports(Macro, Args)
116 
117 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
118 
119 #endif
120 
121 // ************************************************************************* //