1 /*---------------------------------------------------------------------------*\
3 \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
5 \\ / A nd | Copyright (C) 2011 OpenFOAM Foundation
7 -------------------------------------------------------------------------------
9 This file is part of OpenFOAM.
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.
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
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/>.
24 \*---------------------------------------------------------------------------*/
26 #include "PilchErdman.H"
28 // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
30 template <class CloudType>
31 Foam::PilchErdman<CloudType>::PilchErdman
33 const dictionary& dict,
37 BreakupModel<CloudType>(dict, owner, typeName),
41 if (!this->defaultCoeffs(true))
43 this->coeffDict().lookup("B1") >> B1_;
44 this->coeffDict().lookup("B2") >> B2_;
49 template <class CloudType>
50 Foam::PilchErdman<CloudType>::PilchErdman(const PilchErdman<CloudType>& bum)
52 BreakupModel<CloudType>(bum),
58 // * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * //
60 template <class CloudType>
61 Foam::PilchErdman<CloudType>::~PilchErdman()
65 // * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
67 template<class CloudType>
68 bool Foam::PilchErdman<CloudType>::update
89 const scalar averageParcelMass,
95 scalar semiMass = nParticle*pow3(d);
96 scalar We = 0.5*rhoc*sqr(Urmag)*d/sigma;
97 scalar Oh = mu/pow(rho*d*sigma, 0.5);
99 scalar Wec = 6.0*(1.0 + 1.077*pow(Oh, 1.6));
103 // We > 1335, wave crest stripping
104 scalar taubBar = 5.5;
109 taubBar = 0.766*pow(2.0*We - 12.0, 0.25);
113 // Bag-and-stamen breakup
114 taubBar = 14.1*pow(2.0*We - 12.0, -0.25);
119 taubBar = 2.45*pow(2.0*We - 12.0, 0.25);
123 // Vibrational breakup
124 taubBar = 6.0*pow(2.0*We - 12.0, -0.25);
127 scalar rho12 = pow(rhoc/rho, 0.5);
129 scalar Vd = Urmag*rho12*(B1_*taubBar * B2_*taubBar*taubBar);
130 scalar Vd1 = sqr(1.0 - Vd/Urmag);
131 Vd1 = max(Vd1, SMALL);
132 scalar Ds = 2.0*Wec*sigma*Vd1/(Vd1*rhoc*sqr(Urmag));
133 scalar A = Urmag*rho12/d;
135 scalar taub = taubBar/A;
137 scalar frac = dt/taub;
139 // update the droplet diameter according to the rate eq. (implicitly)
140 d = (d + frac*Ds)/(1.0 + frac);
142 // correct the number of particles to conserve mass
143 nParticle = semiMass/pow3(d);
150 // ************************************************************************* //