Home
Downloads
Documentation
Installation
User Guide
man-pages
API Documentation
README
Release Notes
Changes
License
Support
SourceForge Project
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
applications
solvers
multiphase
interPhaseChangeFoam
phaseChangeTwoPhaseMixtures
Kunz
Kunz.H
Go to the documentation of this file.
1
/*---------------------------------------------------------------------------*\
2
========= |
3
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
4
\\ / O peration |
5
\\ / A nd | Copyright (C) 1991-2010 OpenCFD Ltd.
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::phaseChangeTwoPhaseMixtures::Kunz
26
27
Description
28
Kunz cavitation model slightly modified so that the condensation term
29
is switched off when the pressure is less than the saturation vapour
30
pressure. This change allows the condensation term to be formulated as
31
a coefficient multiplying (p - p_sat) so that it can be included as an
32
implicit term in the pressure equation.
33
34
Reference:
35
@verbatim
36
Kunz, R.F., Boger, D.A., Stinebring, D.R., Chyczewski, Lindau. J.W.,
37
Gibeling, H.J., Venkateswaran, S., Govindan, T.R.,
38
"A Preconditioned Implicit Method for Two-Phase Flows with Application
39
to Cavitation Prediction,"
40
Computers and Fluids,
41
29(8):849-875, 2000.
42
@endverbatim
43
44
SourceFiles
45
Kunz.C
46
47
\*--------------------------------------------------------------------*/
48
49
#ifndef Kunz_H
50
#define Kunz_H
51
52
#include "
../phaseChangeTwoPhaseMixture/phaseChangeTwoPhaseMixture.H
"
53
54
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
55
56
namespace
Foam
57
{
58
namespace
phaseChangeTwoPhaseMixtures
59
{
60
61
/*--------------------------------------------------------------------*\
62
Class Kunz
63
\*--------------------------------------------------------------------*/
64
65
class
Kunz
66
:
67
public
phaseChangeTwoPhaseMixture
68
{
69
// Private data
70
71
dimensionedScalar
UInf_;
72
dimensionedScalar
tInf_;
73
dimensionedScalar
Cc_;
74
dimensionedScalar
Cv_;
75
76
dimensionedScalar
p0_;
77
78
dimensionedScalar
mcCoeff_;
79
dimensionedScalar
mvCoeff_;
80
81
82
public
:
83
84
//- Runtime type information
85
TypeName
(
"Kunz"
);
86
87
88
// Constructors
89
90
//- construct from components
91
Kunz
92
(
93
const
volVectorField
&
U
,
94
const
surfaceScalarField
&
phi
,
95
const
word
& alpha1Name =
"alpha1"
96
);
97
98
99
// Destructor
100
101
virtual
~Kunz
()
102
{}
103
104
105
// Member Functions
106
107
//- Return the mass condensation and vaporisation rates as a
108
// coefficient to multiply (1 - alphal) for the condensation rate
109
// and a coefficient to multiply alphal for the vaporisation rate
110
virtual
Pair<tmp<volScalarField>
>
mDotAlphal
()
const
;
111
112
//- Return the mass condensation and vaporisation rates as an
113
// explicit term for the condensation rate and a coefficient to
114
// multiply (p - pSat) for the vaporisation rate
115
virtual
Pair<tmp<volScalarField>
>
mDotP
()
const
;
116
117
//- Correct the Kunz phaseChange model
118
virtual
void
correct
();
119
120
//- Read the transportProperties dictionary and update
121
virtual
bool
read
();
122
};
123
124
125
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
126
127
}
// End namespace phaseChangeTwoPhaseMixtures
128
}
// End namespace Foam
129
130
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
131
132
#endif
133
134
// ************************ vim: set sw=4 sts=4 et: ************************ //