BUGFIX: Uninitialised member variables
[foam-extend-3.2.git] / applications / solvers / multiphase / compressibleInterFoam / alphaEqnsSubCycle.H
blob89ba7a4e7577e98b0e04fd99cb39bd3af711c68b
2     label nAlphaCorr
3     (
4         readLabel(piso.lookup("nAlphaCorr"))
5     );
7     label nAlphaSubCycles
8     (
9         readLabel(piso.lookup("nAlphaSubCycles"))
10     );
12     surfaceScalarField phic = mag(phi/mesh.magSf());
13     phic = min(interface.cAlpha()*phic, max(phic));
15     volScalarField divU = fvc::div(phi);
17     if (nAlphaSubCycles > 1)
18     {
19         dimensionedScalar totalDeltaT = runTime.deltaT();
20         surfaceScalarField rhoPhiSum = 0.0*rhoPhi;
22         for
23         (
24             subCycle<volScalarField> alphaSubCycle(alpha1, nAlphaSubCycles);
25             !(++alphaSubCycle).end();
26         )
27         {
28             #include "alphaEqns.H"
29             rhoPhiSum += (runTime.deltaT()/totalDeltaT)*rhoPhi;
30         }
32         rhoPhi = rhoPhiSum;
33     }
34     else
35     {
36         #include "alphaEqns.H"
37     }
39     if (oCorr == 0)
40     {
41         interface.correct();
42     }