Fixed mesh motion error for motion flux on a moving mesh

This commit is contained in:
Hrvoje Jasak 2010-09-29 19:58:46 +01:00
parent 9eb91ceb5a
commit fd350da163

View file

@ -92,7 +92,7 @@ void Foam::fvc::makeRelative
{
if (phi.mesh().moving())
{
phi -= fvc::meshPhi(rho, U);
phi -= rho*fvc::meshPhi(rho, U);
}
}
@ -105,7 +105,7 @@ void Foam::fvc::makeRelative
{
if (phi.mesh().moving())
{
phi -= fvc::meshPhi(rho, U);
phi -= fvc::interpolate(rho)*fvc::meshPhi(rho, U);
}
}
@ -131,7 +131,7 @@ void Foam::fvc::makeAbsolute
{
if (phi.mesh().moving())
{
phi += fvc::meshPhi(rho, U);
phi += rho*fvc::meshPhi(rho, U);
}
}
@ -144,7 +144,7 @@ void Foam::fvc::makeAbsolute
{
if (phi.mesh().moving())
{
phi += fvc::meshPhi(rho, U);
phi += fvc::interpolate(rho)*fvc::meshPhi(rho, U);
}
}