ENH: Time: access to libs
[OpenFOAM-2.0.x.git] / applications / solvers / multiphase / interFoam / alphaEqnSubCycle.H
blob8dbb489c8d2d0fad19b6e8035a64b71be2767152
1 label nAlphaCorr(readLabel(pimple.dict().lookup("nAlphaCorr")));
3 label nAlphaSubCycles(readLabel(pimple.dict().lookup("nAlphaSubCycles")));
5 if (nAlphaSubCycles > 1)
7     dimensionedScalar totalDeltaT = runTime.deltaT();
8     surfaceScalarField rhoPhiSum(0.0*rhoPhi);
10     for
11     (
12         subCycle<volScalarField> alphaSubCycle(alpha1, nAlphaSubCycles);
13         !(++alphaSubCycle).end();
14     )
15     {
16         #include "alphaEqn.H"
17         rhoPhiSum += (runTime.deltaT()/totalDeltaT)*rhoPhi;
18     }
20     rhoPhi = rhoPhiSum;
22 else
24     #include "alphaEqn.H"
27 interface.correct();
29 rho == alpha1*rho1 + (scalar(1) - alpha1)*rho2;