Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Never allow two-phase SOS. #1837

Merged
merged 2 commits into from Jun 27, 2019
Merged

Never allow two-phase SOS. #1837

merged 2 commits into from Jun 27, 2019

Conversation

ibell
Copy link
Contributor

@ibell ibell commented Jun 26, 2019

Remove the ambiguity, and this is what REFPROP does.

Benefits

Correct thermodynamic behavior

Possible Drawbacks

A breaking change, might be surprising to users

Applicable Issues

#1836

@ibell ibell requested review from jowr and thorade June 26, 2019 04:22
Copy link
Contributor

@thorade thorade left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In general, this is correct. The checking for two-phase should happen only once and the lowest level functions should just assume they are in a valid region, not sure what functions are called from where etc.

The same check can of course be done for other properties, e.g. how is cp currently handled?

PS: I used ?w=1 to ignore whitespace, then it is easier to review.

@ibell ibell merged commit ba00e6e into master Jun 27, 2019
@ibell ibell deleted the no_2phase_SOS branch June 27, 2019 03:48
zmeri pushed a commit to zmeri/CoolProp that referenced this pull request Mar 29, 2020
* Never allow two-phase SOS.  Remove the ambiguity, and this is what REFPROP does.

* More sensible checks
@ibell ibell added this to the v6.4.0 milestone May 9, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants