Use correct value for gas constant

Even if it's just for part of an initial guess
This commit is contained in:
Ray Speth 2016-05-10 22:16:46 -04:00
parent 46684646ee
commit fc33778451

View file

@ -299,7 +299,7 @@ void Substance::update_sat()
double gf = hp() - T*sp();
if (i==0) {
Rho = pp*MolWt()/(8314.0*T); // trial value = ideal gas
Rho = pp*MolWt()/(GasConstant*T); // trial value = ideal gas
} else {
Rho = Rhv;
}