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-2015 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 
75 
77 
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 // ************************************************************************* //
phi
surfaceScalarField & phi
Definition: setRegionFluidFields.H:8
Foam::phaseChangeTwoPhaseMixtures::Kunz::mvCoeff_
dimensionedScalar mvCoeff_
Definition: Kunz.H:78
Foam::phaseChangeTwoPhaseMixtures::Kunz::Kunz
Kunz(const volVectorField &U, const surfaceScalarField &phi)
Construct from components.
Foam::phaseChangeTwoPhaseMixtures::Kunz::read
virtual bool read()
Read the transportProperties dictionary and update.
Foam::phaseChangeTwoPhaseMixtures::Kunz::~Kunz
virtual ~Kunz()
Destructor.
Definition: Kunz.H:98
Foam::phaseChangeTwoPhaseMixtures::Kunz
Kunz cavitation model slightly modified so that the condensation term is switched off when the pressu...
Definition: Kunz.H:64
Foam::phaseChangeTwoPhaseMixtures::Kunz::TypeName
TypeName("Kunz")
Runtime type information.
Foam::phaseChangeTwoPhaseMixtures::Kunz::tInf_
dimensionedScalar tInf_
Definition: Kunz.H:71
Foam::phaseChangeTwoPhaseMixtures::Kunz::mcCoeff_
dimensionedScalar mcCoeff_
Definition: Kunz.H:77
Foam::dimensioned
Generic dimensioned Type class.
Definition: dimensionedScalarFwd.H:41
Foam
Namespace for OpenFOAM.
Definition: combustionModel.C:30
Foam::phaseChangeTwoPhaseMixtures::Kunz::correct
virtual void correct()
Correct the Kunz phaseChange model.
Foam::phaseChangeTwoPhaseMixture
Definition: phaseChangeTwoPhaseMixture.H:54
Foam::phaseChangeTwoPhaseMixtures::Kunz::UInf_
dimensionedScalar UInf_
Definition: Kunz.H:70
Foam::phaseChangeTwoPhaseMixtures::Kunz::p0_
dimensionedScalar p0_
Definition: Kunz.H:75
Foam::Pair
An ordered pair of two objects of type <T> with first() and second() elements.
Definition: contiguous.H:49
Foam::phaseChangeTwoPhaseMixtures::Kunz::Cc_
dimensionedScalar Cc_
Definition: Kunz.H:72
phaseChangeTwoPhaseMixture.H
Foam::incompressibleTwoPhaseMixture::U
const volVectorField & U() const
Return const-access to the mixture velocity.
Definition: incompressibleTwoPhaseMixture.H:127
Foam::phaseChangeTwoPhaseMixtures::Kunz::Cv_
dimensionedScalar Cv_
Definition: Kunz.H:73
Foam::GeometricField
Generic GeometricField class.
Definition: surfaceFieldsFwd.H:52
Foam::phaseChangeTwoPhaseMixtures::Kunz::mDotAlphal
virtual Pair< tmp< volScalarField > > mDotAlphal() const
Return the mass condensation and vaporisation rates as a.
Foam::phaseChangeTwoPhaseMixtures::Kunz::mDotP
virtual Pair< tmp< volScalarField > > mDotP() const
Return the mass condensation and vaporisation rates as coefficients.