compressibleInterPhaseTransportModel.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) 2017-2023 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::compressibleInterPhaseTransportModel
26 
27 Description
28  Transport model selection class for the compressibleInterFoam family of
29  solvers.
30 
31  By default the standard mixture transport modelling approach is used in
32  which a single momentum stress model (laminar, non-Newtonian, LES or RAS) is
33  constructed for the mixture. However if the \c simulationType in
34  constant/momentumTransport is set to \c twoPhaseTransport the alternative
35  Euler-Euler two-phase transport modelling approach is used in which separate
36  stress models (laminar, non-Newtonian, LES or RAS) are instantiated for each
37  of the two phases allowing for different modeling for the phases.
38 
39 SourceFiles
40  compressibleInterPhaseTransportModel.C
41 
42 \*---------------------------------------------------------------------------*/
43 
44 #ifndef compressibleInterPhaseTransportModel_H
45 #define compressibleInterPhaseTransportModel_H
46 
50 
51 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
52 
53 namespace Foam
54 {
55 
56 class compressibleInterPhaseThermophysicalTransportModel;
57 
58 /*---------------------------------------------------------------------------*\
59  Class compressibleInterPhaseTransportModel Declaration
60 \*---------------------------------------------------------------------------*/
61 
63 {
64  // Private Data
65 
66  //- Switch to select two-phase or mixture transport modelling
67  Switch twoPhaseTransport_;
68 
69  //- Two-phase mixture
70  const compressibleTwoPhaseVoFMixture& mixture_;
71 
72  //- Mixture volumetric flux
73  const surfaceScalarField& phi_;
74 
75  //- Phase-1 volumetric flux
76  const surfaceScalarField& alphaPhi1_;
77 
78  //- Phase-2 volumetric flux
79  const surfaceScalarField& alphaPhi2_;
80 
81  //- Phase-1 mass flux
82  const surfaceScalarField& alphaRhoPhi1_;
83 
84  //- Phase-2 mass flux
85  const surfaceScalarField& alphaRhoPhi2_;
86 
87  //- Mixture transport model (constructed for mixture transport)
88  autoPtr<compressible::momentumTransportModel> mixtureMomentumTransport_;
89 
90  //- Phase-1 transport model (constructed for two-phase transport)
92 
93  //- Phase-2 transport model (constructed for two-phase transport)
95 
97 
98 
99 public:
100 
101  // Constructors
102 
103  //- Construct from components
105  (
106  const volScalarField& rho,
107  const volVectorField& U,
108  const surfaceScalarField& phi,
109  const surfaceScalarField& rhoPhi,
110  const surfaceScalarField& alphaPhi1,
111  const surfaceScalarField& alphaPhi2,
112  const surfaceScalarField& alphaRhoPhi1,
113  const surfaceScalarField& alphaRhoPhi2,
115  );
116 
117  //- Disallow default bitwise copy construction
119  (
121  ) = delete;
122 
123 
124  // Member Functions
125 
126  //- Return the effective momentum stress divergence
128 
129  //- Predict the phase or mixture transport models
130  void predict();
131 
132  //- Correct the phase or mixture transport models
133  void correct();
134 
135 
136  // Member Operators
137 
138  //- Disallow default bitwise assignment
139  void operator=(const compressibleInterPhaseTransportModel&) = delete;
140 };
141 
142 
143 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
144 
145 } // End namespace Foam
146 
147 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
148 
149 #endif
150 
151 // ************************************************************************* //
Generic GeometricField class.
A simple wrapper around bool so that it can be read as a word: true/false, on/off,...
Definition: Switch.H:61
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
Definition: autoPtr.H:51
Transport model selection class for the compressibleInterFoam family of solvers.
compressibleInterPhaseTransportModel(const volScalarField &rho, const volVectorField &U, const surfaceScalarField &phi, const surfaceScalarField &rhoPhi, const surfaceScalarField &alphaPhi1, const surfaceScalarField &alphaPhi2, const surfaceScalarField &alphaRhoPhi1, const surfaceScalarField &alphaRhoPhi2, const compressibleTwoPhaseVoFMixture &mixture)
Construct from components.
void correct()
Correct the phase or mixture transport models.
void operator=(const compressibleInterPhaseTransportModel &)=delete
Disallow default bitwise assignment.
void predict()
Predict the phase or mixture transport models.
tmp< fvVectorMatrix > divDevTau(volVectorField &U) const
Return the effective momentum stress divergence.
Class to represent a mixture of two rhoFluidThermo-based phases.
A class for managing temporary objects.
Definition: tmp.H:55
U
Definition: pEqn.H:72
Namespace for OpenFOAM.