2 word scheme("div(phi,alpha)");
3 word schemer("div(phir,alpha)");
5 surfaceScalarField phic = phi;
6 surfaceScalarField phir = phia - phib;
10 surfaceScalarField alphaf = fvc::interpolate(alpha);
11 surfaceScalarField phipp = ppMagf*fvc::snGrad(alpha)*mesh.magSf();
13 phic += fvc::interpolate(alpha)*phipp;
16 for (int acorr=0; acorr<nAlphaCorr; acorr++)
18 fvScalarMatrix alphaEqn
21 + fvm::div(phic, alpha, scheme)
22 + fvm::div(-fvc::flux(-phir, beta, schemer), alpha, schemer)
27 ppMagf = rUaAf*fvc::interpolate
29 (1.0/(rhoa*(alpha + scalar(0.0001))))
30 *g0*min(exp(preAlphaExp*(alpha - alphaMax)), expMax)
33 alphaEqn -= fvm::laplacian
35 (fvc::interpolate(alpha) + scalar(0.0001))*ppMagf,
37 "laplacian(alphaPpMag,alpha)"
44 # include "packingLimiter.H"
46 beta = scalar(1) - alpha;
48 Info<< "Dispersed phase volume fraction = "
49 << alpha.weightedAverage(mesh.V()).value()
50 << " Min(alpha) = " << min(alpha).value()
51 << " Max(alpha) = " << max(alpha).value()