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 volumetric flux
76  const surfaceScalarField& alphaPhi1_;
77 
78  //- Phase-1 mass-flux (constructed for two-phase transport)
79  const surfaceScalarField& alphaRhoPhi1_;
80 
81  //- Phase-2 mass-flux (constructed for two-phase transport)
82  const surfaceScalarField& alphaRhoPhi2_;
83 
84  //- Mixture transport model (constructed for mixture transport)
85  autoPtr<compressible::momentumTransportModel> mixtureMomentumTransport_;
86 
87  //- Phase-1 transport model (constructed for two-phase transport)
89 
90  //- Phase-2 transport model (constructed for two-phase transport)
92 
94 
95 
96 public:
97 
98  // Constructors
99 
100  //- Construct from components
102  (
103  const volScalarField& rho,
104  const volVectorField& U,
105  const surfaceScalarField& phi,
106  const surfaceScalarField& rhoPhi,
107  const surfaceScalarField& alphaPhi1,
108  const surfaceScalarField& alphaRhoPhi1,
109  const surfaceScalarField& alphaRhoPhi2,
111  );
112 
113  //- Disallow default bitwise copy construction
115  (
117  ) = delete;
118 
119 
120  // Member Functions
121 
122  //- Return the effective momentum stress divergence
124 
125  //- Predict the phase or mixture transport models
126  void predict();
127 
128  //- Correct the phase or mixture transport models
129  void correct();
130 
131 
132  // Member Operators
133 
134  //- Disallow default bitwise assignment
135  void operator=(const compressibleInterPhaseTransportModel&) = delete;
136 };
137 
138 
139 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
140 
141 } // End namespace Foam
142 
143 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
144 
145 #endif
146 
147 // ************************************************************************* //
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 &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 rhoThermo-based phases.
A class for managing temporary objects.
Definition: tmp.H:55
U
Definition: pEqn.H:72
Namespace for OpenFOAM.