Skip to content
Snippets Groups Projects
Commit b602e83d authored by Henry's avatar Henry Committed by Andrew Heather
Browse files

rhoPimpleDyMFoam/pEqn: Filter use of meshPhi

parent fb00cd2b
Branches
Tags
No related merge requests found
......@@ -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);
}
}
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment