initial commit for version 1.5.x patch release
[OpenFOAM-1.5.x.git] / applications / solvers / multiphase / interFoam / gammaEqnSubCycle.H
blobf762bac8ca7df5af785c8307f37dbf0cbbcebf5c
1 label nGammaCorr
3     readLabel(piso.lookup("nGammaCorr"))
4 );
6 label nGammaSubCycles
8     readLabel(piso.lookup("nGammaSubCycles"))
9 );
11 if (nGammaSubCycles > 1)
13     dimensionedScalar totalDeltaT = runTime.deltaT();
14     surfaceScalarField rhoPhiSum = 0.0*rhoPhi;
16     for
17     (
18         subCycle<volScalarField> gammaSubCycle(gamma, nGammaSubCycles);
19         !(++gammaSubCycle).end();
20     )
21     {
22 #       include "gammaEqn.H"
23         rhoPhiSum += (runTime.deltaT()/totalDeltaT)*rhoPhi;
24     }
26     rhoPhi = rhoPhiSum;
28 else
30 #       include "gammaEqn.H"
33 interface.correct();
35 rho == gamma*rho1 + (scalar(1) - gamma)*rho2;