Removed unnecessary return statement
[foam-extend-3.2.git] / applications / solvers / multiphase / interMixingFoam / alphaEqnsSubCycle.H
blob765087a183baf3db62ec9b4dcf382d667b6209f3
1 label nAlphaCorr
3     readLabel(piso.lookup("nAlphaCorr"))
4 );
6 label nAlphaSubCycles
8     readLabel(piso.lookup("nAlphaSubCycles"))
9 );
11 if (nAlphaSubCycles > 1)
13     surfaceScalarField rhoPhiSum = 0.0*rhoPhi;
14     dimensionedScalar totalDeltaT = runTime.deltaT();
16     for
17     (
18         subCycle<volScalarField> alphaSubCycle(alpha1, nAlphaSubCycles);
19         !(++alphaSubCycle).end();
20     )
21     {
22 #       include "alphaEqns.H"
23         rhoPhiSum += (runTime.deltaT()/totalDeltaT)*rhoPhi;
24     }
26     rhoPhi = rhoPhiSum;
28 else
30 #       include "alphaEqns.H"
33 interface.correct();
36     volScalarField rhoNew = alpha1*rho1 + alpha2*rho2 + alpha3*rho3;
38     //solve(fvm::ddt(rho) + fvc::div(rhoPhi));
39     //Info<< "density error = "
40     //    << max((mag(rho - rhoNew)/mag(rhoNew))().internalField()) << endl;
42     rho == rhoNew;