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-2019 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/turbulenceProperties 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)
87  autoPtr
88  <
90  > turbulence1_;
91 
92  //- Phase-2 transport model (constructed for two-phase transport)
93  autoPtr
94  <
96  > turbulence2_;
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,
112  );
113 
114  //- Disallow default bitwise copy construction
116  (
118  );
119 
120 
121  // Member Functions
122 
123  //- Return the effective temperature transport coefficient
125 
126  //- Return the effective momentum stress divergence
128 
129  //- Correct the phase mass-fluxes
130  // (required for the two-phase transport option)
131  void correctPhasePhi();
132 
133  //- Correct the phase or mixture transport models
134  void correct();
135 
136 
137  // Member Operators
138 
139  //- Disallow default bitwise assignment
140  void operator=(const compressibleInterPhaseTransportModel&) = delete;
141 };
142 
143 
144 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
145 
146 } // End namespace Foam
147 
148 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
149 
150 #endif
151 
152 // ************************************************************************* //
surfaceScalarField & phi
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))
Templated wrapper class to provide compressible turbulence models thermal diffusivity based thermal t...
tmp< volScalarField > alphaEff() const
Return the effective temperature transport coefficient.
tmp< fvVectorMatrix > divDevRhoReff(volVectorField &U) const
Return the effective momentum stress divergence.
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.