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-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 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"
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 compressibleTwoPhaseMixture& mixture_;
70 
71  //- Mixture volumetric flux
72  const surfaceScalarField& phi_;
73 
74  //- Phase volumetric flux
75  const surfaceScalarField& alphaPhi1_;
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 
89  //- Phase-2 transport model (constructed for two-phase transport)
91 
92 
93 public:
94 
95  // Constructors
96 
97  //- Construct from components
99  (
100  const volScalarField& rho,
101  const volVectorField& U,
102  const surfaceScalarField& phi,
103  const surfaceScalarField& rhoPhi,
106  );
107 
108  //- Disallow default bitwise copy construction
110  (
112  );
113 
114 
115  // Member Functions
116 
117  //- Return the effective temperature transport coefficient
119 
120  //- Return the effective momentum stress divergence
122 
123  //- Correct the phase mass-fluxes
124  // (required for the two-phase transport option)
125  void correctPhasePhi();
126 
127  //- Correct the phase or mixture transport models
128  void correct();
129 
130 
131  // Member Operators
132 
133  //- Disallow default bitwise assignment
134  void operator=(const compressibleInterPhaseTransportModel&) = delete;
135 };
136 
137 
138 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
139 
140 } // End namespace Foam
141 
142 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
143 
144 #endif
145 
146 // ************************************************************************* //
surfaceScalarField alphaPhi1(alphaPhi1Header, phi *fvc::interpolate(alpha1))
U
Definition: pEqn.H:72
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
compressibleInterPhaseTransportModel(const volScalarField &rho, const volVectorField &U, const surfaceScalarField &phi, const surfaceScalarField &rhoPhi, const surfaceScalarField &alphaPhi1, const compressibleTwoPhaseMixture &mixture)
Construct from components.
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.
tmp< fvVectorMatrix > divDevTau(volVectorField &U) const
Return the effective momentum stress divergence.
tmp< volScalarField > alphaEff() const
Return the effective temperature transport coefficient.
phi
Definition: correctPhi.H:3
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
Thermophysical properties class for a mixture of two rhoThermo including interfaceProperties for VoF ...
A class for managing temporary objects.
Definition: PtrList.H:53
Namespace for OpenFOAM.