rhoPimpleDyMFoam/pEqn: Filter use of meshPhi

This commit is contained in:
Henry
2014-05-18 21:31:44 +01:00
committed by Andrew Heather
parent fb00cd2bc9
commit b602e83da5

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);
}
}