-
Notifications
You must be signed in to change notification settings - Fork 292
Butane and Isobutane in Helmholtz #1636
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
Conversation
adowling2
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for the contribution!
When I was using the Helmholtz model, I found it helpful to make a few diagrams with the included helpful functions (e.g., TS, PH, ...) and then compare those to either literature or https://github.com/CoolProp/CoolProp. This is not required for the PR, but gives a nice sanity check.
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## main #1636 +/- ##
==========================================
- Coverage 77.01% 77.00% -0.01%
==========================================
Files 395 397 +2
Lines 63555 63580 +25
Branches 10365 10367 +2
==========================================
+ Hits 48944 48962 +18
- Misses 12171 12177 +6
- Partials 2440 2441 +1 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
Good point! Here's some visualisations: And the equivalent from https://tlk-energy.de/en/phase-diagrams/pressure-enthalpy From https://www.researchgate.net/figure/T-s-diagram-of-butane-covering-the-whole-liquid-range-in-temperature-from-triple-point_fig2_318372826 I couldnt find a T-S curve for isobutane though. The scales are a bit different but seem to match. Here's the code to generate the graphs if anyone in the future is trying to do the same thing: |
dallan-keylogic
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you so much for contributing these methods. I just have a few questions.
idaes/models/properties/general_helmholtz/tests/test_parameter_util.py
Outdated
Show resolved
Hide resolved
idaes/models/properties/general_helmholtz/tests/test_parameter_util.py
Outdated
Show resolved
Hide resolved
idaes/models/properties/general_helmholtz/tests/test_parameter_util.py
Outdated
Show resolved
Hide resolved
dallan-keylogic
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for the explanation. LGTM







Fixes
Adds Butane and Isobutane in helmholtz, based on:
https://doi.org/10.1063/1.1901687
Summary/Motivation:
We wanted to be able to model butane in helmholtz for https://github.com/waikato-ahuora-smart-energy-systems/PropertyPackages, may as well contribute upstream too!
Changes proposed in this PR:
rhol, which will make testing easier in the future.Legal Acknowledgement
By contributing to this software project, I agree to the following terms and conditions for my contribution: