Skip to content

Commit

Permalink
Finish #3
Browse files Browse the repository at this point in the history
I made the uncomment for `setSat_p` but forgot for `setSat_T`, this is now corrected.
  • Loading branch information
JonWel committed Dec 27, 2015
1 parent 9593222 commit f143b8d
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions Projects/Sources/coolpropsolver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -467,13 +467,9 @@ void CoolPropSolver::setSat_T(double &T, ExternalSaturationProperties *const pro
// Ancillary equations - fast but not 100% consistent with the rest
//properties->dl = state->saturation_ancillary(CoolProp::iDmass,0,CoolProp::iT,T);
//properties->dl = state->saturation_ancillary(CoolProp::iDmolar,0,CoolProp::iT,T)/state->molar_mass();

/* TODO: **
** Uncoment the `specify_phase` when issue 656 is solved: https://github.com/CoolProp/CoolProp/issues/656 **
** This will allow for a full state update and a speed enhancement */

// At bubble line:
// state->specify_phase(CoolProp::iphase_liquid);
state->specify_phase(CoolProp::iphase_liquid);
state->update(CoolProp::QT_INPUTS,0,T);
properties->Tsat = T;
properties->psat = state->p(); // At bubble line! (mather for pseudo-pure fluids)
Expand All @@ -486,7 +482,7 @@ void CoolPropSolver::setSat_T(double &T, ExternalSaturationProperties *const pro
properties->sl = state->smass(); // Specific entropy at bubble line (for pressure ps)

// At dew line:
// state->specify_phase(CoolProp::iphase_gas);
state->specify_phase(CoolProp::iphase_gas);
state->update(CoolProp::QT_INPUTS,1,T);
properties->dv = state->rhomass();
properties->hv = state->hmass();
Expand Down

0 comments on commit f143b8d

Please sign in to comment.