Kunz.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) 2011-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::twoPhaseChangeModels::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 
52 #include "cavitationModel.H"
53 
54 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
55 
56 namespace Foam
57 {
58 namespace twoPhaseChangeModels
59 {
60 
61 /*---------------------------------------------------------------------------*\
62  Class Kunz
63 \*---------------------------------------------------------------------------*/
64 
65 class Kunz
66 :
67  public cavitationModel
68 {
69  // Private Data
70 
71  dimensionedScalar UInf_;
72  dimensionedScalar tInf_;
75 
77 
78 
79 public:
80 
81  //- Runtime type information
82  TypeName("Kunz");
83 
84 
85  // Constructors
86 
87  //- Construct for mixture
88  Kunz
89  (
90  const compressibleTwoPhaseMixture& mixture
91  );
92 
93 
94  //- Destructor
95  virtual ~Kunz()
96  {}
97 
98 
99  // Member Functions
100 
101  //- Return the mass condensation and vaporisation rates as a
102  // coefficient to multiply (1 - alphal) for the condensation rate
103  // and a coefficient to multiply alphal for the vaporisation rate
105 
106  //- Return the mass condensation and vaporisation rates as coefficients
107  // to multiply (p - pSat)
108  virtual Pair<tmp<volScalarField::Internal>> mDotP() const;
109 
110  //- Correct the Kunz phaseChange model
111  virtual void correct();
112 
113  //- Read the phaseProperties dictionary and update
114  virtual bool read();
115 };
116 
117 
118 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
119 
120 } // End namespace twoPhaseChangeModels
121 } // End namespace Foam
122 
123 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
124 
125 #endif
126 
127 // ************************************************************************* //
TypeName("Kunz")
Runtime type information.
virtual Pair< tmp< volScalarField > > mDotP() const
Return the mass condensation and vaporisation rates as coefficients.
Definition: Kunz.C:87
virtual void correct()
Correct the Kunz phaseChange model.
Definition: Kunz.C:107
Kunz(const immiscibleIncompressibleTwoPhaseMixture &mixture)
Construct for mixture.
Definition: Kunz.C:43
virtual Pair< tmp< volScalarField > > mDotAlphal() const
Return the mass condensation and vaporisation rates as a.
Definition: Kunz.C:66
An ordered pair of two objects of type <T> with first() and second() elements.
Definition: contiguous.H:49
virtual bool read()
Read the phaseProperties dictionary and update.
Definition: Kunz.C:113
dimensioned< scalar > dimensionedScalar
Dimensioned scalar obtained from generic dimensioned type.
virtual ~Kunz()
Destructor.
Definition: Kunz.H:97
Namespace for OpenFOAM.