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  dimensionedScalar mcCoeff_;
79  dimensionedScalar mvCoeff_;
80 
81 
82 public:
83 
84  //- Runtime type information
85  TypeName("Kunz");
86 
87 
88  // Constructors
89 
90  //- Construct for mixture
91  Kunz
92  (
94  );
95 
96 
97  //- Destructor
98  virtual ~Kunz()
99  {}
100 
101 
102  // Member Functions
103 
104  //- Return the mass condensation and vaporisation rates as a
105  // coefficient to multiply (1 - alphal) for the condensation rate
106  // and a coefficient to multiply alphal for the vaporisation rate
107  virtual Pair<tmp<volScalarField>> mDotAlphal() const;
108 
109  //- Return the mass condensation and vaporisation rates as coefficients
110  // to multiply (p - pSat)
111  virtual Pair<tmp<volScalarField>> mDotP() const;
112 
113  //- Correct the Kunz phaseChange model
114  virtual void correct();
115 
116  //- Read the transportProperties dictionary and update
117  virtual bool read();
118 };
119 
120 
121 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
122 
123 } // End namespace twoPhaseChangeModels
124 } // End namespace Foam
125 
126 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
127 
128 #endif
129 
130 // ************************************************************************* //
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
Abstract base class for cavitation models.
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 transportProperties dictionary and update.
Definition: Kunz.C:113
Kunz cavitation model slightly modified so that the condensation term is switched off when the pressu...
Definition: Kunz.H:64
An immiscible incompressible two-phase mixture transport model.
virtual ~Kunz()
Destructor.
Definition: Kunz.H:97
Namespace for OpenFOAM.