Butane and Isobutane in Helmholtz#1636
Conversation
adowling2
left a comment
There was a problem hiding this comment.
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.
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.
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: