ENH: making pcEqn.H similar to pEqn.H.

STY: Fixing syntax in rhoPimpleDyMFoam/pEqn.H
This commit is contained in:
sergio 2017-06-28 14:36:25 -07:00
parent 29d613dae4
commit 00a5b61bd2
2 changed files with 4 additions and 12 deletions

View File

@ -109,19 +109,11 @@ K = 0.5*magSqr(U);
if (pressureControl.limit(p))
{
p.correctBoundaryConditions();
thermo.correctRho(psi*p - psip0, rhoMin, rhoMax);
rho = thermo.rho();
}
else if (pimple.SIMPLErho())
{
thermo.correctRho(psi*p - psip0, rhoMin, rhoMax);
rho = thermo.rho();
}
else
{
thermo.correctRho(psi*p - psip0, rhoMin, rhoMax);
}
thermo.correctRho(psi*p - psip0, rhoMin, rhoMax) ;
rho = thermo.rho();
if (thermo.dpdt())
{
dpdt = fvc::ddt(p);

View File

@ -101,7 +101,7 @@ if (pressureControl.limit(p))
p.correctBoundaryConditions();
}
thermo.correctRho(psi*p - psip0, rhoMin, rhoMax) ;
thermo.correctRho(psi*p - psip0, rhoMin, rhoMax);
rho = thermo.rho();
{