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-2025 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 rhoFluidThermo& 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  const label liquidIndex
127  );
128 
129 
130  //- Destructor
131  virtual ~Saito()
132  {}
133 
134 
135  // Member Functions
136 
137  //- Return the mass condensation and vaporisation rates as a
138  // coefficient to multiply alphav for the condensation rate and a
139  // coefficient to multiply alphal for the vaporisation rate
141 
142  //- Return the mass condensation and vaporisation rates as coefficients
143  // to multiply (p - pSat)
145 
146  //- Correct the Saito phaseChange model
147  virtual void correct();
148 
149  //- Read the dictionary and update
150  virtual bool read(const dictionary& dict);
151 };
152 
153 
154 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
155 
156 } // End namespace cavitationModels
157 } // End namespace compressible
158 } // End namespace Foam
159 
160 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
161 
162 #endif
163 
164 // ************************************************************************* //
An ordered pair of two objects of type <Type> with first() and second() elements.
Definition: Pair.H:66
TypeName("Saito")
Runtime type information.
virtual Pair< tmp< volScalarField::Internal > > mDotcvAlphal() const
Return the mass condensation and vaporisation rates as a.
Definition: Saito.C:85
virtual void correct()
Correct the Saito phaseChange model.
Definition: Saito.C:144
virtual bool read(const dictionary &dict)
Read the dictionary and update.
Definition: Saito.C:149
Saito(const dictionary &dict, const compressibleTwoPhases &phases, const label liquidIndex)
Construct for phases.
Definition: Saito.C:53
virtual Pair< tmp< volScalarField::Internal > > mDotcvP() const
Return the mass condensation and vaporisation rates as coefficients.
Definition: Saito.C:115
Abstract base class for cavitation models.
A list of keywords followed by any number of values (e.g. words and numbers) or sub-dictionaries.
Definition: dictionary.H:162
Namespace for OpenFOAM.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
Definition: label.H:59
dimensioned< scalar > dimensionedScalar
Dimensioned scalar obtained from generic dimensioned type.
dictionary dict
fluidMulticomponentThermo & thermo
Definition: createFields.H:31