-
-
Notifications
You must be signed in to change notification settings - Fork 353
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
Inconsistent thermo calculations in BinarySolutionTabulatedThermo #1302
Comments
Hi Ray, I came across this issue and had a look at the behavior. The composition of the phase that is used for the test ([0.9 0.1]) lies outside the provided molefraction in ‘lithium_ion_battery.yaml’. When calling p.volume_mole, I also applied this test to a phase with tabulated molar-volume (‘BinarySolutionTabulatedThermo.yaml’). At molefractions that are provided in the table, p.volume_mole and sum(p.partial_molar_volumes * p.X) are equivalent but at values in-between the tabulated points, the results deviate slightly as a consequence of interpolation (see zoomed-in plot). Worse, however, is that the enthalpy doesn’t match. This made me notice, that there are still some getter methods concerning (molar) quantities, that have to be overloaded in
Currently, these methods still use A possible solution to fix the missing extrapolation behavior could be to automatically append the pure species values of the tabulated quantities at molefractions 0 and 1 during Best regards, |
Problem description
For the
BinarySolutionTabulatedThermo
phase:volume_mole
function (in Python) disagrees with calculating the mole fraction weighted sum of the partial molar volumes.enthalpy_mole
function disagrees with calculating the mole fraction weighted sum of the partial molar enthalpies.Steps to reproduce
System information
main
at 8fbb4bcAdditional context
This was discovered as part of #1299, which implements Cantera/enhancements#114.
The text was updated successfully, but these errors were encountered: