OpenFOAM logo
The Open Source CFD Toolbox
  Source Guide OpenCFD Solutions Contact OpenFOAM

reitzKHRT.C

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-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 General Public License as published by the
00013     Free Software Foundation; either version 2 of the License, or (at your
00014     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, write to the Free Software Foundation,
00023     Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
00024 
00025 \*---------------------------------------------------------------------------*/
00026 
00027 #include "reitzKHRT.H"
00028 #include "addToRunTimeSelectionTable.H"
00029 #include "mathematicalConstants.H"
00030 
00031 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00032 
00033 namespace Foam
00034 {
00035 
00036 // * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
00037 
00038 defineTypeNameAndDebug(reitzKHRT, 0);
00039 
00040 addToRunTimeSelectionTable
00041 (
00042     breakupModel,
00043     reitzKHRT,
00044     dictionary
00045 );
00046 
00047 
00048 // * * * * * * * * * * * * * * * * Constructors  * * * * * * * * * * * * * * //
00049 
00050 // Construct from components
00051 reitzKHRT::reitzKHRT
00052 (
00053     const dictionary& dict,
00054     spray& sm
00055 )
00056 :
00057     breakupModel(dict, sm),
00058     coeffsDict_(dict.subDict(typeName + "Coeffs")),
00059     g_(sm.g()),
00060     b0_(readScalar(coeffsDict_.lookup("B0"))),
00061     b1_(readScalar(coeffsDict_.lookup("B1"))),
00062     cTau_(readScalar(coeffsDict_.lookup("Ctau"))),
00063     cRT_(readScalar(coeffsDict_.lookup("CRT"))),
00064     msLimit_(readScalar(coeffsDict_.lookup("msLimit"))),
00065     weberLimit_(readScalar(coeffsDict_.lookup("WeberLimit")))
00066 {}
00067 
00068 
00069 // * * * * * * * * * * * * * * * * Destructor  * * * * * * * * * * * * * * * //
00070 
00071 reitzKHRT::~reitzKHRT()
00072 {}
00073 
00074 
00075 // * * * * * * * * * * * * * * * Member Functions  * * * * * * * * * * * * * //
00076 
00077 void reitzKHRT::breakupParcel
00078 (
00079     parcel& p,
00080     const scalar deltaT,
00081     const vector& vel,
00082     const liquidMixture& fuels
00083 ) const
00084 {
00085 
00086     label celli = p.cell();
00087     scalar T = p.T();
00088     scalar r = 0.5*p.d();
00089     scalar pc = spray_.p()[celli];
00090 
00091     scalar sigma = fuels.sigma(pc, T, p.X());
00092     scalar rhoLiquid = fuels.rho(pc, T, p.X());
00093     scalar muLiquid = fuels.mu(pc, T, p.X());
00094     scalar rhoGas = spray_.rho()[celli];
00095     scalar Np = p.N(rhoLiquid);
00096     scalar semiMass = Np*pow(p.d(), 3.0);
00097 
00098     scalar weGas      = p.We(vel, rhoGas, sigma);
00099     scalar weLiquid   = p.We(vel, rhoLiquid, sigma);
00100     // correct the Reynolds number. Reitz is using radius instead of diameter
00101     scalar reLiquid   = 0.5*p.Re(rhoLiquid, vel, muLiquid);
00102     scalar ohnesorge  = sqrt(weLiquid)/(reLiquid + VSMALL);
00103     scalar taylor     = ohnesorge*sqrt(weGas);
00104 
00105     vector acceleration = p.Urel(vel)/p.tMom();
00106     vector trajectory = p.U()/mag(p.U());
00107     scalar gt = (g_ + acceleration) & trajectory;
00108 
00109     // frequency of the fastest growing KH-wave
00110     scalar omegaKH =
00111         (0.34 + 0.38*pow(weGas, 1.5))
00112        /((1 + ohnesorge)*(1 + 1.4*pow(taylor, 0.6)))
00113        *sqrt(sigma/(rhoLiquid*pow(r, 3)));
00114 
00115     // corresponding KH wave-length.
00116     scalar lambdaKH =
00117         9.02
00118        *r
00119        *(1.0 + 0.45*sqrt(ohnesorge))
00120        *(1.0 + 0.4*pow(taylor, 0.7))
00121        /pow(1.0 + 0.865*pow(weGas, 1.67), 0.6);
00122 
00123     // characteristic Kelvin-Helmholtz breakup time
00124     scalar tauKH = 3.726*b1_*r/(omegaKH*lambdaKH);
00125 
00126     // stable KH diameter
00127     scalar dc = 2.0*b0_*lambdaKH;
00128 
00129     // the frequency of the fastest growing RT wavelength.
00130     scalar helpVariable = mag(gt*(rhoLiquid - rhoGas));
00131     scalar omegaRT = sqrt
00132     (
00133         2.0*pow(helpVariable, 1.5)
00134        /(3.0*sqrt(3.0*sigma)*(rhoGas + rhoLiquid))
00135     );
00136 
00137     // RT wave number
00138     scalar KRT = sqrt(helpVariable/(3.0*sigma + VSMALL));
00139 
00140     // wavelength of the fastest growing RT frequency
00141     scalar lambdaRT = 2.0*mathematicalConstant::pi*cRT_/(KRT + VSMALL);
00142 
00143     // if lambdaRT < diameter, then RT waves are growing on the surface
00144     // and we start to keep track of how long they have been growing
00145     if ((p.ct() > 0) || (lambdaRT < p.d()))
00146     {
00147         p.ct() += deltaT;
00148     }
00149 
00150     // characteristic RT breakup time
00151     scalar tauRT = cTau_/(omegaRT + VSMALL);
00152 
00153     // check if we have RT breakup
00154     if ((p.ct() > tauRT) && (lambdaRT < p.d()))
00155     {
00156         // the RT breakup creates diameter/lambdaRT new droplets
00157         p.ct() = -GREAT;
00158         scalar multiplier = p.d()/lambdaRT;
00159         scalar nDrops = multiplier*Np;
00160         p.d() = cbrt(semiMass/nDrops);
00161     }
00162     // otherwise check for KH breakup
00163     else if (dc < p.d())
00164     {
00165         // no breakup below Weber = 12
00166         if (weGas > weberLimit_)
00167         {
00168 
00169             label injector = label(p.injector());
00170             scalar fraction = deltaT/tauKH;
00171 
00172             // reduce the diameter according to the rate-equation
00173             p.d() = (fraction*dc + p.d())/(1.0 + fraction);
00174 
00175             scalar ms = rhoLiquid*Np*pow3(dc)*mathematicalConstant::pi/6.0;
00176             p.ms() += ms;
00177 
00178             // Total number of parcels for the whole injection event
00179             label nParcels =
00180                 spray_.injectors()[injector].properties()->nParcelsToInject
00181                 (
00182                     spray_.injectors()[injector].properties()->tsoi(),
00183                     spray_.injectors()[injector].properties()->teoi()
00184                 );
00185 
00186             scalar averageParcelMass =
00187                 spray_.injectors()[injector].properties()->mass()/nParcels;
00188 
00189             if (p.ms()/averageParcelMass > msLimit_)
00190             {
00191                 // set the initial ms value to -GREAT. This prevents
00192                 // new droplets from being formed from the child droplet
00193                 // from the KH instability
00194 
00195                 // mass of stripped child parcel
00196                 scalar mc = p.ms();
00197                 // Prevent child parcel from taking too much mass
00198                 if (mc > 0.5*p.m())
00199                 {
00200                     mc = 0.5*p.m();
00201                 }
00202 
00203                 spray_.addParticle
00204                 (
00205                     new parcel
00206                     (
00207                         spray_,
00208                         p.position(),
00209                         p.cell(),
00210                         p.n(),
00211                         dc,
00212                         p.T(),
00213                         mc,
00214                         0.0,
00215                         0.0,
00216                         0.0,
00217                         -GREAT,
00218                         p.tTurb(),
00219                         0.0,
00220                         p.injector(),
00221                         p.U(),
00222                         p.Uturb(),
00223                         p.X(),
00224                         p.fuelNames()
00225                     )
00226                 );
00227 
00228                 p.m() -= mc;
00229                 p.ms() = 0.0;
00230             }
00231         }
00232     }
00233 }
00234 
00235 
00236 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00237 
00238 } // End namespace Foam
00239 
00240 // ************************************************************************* //
Copyright © 2000-2009 OpenCFD Ltd