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::compressible::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 compressible
78 {
79 namespace cavitationModels
80 {
81 
82 /*---------------------------------------------------------------------------*\
83  Class Merkle
84 \*---------------------------------------------------------------------------*/
85 
86 class Merkle
87 :
88  public cavitationModel
89 {
90  // Private Data
91 
92  //- Free-stream velocity
93  dimensionedScalar UInf_;
94 
95  //- Vaporisation/condensation time scale
96  dimensionedScalar tInf_;
97 
98  //- Vaporisation rate coefficient
100 
101  //- Condensation rate coefficient
102  dimensionedScalar Cc_;
103 
104  //- Zero with pressure dimensions
105  dimensionedScalar p0_;
106 
107  dimensionedScalar mcCoeff_;
108 
109 
110  // Private Member functions
111 
112  tmp<volScalarField::Internal> mvCoeff() const;
113 
114 
115 public:
116 
117  //- Runtime type information
118  TypeName("Merkle");
119 
120 
121  // Constructors
122 
123  //- Construct for phases
124  Merkle
125  (
126  const dictionary& dict,
127  const compressibleTwoPhases& phases
128  );
129 
130 
131  //- Destructor
132  virtual ~Merkle()
133  {}
134 
135 
136  // Member Functions
137 
138  //- Return the mass condensation and vaporisation rates as a
139  // coefficient to multiply alphav for the condensation rate and a
140  // coefficient to multiply alphal for the vaporisation rate
142 
143  //- Return the mass condensation and vaporisation rates as coefficients
144  // to multiply (p - pSat)
146 
147  //- Correct the Merkle phaseChange model
148  virtual void correct();
149 
150  //- Read the dictionary and update
151  virtual bool read(const dictionary& dict);
152 };
153 
154 
155 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
156 
157 } // End namespace cavitationModels
158 } // End namespace compressible
159 } // End namespace Foam
160 
161 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
162 
163 #endif
164 
165 // ************************************************************************* //
An ordered pair of two objects of type <T> with first() and second() elements.
Definition: Pair.H:65
virtual Pair< tmp< volScalarField::Internal > > mDotcvAlphal() const
Return the mass condensation and vaporisation rates as a.
Definition: Merkle.C:77
virtual void correct()
Correct the Merkle phaseChange model.
Definition: Merkle.C:112
TypeName("Merkle")
Runtime type information.
virtual bool read(const dictionary &dict)
Read the dictionary and update.
Definition: Merkle.C:117
Merkle(const dictionary &dict, const compressibleTwoPhases &phases)
Construct for phases.
Definition: Merkle.C:47
virtual Pair< tmp< volScalarField::Internal > > mDotcvP() const
Return the mass condensation and vaporisation rates as coefficients.
Definition: Merkle.C:90
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
Namespace for OpenFOAM.
dimensioned< scalar > dimensionedScalar
Dimensioned scalar obtained from generic dimensioned type.
dictionary dict