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-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::SchnerrSauer
26 
27 Description
28  SchnerrSauer cavitation model.
29 
30  Reference:
31  \verbatim
32  Schnerr, G. H., And Sauer, J.,
33  "Physical and Numerical Modeling of Unsteady Cavitation Dynamics",
34  Proc. 4th International Conference on Multiphase Flow,
35  New Orleans, U.S.A., 2001.
36  \endverbatim
37 
38 SourceFiles
39  SchnerrSauer.C
40 
41 \*---------------------------------------------------------------------------*/
42 
43 #ifndef SchnerrSauer_H
44 #define SchnerrSauer_H
45 
46 #include "cavitationModel.H"
47 
48 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
49 
50 namespace Foam
51 {
52 namespace twoPhaseChangeModels
53 {
54 
55 /*---------------------------------------------------------------------------*\
56  Class SchnerrSauer
57 \*---------------------------------------------------------------------------*/
58 
59 class SchnerrSauer
60 :
61  public cavitationModel
62 {
63  // Private Data
64 
65  //- Bubble number density
67 
68  //- Nucleation site diameter
69  dimensionedScalar dNuc_;
70 
71  //- Condensation rate coefficient
73 
74  //- Vapourisation rate coefficient
76 
78 
79  //- Nucleation site volume-fraction
80  dimensionedScalar alphaNuc() const;
81 
82  //- Reciprocal bubble radius
83  tmp<volScalarField::Internal>rRb
84  (
85  const volScalarField::Internal& limitedAlpha1
86  ) const;
87 
88  //- Part of the condensation and vapourisation rates
89  tmp<volScalarField::Internal> pCoeff
90  (
92  ) const;
93 
94 
95 public:
96 
97  //- Runtime type information
98  TypeName("SchnerrSauer");
99 
100 
101  // Constructors
102 
103  //- Construct for mixture
105  (
106  const compressibleTwoPhaseMixture& mixture
107  );
108 
109 
110  //- Destructor
111  virtual ~SchnerrSauer()
112  {}
113 
114 
115  // Member Functions
116 
117  //- Return the mass condensation and vaporisation rates as a
118  // coefficient to multiply (1 - alphal) for the condensation rate
119  // and a coefficient to multiply alphal for the vaporisation rate
121 
122  //- Return the mass condensation and vaporisation rates as coefficients
123  // to multiply (p - pSat)
124  virtual Pair<tmp<volScalarField::Internal>> mDotP() const;
125 
126  //- Correct the SchnerrSauer phaseChange model
127  virtual void correct();
128 
129  //- Read the phaseProperties dictionary and update
130  virtual bool read();
131 };
132 
133 
134 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
135 
136 } // End namespace twoPhaseChangeModels
137 } // End namespace Foam
138 
139 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
140 
141 #endif
142 
143 // ************************************************************************* //
virtual bool read()
Read the phaseProperties dictionary and update.
Definition: SchnerrSauer.C:167
SchnerrSauer(const immiscibleIncompressibleTwoPhaseMixture &mixture)
Construct for mixture.
Definition: SchnerrSauer.C:50
DimensionedField< scalar, volMesh > Internal
Type of the internal field from which this GeometricField is derived.
TypeName("SchnerrSauer")
Runtime type information.
An ordered pair of two objects of type <T> with first() and second() elements.
Definition: contiguous.H:49
dimensioned< scalar > dimensionedScalar
Dimensioned scalar obtained from generic dimensioned type.
virtual Pair< tmp< volScalarField > > mDotAlphal() const
Return the mass condensation and vaporisation rates as a.
Definition: SchnerrSauer.C:116
virtual void correct()
Correct the SchnerrSauer phaseChange model.
Definition: SchnerrSauer.C:161
volScalarField & p
Namespace for OpenFOAM.
virtual Pair< tmp< volScalarField > > mDotP() const
Return the mass condensation and vaporisation rates as coefficients.
Definition: SchnerrSauer.C:138