rhoPimpleDyMFoam/pEqn: Filter use of meshPhi

This commit is contained in:
Henry 2014-05-18 21:31:44 +01:00
parent 30947d1571
commit 137bb2e4a6

View file

@ -112,5 +112,10 @@ K = 0.5*magSqr(U);
if (thermo.dpdt())
{
dpdt = fvc::ddt(p) - fvc::div(fvc::meshPhi(rho, U), p);
dpdt = fvc::ddt(p);
if (mesh.moving())
{
dpdt -= fvc::div(fvc::meshPhi(rho, U), p);
}
}