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)
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);