Skip to content

Commit

Permalink
buoyantPimpleFoam::pEqn: Moved p_rgh relaxation so that the relaxed p…
Browse files Browse the repository at this point in the history
…_rgh is used when updating p

This improves convergence of some steady-state chtMultiRegionFoam (which uses
the pEqn.H from buoyantPimpleFoam) cases but does not affect transient
simulations unless aggressive pressure relaxation is applied, i.e. transient
SIMPLE.
  • Loading branch information
Henry Weller committed Nov 18, 2021
1 parent a162207 commit daf9d6e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions applications/solvers/heatTransfer/buoyantPimpleFoam/pEqn.H
Expand Up @@ -98,6 +98,9 @@ else

phi = phiHbyA + p_rghEqn.flux();

// Explicitly relax pressure for momentum corrector
p_rgh.relax();

p = p_rgh + rho*gh + pRef;

if (mesh.steady())
Expand All @@ -120,9 +123,6 @@ else
#include "compressibleContinuityErrs.H"
}

// Explicitly relax pressure for momentum corrector
p_rgh.relax();

// Correct the momentum source with the pressure gradient flux
// calculated from the relaxed pressure
U = HbyA + rAU*fvc::reconstruct((phig + p_rghEqn.flux())/rhorAUf);
Expand Down

0 comments on commit daf9d6e

Please sign in to comment.