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-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 \*---------------------------------------------------------------------------*/
25 
26 #ifndef forLiquids_H
27 #define forLiquids_H
28 
29 #include "specie.H"
30 
31 #include "adiabaticPerfectFluid.H"
32 #include "rhoConst.H"
33 #include "rPolynomial.H"
34 
35 #include "eConstThermo.H"
36 #include "hConstThermo.H"
37 
38 #include "sensibleEnthalpy.H"
39 #include "sensibleInternalEnergy.H"
40 
41 #include "constTransport.H"
42 
43 #include "thermo.H"
44 
45 #include "forThermo.H"
46 
47 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
48 
49 #define forLiquidEqns(Mu, He, Cp, Macro, Args...) \
50  forThermo(Mu, He, Cp, adiabaticPerfectFluid, specie, Macro, Args); \
51  forThermo(Mu, He, Cp, rhoConst, specie, Macro, Args); \
52  forThermo(Mu, He, Cp, rPolynomial, specie, Macro, Args)
53 
54 #define forLiquidEnergiesAndThermos(Mu, Macro, Args...) \
55  forLiquidEqns(Mu, sensibleEnthalpy, hConstThermo, Macro, Args); \
56  forLiquidEqns(Mu, sensibleInternalEnergy, eConstThermo, Macro, Args); \
57  forLiquidEqns(Mu, sensibleInternalEnergy, hConstThermo, Macro, Args)
58 
59 #define forLiquidTransports(Macro, Args...) \
60  forLiquidEnergiesAndThermos(constTransport, Macro, Args);
61 
62 #define forLiquids(Macro, Args...) \
63  forLiquidTransports(Macro, Args)
64 
65 
66 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
67 
68 #define forCoeffLiquidEqns(Mu, He, Cp, Macro, Args...) \
69  forThermo(Mu, He, Cp, rhoConst, specie, Macro, Args); \
70  forThermo(Mu, He, Cp, rPolynomial, specie, Macro, Args)
71 
72 #define forCoeffLiquidEnergiesAndThermos(Mu, Macro, Args...) \
73  forCoeffLiquidEqns(Mu, sensibleEnthalpy, hConstThermo, Macro, Args); \
74  forCoeffLiquidEqns(Mu, sensibleInternalEnergy, eConstThermo, Macro, Args); \
75  forCoeffLiquidEqns(Mu, sensibleInternalEnergy, hConstThermo, Macro, Args)
76 
77 #define forCoeffLiquidTransports(Macro, Args...) \
78  forCoeffLiquidEnergiesAndThermos(constTransport, Macro, Args);
79 
80 #define forCoeffLiquids(Macro, Args...) \
81  forCoeffLiquidTransports(Macro, Args)
82 
83 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
84 
85 #endif
86 
87 // ************************************************************************* //