Saito.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) 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::Saito
26 
27 Description
28  Saito cavitation model.
29 
30  Reference:
31  \verbatim
32  Saito, Y., Takami, R., Nakamori, I., & Ikohagi, T. (2007).
33  Numerical analysis of unsteady behavior of cloud cavitation
34  around a NACA0015 foil. Computational Mechanics, 40, 85-96.
35  \endverbatim
36 
37 Usage:
38  \table
39  Property | Description | Required | Default value
40  liquid | Name of the liquid phase | yes |
41  pSat | Saturation vapor pressure | yes |
42  Ca | Interfacial area concentration coefficient [1/m] | yes |
43  Cv | Vapourisation rate coefficient | yes |
44  Cc | Condensation rate coefficient | yes |
45  alphaNuc | Nucleation site volume fraction | yes |
46  \endtable
47 
48  Example:
49  \verbatim
50  model Saito;
51 
52  liquid liquid;
53 
54  pSat 2300;
55 
56  Ca 0.1; // Interfacial area concentration coefficient [1/m]
57  Cc 1;
58  Cv 1;
59  alphaNuc 0.001;
60  \endverbatim
61 
62 SourceFiles
63  Saito.C
64 
65 \*---------------------------------------------------------------------------*/
66 
67 #ifndef Saito_H
68 #define Saito_H
69 
70 #include "cavitationModel.H"
71 
72 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
73 
74 namespace Foam
75 {
76 namespace compressible
77 {
78 namespace cavitationModels
79 {
80 
81 /*---------------------------------------------------------------------------*\
82  Class Saito
83 \*---------------------------------------------------------------------------*/
84 
85 class Saito
86 :
87  public cavitationModel
88 {
89  // Private Data
90 
91  //- Interfacial area concentration coefficient [1/m]
93 
94  //- Vapourisation rate coefficient
96 
97  //- Condensation rate coefficient
99 
100  //- Nucleation site volume fraction
101  dimensionedScalar alphaNuc_;
102 
103  //- Zero with pressure dimensions
104  dimensionedScalar p0_;
105 
106 
107  // Private Member functions
108 
109  //- Return the function of temperature
110  tmp<volScalarField::Internal> fT(const rhoThermo& thermo) const;
111 
112 
113 public:
114 
115  //- Runtime type information
116  TypeName("Saito");
117 
118 
119  // Constructors
120 
121  //- Construct for phases
122  Saito
123  (
124  const dictionary& dict,
125  const compressibleTwoPhases& phases
126  );
127 
128 
129  //- Destructor
130  virtual ~Saito()
131  {}
132 
133 
134  // Member Functions
135 
136  //- Return the mass condensation and vaporisation rates as a
137  // coefficient to multiply alphav for the condensation rate and a
138  // coefficient to multiply alphal for the vaporisation rate
140 
141  //- Return the mass condensation and vaporisation rates as coefficients
142  // to multiply (p - pSat)
144 
145  //- Correct the Saito phaseChange model
146  virtual void correct();
147 
148  //- Read the dictionary and update
149  virtual bool read(const dictionary& dict);
150 };
151 
152 
153 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
154 
155 } // End namespace cavitationModels
156 } // End namespace compressible
157 } // End namespace Foam
158 
159 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
160 
161 #endif
162 
163 // ************************************************************************* //
An ordered pair of two objects of type <T> with first() and second() elements.
Definition: Pair.H:65
Saito(const dictionary &dict, const compressibleTwoPhases &phases)
Construct for phases.
Definition: Saito.C:53
TypeName("Saito")
Runtime type information.
virtual Pair< tmp< volScalarField::Internal > > mDotcvAlphal() const
Return the mass condensation and vaporisation rates as a.
Definition: Saito.C:81
virtual void correct()
Correct the Saito phaseChange model.
Definition: Saito.C:140
virtual bool read(const dictionary &dict)
Read the dictionary and update.
Definition: Saito.C:145
virtual Pair< tmp< volScalarField::Internal > > mDotcvP() const
Return the mass condensation and vaporisation rates as coefficients.
Definition: Saito.C:111
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
fluidMulticomponentThermo & thermo
Definition: createFields.H:31