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-2020 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 
47 #include "twoPhaseMixture.H"
48 #include "twoPhaseMixtureThermo.H"
51 
52 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
53 
54 namespace Foam
55 {
56 
57 /*---------------------------------------------------------------------------*\
58  Class compressibleInterPhaseTransportModel Declaration
59 \*---------------------------------------------------------------------------*/
60 
62 {
63  // Private Data
64 
65  //- Switch to select two-phase or mixture transport modelling
66  Switch twoPhaseTransport_;
67 
68  //- Two-phase mixture
69  const twoPhaseMixtureThermo& mixture_;
70 
71  //- Mixture volumetric flux
72  const surfaceScalarField& phi_;
73 
74  //- Phase volumetric flux
75  const surfaceScalarField& alphaPhi10_;
76 
77  //- Phase-1 mass-flux (constructed for two-phase transport)
78  tmp<surfaceScalarField> alphaRhoPhi1_;
79 
80  //- Phase-2 mass-flux (constructed for two-phase transport)
81  tmp<surfaceScalarField> alphaRhoPhi2_;
82 
83  //- Mixture transport model (constructed for mixture transport)
85 
86  //- Phase-1 transport model (constructed for two-phase transport)
88  turbulence1_;
89 
90  //- Phase-2 transport model (constructed for two-phase transport)
92  turbulence2_;
93 
94 
95 public:
96 
97  // Constructors
98 
99  //- Construct from components
101  (
102  const volScalarField& rho,
103  const volVectorField& U,
104  const surfaceScalarField& phi,
105  const surfaceScalarField& rhoPhi,
108  );
109 
110  //- Disallow default bitwise copy construction
112  (
114  );
115 
116 
117  // Member Functions
118 
119  //- Return the effective temperature transport coefficient
121 
122  //- Return the effective momentum stress divergence
124 
125  //- Correct the phase mass-fluxes
126  // (required for the two-phase transport option)
127  void correctPhasePhi();
128 
129  //- Correct the phase or mixture transport models
130  void correct();
131 
132 
133  // Member Operators
134 
135  //- Disallow default bitwise assignment
136  void operator=(const compressibleInterPhaseTransportModel&) = delete;
137 };
138 
139 
140 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
141 
142 } // End namespace Foam
143 
144 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
145 
146 #endif
147 
148 // ************************************************************************* //
Transport model selection class for the compressibleInterFoam family of solvers.
A simple wrapper around bool so that it can be read as a word: true/false, on/off, yes/no, y/n, t/f, or none/any.
Definition: Switch.H:60
void operator=(const compressibleInterPhaseTransportModel &)=delete
Disallow default bitwise assignment.
void correctPhasePhi()
Correct the phase mass-fluxes.
void correct()
Correct the phase or mixture transport models.
surfaceScalarField alphaPhi10(alphaPhi10Header, phi *fvc::interpolate(alpha1))
tmp< fvVectorMatrix > divDevTau(volVectorField &U) const
Return the effective momentum stress divergence.
tmp< volScalarField > alphaEff() const
Return the effective temperature transport coefficient.
phi
Definition: pEqn.H:104
compressibleInterPhaseTransportModel(const volScalarField &rho, const volVectorField &U, const surfaceScalarField &phi, const surfaceScalarField &rhoPhi, const surfaceScalarField &alphaPhi10, const twoPhaseMixtureThermo &mixture)
Construct from components.
U
Definition: pEqn.H:72
rhoPhi
Definition: rhoEqn.H:10
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
Definition: PtrList.H:52
A class for managing temporary objects.
Definition: PtrList.H:53
Namespace for OpenFOAM.