SchnerrSauer.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::SchnerrSauer
26 
27 Description
28  SchnerrSauer cavitation model.
29 
30  Reference:
31  \verbatim
32  Schnerr, G. H., & Sauer, J. (2001, May).
33  Physical and numerical modeling of unsteady cavitation dynamics.
34  In Fourth international conference on multiphase flow (Vol. 1).
35  New Orleans, LO, USA: ICMF New Orleans.
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  n | Bubble number density | yes |
45  dNuc | Nucleation site diameter | yes |
46  Cv | Vapourisation rate coefficient | yes |
47  Cc | Condensation rate coefficient | yes |
48  \endtable
49 
50  Example:
51  \verbatim
52  model SchnerrSauer;
53 
54  liquid liquid;
55 
56  pSat 2300;
57 
58  n 1.6e+13;
59  dNuc 2e-6;
60  Cv 1;
61  Cc 1;
62  \endverbatim
63 
64 SourceFiles
65  SchnerrSauer.C
66 
67 \*---------------------------------------------------------------------------*/
68 
69 #ifndef SchnerrSauer_H
70 #define SchnerrSauer_H
71 
72 #include "cavitationModel.H"
73 
74 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
75 
76 namespace Foam
77 {
78 namespace cavitationModels
79 {
80 
81 /*---------------------------------------------------------------------------*\
82  Class SchnerrSauer
83 \*---------------------------------------------------------------------------*/
84 
85 class SchnerrSauer
86 :
87  public cavitationModel
88 {
89  // Private Data
90 
91  //- Bubble number density
93 
94  //- Nucleation site diameter
95  dimensionedScalar dNuc_;
96 
97  //- Vaporisation rate coefficient
99 
100  //- Condensation rate coefficient
101  dimensionedScalar Cc_;
102 
103  dimensionedScalar p0_;
104 
105  //- Nucleation site volume-fraction
106  dimensionedScalar alphaNuc() const;
107 
108  //- Reciprocal bubble radius
109  tmp<volScalarField::Internal> rRb
110  (
111  const volScalarField::Internal& limitedAlphal
112  ) const;
113 
114  //- Part of the condensation and vaporisation rates
115  tmp<volScalarField::Internal> pCoeff
116  (
118  ) const;
119 
120 
121 public:
122 
123  //- Runtime type information
124  TypeName("SchnerrSauer");
125 
126 
127  // Constructors
128 
129  //- Construct for phases
131  (
132  const dictionary& dict,
133  const incompressibleTwoPhases& phases
134  );
135 
136 
137  //- Destructor
138  virtual ~SchnerrSauer()
139  {}
140 
141 
142  // Member Functions
143 
144  //- Return the mass condensation and vaporisation rates as a
145  // coefficient to multiply alphav for the condensation rate and a
146  // coefficient to multiply alphal for the vaporisation rate
148 
149  //- Return the mass condensation and vaporisation rates as coefficients
150  // to multiply (p - pSat)
152 
153  //- Correct the SchnerrSauer phaseChange model
154  virtual void correct();
155 
156  //- Read the dictionary and update
157  virtual bool read(const dictionary& dict);
158 };
159 
160 
161 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
162 
163 } // End namespace cavitationModels
164 } // End namespace Foam
165 
166 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
167 
168 #endif
169 
170 // ************************************************************************* //
DimensionedField< Type, GeoMesh > Internal
Type of the internal field from which this GeometricField is derived.
An ordered pair of two objects of type <T> with first() and second() elements.
Definition: Pair.H:65
virtual void correct()
Correct the SchnerrSauer phaseChange model.
Definition: SchnerrSauer.C:160
TypeName("SchnerrSauer")
Runtime type information.
virtual bool read(const dictionary &dict)
Read the dictionary and update.
Definition: SchnerrSauer.C:164
virtual Pair< tmp< volScalarField::Internal > > mDotcvAlpha() const
Return the mass condensation and vaporisation rates as a.
Definition: SchnerrSauer.C:117
SchnerrSauer(const dictionary &dict, const incompressibleTwoPhases &phases)
Construct for phases.
Definition: SchnerrSauer.C:50
virtual Pair< tmp< volScalarField::Internal > > mDotcvP() const
Return the mass condensation and vaporisation rates as coefficients.
Definition: SchnerrSauer.C:138
virtual ~SchnerrSauer()
Destructor.
Definition: SchnerrSauer.H:177
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
volScalarField & p