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