cavitation.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) 2021-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::phaseTransferModels::cavitation
26 
27 Description
28  A phase transfer model which represents cavitation.
29 
30  Example usage:
31  \verbatim
32  phaseTransfer
33  {
34  vapour_dispersedIn_water
35  {
36  type cavitation;
37 
38  model Kunz;
39 
40  liquid water;
41 
42  pSat 80000;
43 
44  UInf 5.33;
45  tInf 0.028142589;
46  Cc 100;
47  Cv 100;
48  }
49  }
50  \endverbatim
51 
52 SourceFiles
53  cavitation.C
54 
55 \*---------------------------------------------------------------------------*/
56 
57 #ifndef cavitation_H
58 #define cavitation_H
59 
60 #include "phaseTransferModel.H"
61 #include "cavitationModel.H"
62 #include "phaseModel.H"
64 
65 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
66 
67 namespace Foam
68 {
69 
70 class phasePair;
71 
72 namespace phaseTransferModels
73 {
74 
75 /*---------------------------------------------------------------------------*\
76  Class cavitation Declaration
77 \*---------------------------------------------------------------------------*/
78 
79 class cavitation
80 :
81  public phaseTransferModel
82 {
83 private:
84 
85  // Private Data
86 
87  //- Interface
88  const phaseInterface interface_;
89 
90  //- Cavitation model
92 
93 
94 public:
95 
96  //- Runtime type information
97  TypeName("cavitation");
98 
99 
100  // Constructors
101 
102  //- Construct from components
103  cavitation
104  (
105  const dictionary& dict,
106  const phaseInterface& interface
107  );
108 
109 
110  //- Destructor
111  virtual ~cavitation();
112 
113 
114  // Member Functions
115 
116  //- Whether or not there is a mass transfer rate for the mixture
117  virtual bool mixture() const;
118 
119  //- The mass transfer rate for the mixture
120  virtual tmp<volScalarField> dmdtf() const;
121 
122  //- The derivative of mass transfer w.r.t. pressure
123  virtual tmp<volScalarField> d2mdtdpf() const;
124 };
125 
126 
127 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
128 
129 } // End namespace phaseTransferModels
130 } // End namespace Foam
131 
132 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
133 
134 #endif
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
Definition: autoPtr.H:51
A list of keyword definitions, which are a keyword followed by any number of values (e....
Definition: dictionary.H:160
Class to represent an interface between phases. Derivations can further specify the configuration of ...
A phase transfer model which represents cavitation.
Definition: cavitation.H:81
virtual bool mixture() const
Whether or not there is a mass transfer rate for the mixture.
Definition: cavitation.C:70
virtual ~cavitation()
Destructor.
Definition: cavitation.C:64
virtual tmp< volScalarField > d2mdtdpf() const
The derivative of mass transfer w.r.t. pressure.
Definition: cavitation.C:102
virtual tmp< volScalarField > dmdtf() const
The mass transfer rate for the mixture.
Definition: cavitation.C:77
TypeName("cavitation")
Runtime type information.
cavitation(const dictionary &dict, const phaseInterface &interface)
Construct from components.
Definition: cavitation.C:51
A class for managing temporary objects.
Definition: tmp.H:55
Namespace for OpenFOAM.
dictionary dict