All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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>rRb(const volScalarField& limitedAlpha1) const;
84 
85  //- Part of the condensation and vapourisation rates
86  tmp<volScalarField> pCoeff(const volScalarField& p) const;
87 
88 
89 public:
90 
91  //- Runtime type information
92  TypeName("SchnerrSauer");
93 
94 
95  // Constructors
96 
97  //- Construct for mixture
99  (
101  );
102 
103 
104  //- Destructor
105  virtual ~SchnerrSauer()
106  {}
107 
108 
109  // Member Functions
110 
111  //- Return the mass condensation and vaporisation rates as a
112  // coefficient to multiply (1 - alphal) for the condensation rate
113  // and a coefficient to multiply alphal for the vaporisation rate
114  virtual Pair<tmp<volScalarField>> mDotAlphal() const;
115 
116  //- Return the mass condensation and vaporisation rates as coefficients
117  // to multiply (p - pSat)
118  virtual Pair<tmp<volScalarField>> mDotP() const;
119 
120  //- Correct the SchnerrSauer phaseChange model
121  virtual void correct();
122 
123  //- Read the transportProperties dictionary and update
124  virtual bool read();
125 };
126 
127 
128 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
129 
130 } // End namespace twoPhaseChangeModels
131 } // End namespace Foam
132 
133 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
134 
135 #endif
136 
137 // ************************************************************************* //
virtual bool read()
Read the transportProperties dictionary and update.
Definition: SchnerrSauer.C:167
SchnerrSauer(const immiscibleIncompressibleTwoPhaseMixture &mixture)
Construct for mixture.
Definition: SchnerrSauer.C:50
Abstract base class for cavitation models.
TypeName("SchnerrSauer")
Runtime type information.
An ordered pair of two objects of type <T> with first() and second() elements.
Definition: contiguous.H:49
SchnerrSauer cavitation model.
Definition: SchnerrSauer.H:58
An immiscible incompressible two-phase mixture transport model.
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
A class for managing temporary objects.
Definition: PtrList.H:53
Namespace for OpenFOAM.
virtual Pair< tmp< volScalarField > > mDotP() const
Return the mass condensation and vaporisation rates as coefficients.
Definition: SchnerrSauer.C:138