BUG: UListIO: byteSize overflowing on really big faceLists
[OpenFOAM-2.0.x.git] / applications / solvers / multiphase / interMixingFoam / alphaEqnsSubCycle.H
blobd816f8acedf88815eb09aaaad7e234faf6508edf
1 const dictionary& pimpleDict = pimple.dict();
2 label nAlphaCorr(readLabel(pimpleDict.lookup("nAlphaCorr")));
3 label nAlphaSubCycles(readLabel(pimpleDict.lookup("nAlphaSubCycles")));
5 if (nAlphaSubCycles > 1)
7     surfaceScalarField rhoPhiSum(0.0*rhoPhi);
8     dimensionedScalar totalDeltaT = runTime.deltaT();
10     for
11     (
12         subCycle<volScalarField> alphaSubCycle(alpha1, nAlphaSubCycles);
13         !(++alphaSubCycle).end();
14     )
15     {
16         #include "alphaEqns.H"
17         rhoPhiSum += (runTime.deltaT()/totalDeltaT)*rhoPhi;
18     }
20     rhoPhi = rhoPhiSum;
22 else
24     #include "alphaEqns.H"
27 interface.correct();
30     volScalarField rhoNew(alpha1*rho1 + alpha2*rho2 + alpha3*rho3);
32     //solve(fvm::ddt(rho) + fvc::div(rhoPhi));
33     //Info<< "density error = "
34     //    << max((mag(rho - rhoNew)/mag(rhoNew))().internalField()) << endl;
36     rho == rhoNew;