Skip to content
Snippets Groups Projects
Commit 45a4fbda authored by andy's avatar andy
Browse files

ENH: Added ddtPhiCorr to pimpleDyMFoam on a switch

parent d1aab239
No related branches found
No related tags found
No related merge requests found
...@@ -7,6 +7,11 @@ if (pimple.nCorr() <= 1) ...@@ -7,6 +7,11 @@ if (pimple.nCorr() <= 1)
phi = (fvc::interpolate(U) & mesh.Sf()); phi = (fvc::interpolate(U) & mesh.Sf());
if (ddtPhiCorr)
{
phi += fvc::ddtPhiCorr(rAU, U, phi);
}
if (p.needReference()) if (p.needReference())
{ {
fvc::makeRelative(phi, U); fvc::makeRelative(phi, U);
......
...@@ -8,3 +8,5 @@ ...@@ -8,3 +8,5 @@
const bool checkMeshCourantNo = const bool checkMeshCourantNo =
pimpleDict.lookupOrDefault("checkMeshCourantNo", false); pimpleDict.lookupOrDefault("checkMeshCourantNo", false);
const bool ddtPhiCorr =
pimpleDict.lookupOrDefault("ddtPhiCorr", true);
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment