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
58 -fvc::flux(-phir, alpha2, alpharScheme),
76 surfaceScalarField rho1f(fvc::interpolate(rho1));
77 surfaceScalarField rho2f(fvc::interpolate(rho2));
78 rhoPhi = phiAlpha1*(rho1f - rho2f) + phi*rho2f;
80 alpha2 = scalar(1) - alpha1;
83 Info<< "Liquid phase volume fraction = "
84 << alpha1.weightedAverage(mesh.V()).value()
85 << " Min(alpha1) = " << min(alpha1).value()
86 << " Min(alpha2) = " << min(alpha2).value()