Fixed a problem with the VCS equilibrium solver at constant HP or UP
A sign error when limiting the temperature step caused the solver to fail if the initial temperature was higher than sqrt(Tlow*Thigh).
This commit is contained in:
parent
e9026fb683
commit
a6dc994439
1 changed files with 1 additions and 1 deletions
|
|
@ -294,7 +294,7 @@ int vcs_MultiPhaseEquil::equilibrate_HP(doublereal Htarget,
|
|||
Tnew = sqrt(Tlow*Thigh);
|
||||
dT = Tnew - Tnow;
|
||||
if (dT < -200.) {
|
||||
dT = 200;
|
||||
dT = -200;
|
||||
}
|
||||
if (dT > 200.) {
|
||||
dT = 200.;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue