|
|
|
Kunz.HGo 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-2009 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 Generac License as published by the 00013 Free Software Foundation; either 2 of the License, or (at your 00014 option) any later version. 00015 00016 OpenFOAM is distributed in the ho it will be useful, but WITHOUT 00017 ANY WARRANTY; without even the imarranty of MERCHANTABILITY or 00018 FITNESS FOR A PARTICULAR PURPOSE.he GNU General Public License 00019 for more details. 00020 00021 You should have received a copy oNU General Public License 00022 along with OpenFOAM; if not, write Free Software Foundation, 00023 Inc., 51 Franklin St, Fifth Floorn, MA 02110-1301 USA 00024 00025 Class 00026 Foam::phaseChangeTwoPhaseMixtures::Kunz 00027 00028 Description 00029 Kunz cavitation model slightly modified so that the condensation term 00030 is switched off when the pressure is less than the saturation vapour 00031 pressure. This change allows the condensation term to be formulated as 00032 a coefficient multiplying (p - p_sat) so that it can be included as an 00033 implicit term in the pressure equation. 00034 00035 Reference: 00036 @verbatim 00037 Kunz, R.F., Boger, D.A., Stinebring, D.R., Chyczewski, Lindau. J.W., 00038 Gibeling, H.J., Venkateswaran, S., Govindan, T.R., 00039 “A Preconditioned Implicit Method for Two-Phase Flows with Application 00040 to Cavitation Prediction,” 00041 Computers and Fluids, 00042 29(8):849-875, 2000. 00043 @verbatim 00044 00045 SourceFiles 00046 Kunz.C 00047 00048 \*--------------------------------------------------------------------*/ 00049 00050 #ifndef Kunz_H 00051 #define Kunz_H 00052 00053 #include "phaseChangeTwoPhaseMixture.H" 00054 00055 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 00056 00057 namespace Foam 00058 { 00059 namespace phaseChangeTwoPhaseMixtures 00060 { 00061 00062 /*--------------------------------------------------------------------*\ 00063 Class Kunz 00064 \*--------------------------------------------------------------------*/ 00065 00066 class Kunz 00067 : 00068 public phaseChangeTwoPhaseMixture 00069 { 00070 // Private data 00071 00072 dimensionedScalar UInf_; 00073 dimensionedScalar tInf_; 00074 dimensionedScalar Cc_; 00075 dimensionedScalar Cv_; 00076 00077 dimensionedScalar p0_; 00078 00079 dimensionedScalar mcCoeff_; 00080 dimensionedScalar mvCoeff_; 00081 00082 00083 public: 00084 00085 //- Runtime type information 00086 TypeName("Kunz"); 00087 00088 00089 // Constructors 00090 00091 //- construct from components 00092 Kunz 00093 ( 00094 const volVectorField& U, 00095 const surfaceScalarField& phi, 00096 const word& alpha1Name = "alpha1" 00097 ); 00098 00099 00100 // Destructor 00101 00102 virtual ~Kunz() 00103 {} 00104 00105 00106 // Member Functions 00107 00108 //- Return the mass condensation and vaporisation rates as a 00109 // coefficient to multiply (1 - alphal) for the condensation rate 00110 // and a coefficient to multiply alphal for the vaporisation rate 00111 virtual Pair<tmp<volScalarField> > mDotAlphal() const; 00112 00113 //- Return the mass condensation and vaporisation rates as an 00114 // explicit term for the condensation rate and a coefficient to 00115 // multiply (p - pSat) for the vaporisation rate 00116 virtual Pair<tmp<volScalarField> > mDotP() const; 00117 00118 //- Correct the Kunz phaseChange model 00119 virtual void correct(); 00120 00121 //- Read the transportProperties dictionary and update 00122 virtual bool read(); 00123 }; 00124 00125 00126 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 00127 00128 } // End namespace phaseChangeTwoPhaseMixtures 00129 } // End namespace Foam 00130 00131 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 00132 00133 #endif 00134 00135 // ************************************************************************* // |