Removed unnecessary return statement
[foam-extend-3.2.git] / applications / solvers / surfaceTracking / bubbleInterTrackFoam / scaleSpacePhi.H
blob922138223615305ff83030c8a0c534cf451790a2
1 if(runTime.timeIndex() > 1)
3     fvsPatchScalarField& spacePhi = phi.boundaryField()[spacePatchID];
5     scalar inletFlux = gSum(neg(spacePhi)*spacePhi);
7     scalar outletFlux = gSum(pos(spacePhi)*spacePhi);
9     if(outletFlux < VSMALL)
10     {
11         outletFlux = VSMALL;
12     }
14     scalar outflowScaling = -inletFlux/outletFlux;
16     spacePhi += pos(spacePhi)*spacePhi*(outflowScaling - 1.0);
18 //     Info<< "Space patch continuity: "
19 //         << gSum(phi.boundaryField()[spacePatchID]) << endl;
21 //     U.boundaryField()[spacePatchID] ==
22 //         U.boundaryField()[spacePatchID]
23 //       + pos(spacePhi)*U.boundaryField()[spacePatchID]*(outflowScaling - 1.0);