buoyantPimpleFoam: Added correction of rhoUf and dpdt for moving meshes

This commit is contained in:
Henry Weller
2020-02-28 17:06:24 +00:00
parent 8173999d10
commit e10a214c6b

View File

@ -93,7 +93,15 @@ if (pimple.simpleRho())
rho = thermo.rho();
}
// Correct rhoUf if the mesh is moving
fvc::correctRhoUf(rhoUf, rho, U, phi);
if (thermo.dpdt())
{
dpdt = fvc::ddt(p);
if (mesh.moving())
{
dpdt -= fvc::div(fvc::meshPhi(rho, U), p);
}
}