mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
BUG: Updating rho at the end of the pEq for rhoPimpleDyMFoam and limiting is needed
This commit is contained in:
@ -1,4 +1,11 @@
|
|||||||
rho = thermo.rho();
|
if (!pimple.SIMPLErho())
|
||||||
|
{
|
||||||
|
rho = thermo.rho();
|
||||||
|
}
|
||||||
|
|
||||||
|
// Thermodynamic density needs to be updated by psi*d(p) after the
|
||||||
|
// pressure solution
|
||||||
|
const volScalarField psip0(psi*p);
|
||||||
|
|
||||||
volScalarField rAU(1.0/UEqn.A());
|
volScalarField rAU(1.0/UEqn.A());
|
||||||
surfaceScalarField rhorAUf("rhorAUf", fvc::interpolate(rho*rAU));
|
surfaceScalarField rhorAUf("rhorAUf", fvc::interpolate(rho*rAU));
|
||||||
@ -92,9 +99,11 @@ K = 0.5*magSqr(U);
|
|||||||
if (pressureControl.limit(p))
|
if (pressureControl.limit(p))
|
||||||
{
|
{
|
||||||
p.correctBoundaryConditions();
|
p.correctBoundaryConditions();
|
||||||
rho = thermo.rho();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
thermo.correctRho(psi*p - psip0, rhoMin, rhoMax) ;
|
||||||
|
rho = thermo.rho();
|
||||||
|
|
||||||
{
|
{
|
||||||
rhoUf = fvc::interpolate(rho*U);
|
rhoUf = fvc::interpolate(rho*U);
|
||||||
surfaceVectorField n(mesh.Sf()/mesh.magSf());
|
surfaceVectorField n(mesh.Sf()/mesh.magSf());
|
||||||
|
|||||||
Reference in New Issue
Block a user