Removed unneeded lib dependency from mdInitialise
[foam-extend-3.2.git] / applications / solvers / multiphase / interFoam / alphaEqnSubCycle.H
blobfcd2848a41eca2770263b950eb74b6a9822cfc70
1 label nAlphaCorr
3     readLabel(pimple.lookup("nAlphaCorr"))
4 );
6 label nAlphaSubCycles
8     readLabel(pimple.lookup("nAlphaSubCycles"))
9 );
11 if (nAlphaSubCycles > 1)
13     dimensionedScalar totalDeltaT = runTime.deltaT();
14     surfaceScalarField rhoPhiSum = 0.0*rhoPhi;
16     for
17     (
18         subCycle<volScalarField> alphaSubCycle(alpha1, nAlphaSubCycles);
19         !(++alphaSubCycle).end();
20     )
21     {
22 #       include "alphaEqn.H"
23         rhoPhiSum += (runTime.deltaT()/totalDeltaT)*rhoPhi;
24     }
26     rhoPhi = rhoPhiSum;
28 else
30 #       include "alphaEqn.H"
33 interface.correct();
35 rho == alpha1*rho1 + (scalar(1) - alpha1)*rho2;