BUG: UListIO: byteSize overflowing on really big faceLists
[OpenFOAM-2.0.x.git] / applications / solvers / multiphase / interFoam / LTSInterFoam / alphaEqn.H
blob0c2cf71e4edf3d00e5695a7be322c3f7ba423917
2     word alphaScheme("div(phi,alpha)");
3     word alpharScheme("div(phirb,alpha)");
5     surfaceScalarField phic(mag(phi/mesh.magSf()));
6     phic = min(interface.cAlpha()*phic, max(phic));
7     surfaceScalarField phir(phic*interface.nHatf());
9     for (int aCorr=0; aCorr<nAlphaCorr; aCorr++)
10     {
11         surfaceScalarField phiAlpha
12         (
13             fvc::flux
14             (
15                 phi,
16                 alpha1,
17                 alphaScheme
18             )
19           + fvc::flux
20             (
21                 -fvc::flux(-phir, scalar(1) - alpha1, alpharScheme),
22                 alpha1,
23                 alpharScheme
24             )
25         );
27         MULES::explicitLTSSolve(alpha1, phi, phiAlpha, 1, 0);
28         //MULES::explicitSolve(alpha1, phi, phiAlpha, 1, 0);
30         rhoPhi = phiAlpha*(rho1 - rho2) + phi*rho2;
31     }
33     Info<< "Liquid phase volume fraction = "
34         << alpha1.weightedAverage(mesh.V()).value()
35         << "  Min(alpha1) = " << min(alpha1).value()
36         << "  Max(alpha1) = " << max(alpha1).value()
37         << endl;