FreeFOAM The Cross-Platform CFD Toolkit
Merkle.H
Go to the documentation of this file.
1 /*---------------------------------------------------------------------------*\
2  ========Merkle= |
3  \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
4  \\ / O peration |
5  \\ / A nd | Copyright (C) 1991-2010 OpenCFD Ltd.
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::Merkle
26 
27 Description
28  Merkle cavitation model.
29 
30  Reference:
31  @verbatim
32  C. L. Merkle, J. Feng, and P. E. O. Buelow,
33  "Computational modeling of the dynamics of sheet cavitation",
34  in Proceedings Third International Symposium on Cavitation
35  Grenoble, France 1998.
36  @endverbatim
37 
38 SourceFiles
39  Merkle.C
40 
41 \*--------------------------------------------------------------------*/
42 
43 #ifndef Merkle_H
44 #define Merkle_H
45 
47 
48 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
49 
50 namespace Foam
51 {
52 namespace phaseChangeTwoPhaseMixtures
53 {
54 
55 /*--------------------------------------------------------------------*\
56  Class Merkle
57 \*--------------------------------------------------------------------*/
58 
59 class Merkle
60 :
62 {
63  // Private data
64 
65  dimensionedScalar UInf_;
66  dimensionedScalar tInf_;
69 
71 
72  dimensionedScalar mcCoeff_;
73  dimensionedScalar mvCoeff_;
74 
75 
76 public:
77 
78  //- Runtime type information
79  TypeName("Merkle");
80 
81 
82  // Constructors
83 
84  //- construct from components
85  Merkle
86  (
87  const volVectorField& U,
88  const surfaceScalarField& phi,
89  const word& alpha1Name = "alpha1"
90  );
91 
92 
93  // Destructor
94 
95  virtual ~Merkle()
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
104  virtual Pair<tmp<volScalarField> > mDotAlphal() const;
105 
106  //- Return the mass condensation and vaporisation rates as an
107  // explicit term for the condensation rate and a coefficient to
108  // multiply (p - pSat) for the vaporisation rate
109  virtual Pair<tmp<volScalarField> > mDotP() const;
110 
111  //- Correct the Merkle phaseChange model
112  virtual void correct();
113 
114  //- Read the transportProperties dictionary and update
115  virtual bool read();
116 };
117 
118 
119 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
120 
121 } // End namespace phaseChangeTwoPhaseMixtures
122 } // End namespace Foam
123 
124 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
125 
126 #endif
127 
128 // ************************ vim: set sw=4 sts=4 et: ************************ //