From 178705132a0441d39e5e1b6bf99f41dc2a1600bc Mon Sep 17 00:00:00 2001 From: Hrvoje Jasak Date: Thu, 25 Apr 2019 11:06:04 +0100 Subject: [PATCH] Formatting and comments --- .../solvers/immersedBoundary/pimpleDyMIbFoam/pEqn.H | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/applications/solvers/immersedBoundary/pimpleDyMIbFoam/pEqn.H b/applications/solvers/immersedBoundary/pimpleDyMIbFoam/pEqn.H index 1c02221ba..d2310c326 100644 --- a/applications/solvers/immersedBoundary/pimpleDyMIbFoam/pEqn.H +++ b/applications/solvers/immersedBoundary/pimpleDyMIbFoam/pEqn.H @@ -35,7 +35,8 @@ } } - // Explicitly relax pressure for momentum corrector except for last corrector + // Explicitly relax pressure for momentum corrector + // except for last corrector if (!pimple.finalIter()) { p.relax(); @@ -54,5 +55,8 @@ ) ) + (1 - UUrf)*U.prevIter(); + + // U.correctBoundaryConditions() must be called with relative fluxes + // because of inletOutlet BC's U.correctBoundaryConditions(); }