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-2023 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::cavitationModels::Merkle
26 
27 Description
28  Merkle cavitation model.
29 
30  Reference:
31  \verbatim
32  Markle, C. L. (1998).
33  Computational modeling of the dynamics of sheet cavitation.
34  In Proc. 3rd International Symposium on Cavitation
35  (Vol. 2, pp. 307-311).
36  \endverbatim
37 
38 Usage:
39  \table
40  Property | Description | Required | Default value
41  liquid | Name of the liquid phase | yes |
42  pSat | Saturation vapor pressure | yes |
43  Uinf | Free-stream velocity | yes |
44  tInf | Vaporisation/condensation time scale | yes |
45  Cv | Vapourisation rate coefficient | yes |
46  Cc | Condensation rate coefficient | yes |
47  \endtable
48 
49  Example:
50  \verbatim
51  model Merkle;
52 
53  liquid liquid;
54 
55  pSat 2300;
56 
57  UInf 20;
58  tInf 0.005; // L = 0.1 m
59  Cv 1e-3;
60  Cc 80;
61  \endverbatim
62 
63 SourceFiles
64  Merkle.C
65 
66 \*---------------------------------------------------------------------------*/
67 
68 #ifndef Merkle_H
69 #define Merkle_H
70 
71 #include "cavitationModel.H"
72 
73 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
74 
75 namespace Foam
76 {
77 namespace cavitationModels
78 {
79 
80 /*---------------------------------------------------------------------------*\
81  Class Merkle
82 \*---------------------------------------------------------------------------*/
83 
84 class Merkle
85 :
86  public cavitationModel
87 {
88  // Private Data
89 
90  //- Free-stream velocity
91  dimensionedScalar UInf_;
92 
93  //- Vaporisation/condensation time scale
94  dimensionedScalar tInf_;
95 
96  //- Vaporisation rate coefficient
98 
99  //- Condensation rate coefficient
100  dimensionedScalar Cc_;
101 
102  //- Zero with pressure dimensions
103  dimensionedScalar p0_;
104 
105  dimensionedScalar mcCoeff_;
106 
107  dimensionedScalar mvCoeff_;
108 
109 
110 public:
111 
112  //- Runtime type information
113  TypeName("Merkle");
114 
115 
116  // Constructors
117 
118  //- Construct for phases
119  Merkle
120  (
121  const dictionary& dict,
122  const incompressibleTwoPhases& phases
123  );
124 
125 
126  //- Destructor
127  virtual ~Merkle()
128  {}
129 
130 
131  // Member Functions
132 
133  //- Return the mass condensation and vaporisation rates as a
134  // coefficient to multiply alphav for the condensation rate and a
135  // coefficient to multiply alphal for the vaporisation rate
137 
138  //- Return the mass condensation and vaporisation rates as coefficients
139  // to multiply (p - pSat)
141 
142  //- Correct the Merkle phaseChange model
143  virtual void correct();
144 
145  //- Read the dictionary and update
146  virtual bool read(const dictionary& dict);
147 };
148 
149 
150 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
151 
152 } // End namespace cavitationModels
153 } // End namespace Foam
154 
155 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
156 
157 #endif
158 
159 // ************************************************************************* //
An ordered pair of two objects of type <T> with first() and second() elements.
Definition: Pair.H:65
Merkle(const dictionary &dict, const incompressibleTwoPhases &phases)
Construct for phases.
Definition: Merkle.C:43
virtual ~Merkle()
Destructor.
Definition: Merkle.H:161
virtual void correct()
Correct the Merkle phaseChange model.
Definition: Merkle.C:99
TypeName("Merkle")
Runtime type information.
virtual bool read(const dictionary &dict)
Read the dictionary and update.
Definition: Merkle.C:103
virtual Pair< tmp< volScalarField::Internal > > mDotcvAlpha() const
Return the mass condensation and vaporisation rates as a.
Definition: Merkle.C:67
virtual Pair< tmp< volScalarField::Internal > > mDotcvP() const
Return the mass condensation and vaporisation rates as coefficients.
Definition: Merkle.C:81
Abstract base class for cavitation models.
A list of keyword definitions, which are a keyword followed by any number of values (e....
Definition: dictionary.H:160
Interface to two constant density phases.
Namespace for OpenFOAM.
dimensioned< scalar > dimensionedScalar
Dimensioned scalar obtained from generic dimensioned type.
dictionary dict