ENH: Added ddtPhiCorr to pimpleDyMFoam on a switch

This commit is contained in:
andy
2011-09-28 13:58:08 +01:00
parent d1aab2399f
commit 45a4fbda2c
2 changed files with 7 additions and 0 deletions

View File

@ -7,6 +7,11 @@ if (pimple.nCorr() <= 1)
phi = (fvc::interpolate(U) & mesh.Sf());
if (ddtPhiCorr)
{
phi += fvc::ddtPhiCorr(rAU, U, phi);
}
if (p.needReference())
{
fvc::makeRelative(phi, U);

View File

@ -8,3 +8,5 @@
const bool checkMeshCourantNo =
pimpleDict.lookupOrDefault("checkMeshCourantNo", false);
const bool ddtPhiCorr =
pimpleDict.lookupOrDefault("ddtPhiCorr", true);