|
|
|
SchnerrSauer.HGo to the documentation of this file.00001 /*---------------------------------------------------------------------------*\ 00002 ========Merkle= | 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::SchnerrSauer 00027 00028 Description 00029 SchnerrSauer cavitation model. 00030 00031 Reference: 00032 @verbatim 00033 Schnerr, G. H., And Sauer, J., 00034 "Physical and Numerical Modeling of Unsteady Cavitation Dynamics", 00035 Proc. 4th International Conference on Multiphase Flow, 00036 New Orleans, U.S.A., 2001. 00037 @verbatim 00038 00039 SourceFiles 00040 SchnerrSauer.C 00041 00042 \*--------------------------------------------------------------------*/ 00043 00044 #ifndef SchnerrSauer_H 00045 #define SchnerrSauer_H 00046 00047 #include "phaseChangeTwoPhaseMixture.H" 00048 00049 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 00050 00051 namespace Foam 00052 { 00053 namespace phaseChangeTwoPhaseMixtures 00054 { 00055 00056 /*--------------------------------------------------------------------*\ 00057 Class SchnerrSauer 00058 \*--------------------------------------------------------------------*/ 00059 00060 class SchnerrSauer 00061 : 00062 public phaseChangeTwoPhaseMixture 00063 { 00064 // Private data 00065 00066 //- Bubble number density 00067 dimensionedScalar n_; 00068 00069 //- Nucleation site diameter 00070 dimensionedScalar dNuc_; 00071 00072 //- Condensation rate coefficient 00073 dimensionedScalar Cc_; 00074 00075 //- Vapourisation rate coefficient 00076 dimensionedScalar Cv_; 00077 00078 dimensionedScalar p0_; 00079 00080 //- Nucleation site volume-fraction 00081 dimensionedScalar alphaNuc() const; 00082 00083 //- Reciprocal bubble radius 00084 tmp<volScalarField>rRb(const volScalarField& limitedAlpha1) const; 00085 00086 //- Part of the condensation and vapourisation rates 00087 tmp<volScalarField> pCoeff(const volScalarField& p) const; 00088 00089 00090 public: 00091 00092 //- Runtime type information 00093 TypeName("SchnerrSauer"); 00094 00095 00096 // Constructors 00097 00098 //- construct from components 00099 SchnerrSauer 00100 ( 00101 const volVectorField& U, 00102 const surfaceScalarField& phi, 00103 const word& alpha1Name = "alpha1" 00104 ); 00105 00106 00107 // Destructor 00108 00109 virtual ~SchnerrSauer() 00110 {} 00111 00112 00113 // Member Functions 00114 00115 //- Return the mass condensation and vaporisation rates as a 00116 // coefficient to multiply (1 - alphal) for the condensation rate 00117 // and a coefficient to multiply alphal for the vaporisation rate 00118 virtual Pair<tmp<volScalarField> > mDotAlphal() const; 00119 00120 //- Return the mass condensation and vaporisation rates as an 00121 // explicit term for the condensation rate and a coefficient to 00122 // multiply (p - pSat) for the vaporisation rate 00123 virtual Pair<tmp<volScalarField> > mDotP() const; 00124 00125 //- Correct the SchnerrSauer phaseChange model 00126 virtual void correct(); 00127 00128 //- Read the transportProperties dictionary and update 00129 virtual bool read(); 00130 }; 00131 00132 00133 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 00134 00135 } // End namespace phaseChangeTwoPhaseMixtures 00136 } // End namespace Foam 00137 00138 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 00139 00140 #endif 00141 00142 // ************************************************************************* // |