-
-
Notifications
You must be signed in to change notification settings - Fork 356
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
Simplify Molar Mixture Properties #1837
Conversation
70d10e2
to
e6d5de4
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #1837 +/- ##
==========================================
- Coverage 74.41% 74.39% -0.03%
==========================================
Files 382 382
Lines 53411 53330 -81
Branches 9026 9021 -5
==========================================
- Hits 39747 39676 -71
+ Misses 10617 10607 -10
Partials 3047 3047 ☔ View full report in Codecov by Sentry. |
e6d5de4
to
987dfbe
Compare
40981d9
to
1d4127d
Compare
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.
Thanks for this, @ischoegl. My comments here are mostly about the documentation related to these changes.
I'm curious about the test failures when replacing intEnergy_mole
and cv_mole
that you mentioned cropping up on specific runners.
Thanks for the review, @speth. I've taken care of all requests.
While I have deleted those commits, I recall having to change some of the internal plumbing, which was a little more intrusive than what was necessary for h/s/g/cp. It wasn't difficult, but I decided against the changes as I could not troubleshoot - there weren't any errors on macOS. PS: New CI failures are unrelated to changes in this PR. It appears that boost downloads from JFrog are currently not working, which may or may not resolve. A workaround may involve downloading assets from GH boostorg. |
ef4f620
to
809181e
Compare
1e222f2
to
809181e
Compare
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.
Thanks, @ischoegl, this looks good to me.
Changes proposed in this pull request
There are some instances where
ThermoPhase
objects use redundant code for the evaluation of molar mixture properties.This PR seeks to provide a more uniform approach to evaluating molar properties. By default, average properties should be calculated as a weighted sum, e.g.$\bar{h} = \sum X_k \bar{h}_k$ .
getPartialMolar<>
getters are used to obtain partial molar properties.ThermoPhase
method that is not implementedOne caveat is that this approach has limitations for
intEnergy_mole
andcv_mole
. These properties are implemented differently as they are largely based on simplified thermodynamic relationships rather than summations. Interestingly, an attempt to baseintEnergy_mole
ongetPartialMolarIntEnergies
causes failures in the zeroD module, albeit only on windows and sundials runners.Checklist
scons build
&scons test
) and unit tests address code coverage