Fixed mesh motion error for motion flux on a moving mesh
This commit is contained in:
parent
9eb91ceb5a
commit
fd350da163
1 changed files with 4 additions and 4 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Reference in a new issue