2 word alphaScheme("div(phi,alpha)");
3 word alpharScheme("div(phirb,alpha)");
5 surfaceScalarField phir = phic*interface.nHatf();
7 for (int gCorr=0; gCorr<nAlphaCorr; gCorr++)
9 volScalarField::DimensionedInternalField Sp
18 dimensionedScalar("Sp", dgdt.dimensions(), 0.0)
21 volScalarField::DimensionedInternalField Su
29 // Divergence term is handled explicitly to be
30 // consistent with the explicit transport solution
31 divU*min(alpha1, scalar(1))
36 if (dgdt[celli] > 0.0 && alpha1[celli] > 0.0)
38 Sp[celli] -= dgdt[celli]*alpha1[celli];
39 Su[celli] += dgdt[celli]*alpha1[celli];
41 else if (dgdt[celli] < 0.0 && alpha1[celli] < 1.0)
43 Sp[celli] += dgdt[celli]*(1.0 - alpha1[celli]);
48 surfaceScalarField phiAlpha1 =
57 -fvc::flux(-phir, alpha2, alpharScheme),
62 MULES::explicitSolve(geometricOneField(), alpha1, phi, phiAlpha1, Sp, Su, 1, 0);
64 surfaceScalarField rho1f = fvc::interpolate(rho1);
65 surfaceScalarField rho2f = fvc::interpolate(rho2);
66 rhoPhi = phiAlpha1*(rho1f - rho2f) + phi*rho2f;
68 alpha2 = scalar(1) - alpha1;
71 Info<< "Liquid phase volume fraction = "
72 << alpha1.weightedAverage(mesh.V()).value()
73 << " Min(alpha1) = " << min(alpha1).value()
74 << " Min(alpha2) = " << min(alpha2).value()