Skip to content
Permalink
Browse files

rhoPimpleFoam: Improved pressure and density limiting

  • Loading branch information...
Henry Weller
Henry Weller committed Feb 15, 2019
1 parent fbb7b5d commit f9cb8e21d9ee6ff4573dd797014327144dbc5a54
@@ -85,6 +85,11 @@ else
}
}

if (pressureControl.limit(p))
{
p.correctBoundaryConditions();
}

// Thermodynamic density update
thermo.correctRho(psi*p - psip0);

@@ -99,12 +104,7 @@ U.correctBoundaryConditions();
fvOptions.correct(U);
K = 0.5*magSqr(U);

if (pressureControl.limit(p))
{
p.correctBoundaryConditions();
rho = thermo.rho();
}
else if (pimple.simpleRho())
if (pimple.simpleRho())
{
rho = thermo.rho();
}
@@ -99,6 +99,11 @@ else
}
}

if (pressureControl.limit(p))
{
p.correctBoundaryConditions();
}

// Thermodynamic density update
thermo.correctRho(psi*p - psip0);

@@ -113,12 +118,7 @@ U.correctBoundaryConditions();
fvOptions.correct(U);
K = 0.5*magSqr(U);

if (pressureControl.limit(p))
{
p.correctBoundaryConditions();
rho = thermo.rho();
}
else if (pimple.simpleRho())
if (pimple.simpleRho())
{
rho = thermo.rho();
}

0 comments on commit f9cb8e2

Please sign in to comment.
You can’t perform that action at this time.