Kunz.H
Go to the documentation of this file.
1 /*---------------------------------------------------------------------------*\
2  ========= |
3  \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
4  \\ / O peration |
5  \\ / A nd | Copyright (C) 2011-2016 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::phaseChangeTwoPhaseMixtures::Kunz
26 
27 Description
28  Kunz cavitation model slightly modified so that the condensation term
29  is switched off when the pressure is less than the saturation vapour
30  pressure. This change allows the condensation term to be formulated as
31  a coefficient multiplying (p - p_sat) so that it can be included as an
32  implicit term in the pressure equation.
33 
34  Reference:
35  \verbatim
36  Kunz, R.F., Boger, D.A., Stinebring, D.R., Chyczewski, Lindau. J.W.,
37  Gibeling, H.J., Venkateswaran, S., Govindan, T.R.,
38  "A Preconditioned Implicit Method for Two-Phase Flows with Application
39  to Cavitation Prediction,"
40  Computers and Fluids,
41  29(8):849-875, 2000.
42  \endverbatim
43 
44 SourceFiles
45  Kunz.C
46 
47 \*--------------------------------------------------------------------*/
48 
49 #ifndef Kunz_H
50 #define Kunz_H
51 
53 
54 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
55 
56 namespace Foam
57 {
58 namespace phaseChangeTwoPhaseMixtures
59 {
60 
61 /*--------------------------------------------------------------------*\
62  Class Kunz
63 \*--------------------------------------------------------------------*/
64 
65 class Kunz
66 :
68 {
69  // Private data
70 
71  dimensionedScalar UInf_;
72  dimensionedScalar tInf_;
75 
77 
78  dimensionedScalar mcCoeff_;
79  dimensionedScalar mvCoeff_;
80 
81 
82 public:
83 
84  //- Runtime type information
85  TypeName("Kunz");
86 
87 
88  // Constructors
89 
90  //- Construct from components
91  Kunz
92  (
93  const volVectorField& U,
94  const surfaceScalarField& phi
95  );
96 
97 
98  //- Destructor
99  virtual ~Kunz()
100  {}
101 
102 
103  // Member Functions
104 
105  //- Return the mass condensation and vaporisation rates as a
106  // coefficient to multiply (1 - alphal) for the condensation rate
107  // and a coefficient to multiply alphal for the vaporisation rate
108  virtual Pair<tmp<volScalarField>> mDotAlphal() const;
109 
110  //- Return the mass condensation and vaporisation rates as coefficients
111  // to multiply (p - pSat)
112  virtual Pair<tmp<volScalarField>> mDotP() const;
113 
114  //- Correct the Kunz phaseChange model
115  virtual void correct();
116 
117  //- Read the transportProperties dictionary and update
118  virtual bool read();
119 };
120 
121 
122 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
123 
124 } // End namespace phaseChangeTwoPhaseMixtures
125 } // End namespace Foam
126 
127 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
128 
129 #endif
130 
131 // ************************************************************************* //
virtual Pair< tmp< volScalarField > > mDotAlphal() const
Return the mass condensation and vaporisation rates as a.
surfaceScalarField & phi
virtual Pair< tmp< volScalarField > > mDotP() const
Return the mass condensation and vaporisation rates as coefficients.
const volVectorField & U() const
Return const-access to the mixture velocity.
An ordered pair of two objects of type <T> with first() and second() elements.
Definition: contiguous.H:49
virtual ~Kunz()
Destructor.
Definition: Kunz.H:98
Kunz cavitation model slightly modified so that the condensation term is switched off when the pressu...
Definition: Kunz.H:64
Kunz(const volVectorField &U, const surfaceScalarField &phi)
Construct from components.
virtual void correct()
Correct the Kunz phaseChange model.
virtual bool read()
Read the transportProperties dictionary and update.
TypeName("Kunz")
Runtime type information.
Namespace for OpenFOAM.