rhoPimpleDyMFoam/pEqn: Filter use of meshPhi
This commit is contained in:
parent
30947d1571
commit
137bb2e4a6
1 changed files with 6 additions and 1 deletions
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue