FreeFOAM The Cross-Platform CFD Toolkit
Hosted by SourceForge:
Get FreeFOAM at SourceForge.net.
            Fast, secure and Free Open Source software downloads

Kunz.H

Go to the documentation of this file.
00001 /*---------------------------------------------------------------------------*\
00002   =========                 |
00003   \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox
00004    \\    /   O peration     |
00005     \\  /    A nd           | Copyright (C) 1991-2010 OpenCFD Ltd.
00006      \\/     M anipulation  |
00007 -------------------------------------------------------------------------------
00008 License
00009     This file is part of OpenFOAM.
00010 
00011     OpenFOAM is free software: you can redistribute it and/or modify it
00012     under the terms of the GNU General Public License as published by
00013     the Free Software Foundation, either version 3 of the License, or
00014     (at your option) any later version.
00015 
00016     OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
00017     ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
00018     FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
00019     for more details.
00020 
00021     You should have received a copy of the GNU General Public License
00022     along with OpenFOAM.  If not, see <http://www.gnu.org/licenses/>.
00023 
00024 Class
00025     Foam::phaseChangeTwoPhaseMixtures::Kunz
00026 
00027 Description
00028     Kunz cavitation model slightly modified so that the condensation term
00029     is switched off when the pressure is less than the saturation vapour
00030     pressure.  This change allows the condensation term to be formulated as
00031     a coefficient multiplying (p - p_sat) so that it can be included as an
00032     implicit term in the pressure equation.
00033 
00034     Reference:
00035     @verbatim
00036         Kunz, R.F., Boger, D.A., Stinebring, D.R., Chyczewski, Lindau. J.W.,
00037         Gibeling, H.J., Venkateswaran, S., Govindan, T.R.,
00038         "A Preconditioned Implicit Method for Two-Phase Flows with Application
00039          to Cavitation Prediction,"
00040         Computers and Fluids,
00041         29(8):849-875, 2000.
00042     @endverbatim
00043 
00044 SourceFiles
00045     Kunz.C
00046 
00047 \*--------------------------------------------------------------------*/
00048 
00049 #ifndef Kunz_H
00050 #define Kunz_H
00051 
00052 #include "../phaseChangeTwoPhaseMixture/phaseChangeTwoPhaseMixture.H"
00053 
00054 // * * * * * * * * * * * * * * * * *  * * * * * * * * * * * * * * * * //
00055 
00056 namespace Foam
00057 {
00058 namespace phaseChangeTwoPhaseMixtures
00059 {
00060 
00061 /*--------------------------------------------------------------------*\
00062                               Class Kunz
00063 \*--------------------------------------------------------------------*/
00064 
00065 class Kunz
00066 :
00067     public phaseChangeTwoPhaseMixture
00068 {
00069     // Private data
00070 
00071         dimensionedScalar UInf_;
00072         dimensionedScalar tInf_;
00073         dimensionedScalar Cc_;
00074         dimensionedScalar Cv_;
00075 
00076         dimensionedScalar p0_;
00077 
00078         dimensionedScalar mcCoeff_;
00079         dimensionedScalar mvCoeff_;
00080 
00081 
00082 public:
00083 
00084     //- Runtime type information
00085     TypeName("Kunz");
00086 
00087 
00088     // Constructors
00089 
00090         //- construct from components
00091         Kunz
00092         (
00093             const volVectorField& U,
00094             const surfaceScalarField& phi,
00095             const word& alpha1Name = "alpha1"
00096         );
00097 
00098 
00099     // Destructor
00100 
00101         virtual ~Kunz()
00102         {}
00103 
00104 
00105     // Member Functions
00106 
00107         //- Return the mass condensation and vaporisation rates as a
00108         //  coefficient to multiply (1 - alphal) for the condensation rate
00109         //  and a coefficient to multiply  alphal for the vaporisation rate
00110         virtual Pair<tmp<volScalarField> > mDotAlphal() const;
00111 
00112         //- Return the mass condensation and vaporisation rates as an
00113         //  explicit term for the condensation rate and a coefficient to
00114         //  multiply (p - pSat) for the vaporisation rate
00115         virtual Pair<tmp<volScalarField> > mDotP() const;
00116 
00117         //- Correct the Kunz phaseChange model
00118         virtual void correct();
00119 
00120         //- Read the transportProperties dictionary and update
00121         virtual bool read();
00122 };
00123 
00124 
00125 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00126 
00127 } // End namespace phaseChangeTwoPhaseMixtures
00128 } // End namespace Foam
00129 
00130 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00131 
00132 #endif
00133 
00134 // ************************ vim: set sw=4 sts=4 et: ************************ //
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines