mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: making pcEqn.H similar to pEqn.H.
STY: Fixing syntax in rhoPimpleDyMFoam/pEqn.H
This commit is contained in:
@ -109,19 +109,11 @@ K = 0.5*magSqr(U);
|
|||||||
if (pressureControl.limit(p))
|
if (pressureControl.limit(p))
|
||||||
{
|
{
|
||||||
p.correctBoundaryConditions();
|
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())
|
if (thermo.dpdt())
|
||||||
{
|
{
|
||||||
dpdt = fvc::ddt(p);
|
dpdt = fvc::ddt(p);
|
||||||
|
|||||||
@ -101,7 +101,7 @@ if (pressureControl.limit(p))
|
|||||||
p.correctBoundaryConditions();
|
p.correctBoundaryConditions();
|
||||||
}
|
}
|
||||||
|
|
||||||
thermo.correctRho(psi*p - psip0, rhoMin, rhoMax) ;
|
thermo.correctRho(psi*p - psip0, rhoMin, rhoMax);
|
||||||
rho = thermo.rho();
|
rho = thermo.rho();
|
||||||
|
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user