Adding correctRho plus rhoMin and rhoMax limiters to thermos.

Update pEq for close domains.
This commit is contained in:
sergio
2017-06-07 12:11:01 +01:00
parent d1b651533f
commit c44322ebb8
11 changed files with 36 additions and 13 deletions

View File

@ -72,9 +72,6 @@ while (pimple.correctNonOrthogonal())
p = p_rgh + rho*gh;
// Thermodynamic density update
//thermo.correctRho(psi*p - psip0);
#include "rhoEqn.H"
#include "compressibleContinuityErrs.H"
@ -95,9 +92,8 @@ if (p_rgh.needReference())
/compressibility;
thermo.correctRho(psi*p - psip0);
rho = thermo.rho();
p_rgh = p - rho*gh;
}
p_rgh = p - rho*gh;
}
else
{

View File

@ -76,8 +76,8 @@
{
p += (initialMass - fvc::domainIntegrate(psi*p))
/fvc::domainIntegrate(psi);
p_rgh = p - rho*gh;
}
p_rgh = p - rho*gh;
}
rho = thermo.rho();

View File

@ -84,8 +84,8 @@
{
p += (initialMass - fvc::domainIntegrate(psi*p))
/compressibility;
p_rgh = p - rho*gh;
}
p_rgh = p - rho*gh;
}
rho = thermo.rho();

View File

@ -112,8 +112,8 @@ if (closedVolume)
/compressibility;
thermo.correctRho(psi*p - psip0);
rho = thermo.rho();
p_rgh = p - rho*gh;
}
p_rgh = p - rho*gh;
}
else
{