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

Update REFPROPMixtureBackend.cpp #2374

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

birdol
Copy link

@birdol birdol commented May 6, 2024

Coolprop library does not implement the function call setrefdll from Refprop. As a result, there are discrepancies between the calculation results of Refprop and Coolprop when computing predefined mixture MIX models, primarily in terms of standard state deviations (which affect enthalpy values and related quantities).

Coolprop does provide a method to set the standard state, which can be set to DEF. However, the default value of DEF in Coolprop still differs from the calculation results of Refprop.

Requirements

  • Fill out this template to the extent possible so that this PR can be reviewed in a timely manner.
  • Replace the bracketed text below with your own.
  • All new code requires tests to ensure against regressions.

Description of the Change

Based on the previously mentioned issue (#2239),
Coolprop library does not implement the function call setrefdll from Refprop. As a result, there are discrepancies between the calculation results of Refprop and Coolprop when computing predefined mixture MIX models, primarily in terms of standard state deviations (which affect enthalpy values and related quantities).
Coolprop does provide a method to set the standard state, which can be set to DEF. However, the default value of DEF in Coolprop still differs from the calculation results of Refprop.

Benefits

[ The modified code now includes the call to setrefdll from refprop, resulting in the same calculations as those set in refprop when computing predefined mixtures. ]

Possible Drawbacks

[The original user's calculations for predefined mixtures will be affected by the changes, but only when using the REFPROP backend. This will primarily impact variables such as enthalpy values. ]

Verification Process

[ What process did you follow to verify that your change has the desired effects?
I only verified R410A.MIX and did not conduct extensive testing, but I believe the impact should be minimal and feasible.

Applicable Issues

Closes #2239

Coolprop library does not implement the function call setrefdll from Refprop. As a result, there are discrepancies between the calculation results of Refprop and Coolprop when computing predefined mixture MIX models, primarily in terms of standard state deviations (which affect enthalpy values and related quantities).

Coolprop does provide a method to set the standard state, which can be set to DEF. However, the default value of DEF in Coolprop still differs from the calculation results of Refprop.
@CLAassistant
Copy link

CLAassistant commented May 6, 2024

CLA assistant check
All committers have signed the CLA.

@ibell
Copy link
Contributor

ibell commented May 7, 2024

It is not true that CoolProp does not implement the SETREFdll function of REFPROP. But it is true that the default reference state is not set to match that of REFPROP by default for predefined mixtures.

@birdol
Copy link
Author

birdol commented May 8, 2024

It is not true that CoolProp does not implement the SETREFdll function of REFPROP. But it is true that the default reference state is not set to match that of REFPROP by default for predefined mixtures.

Yes, you are right. I misspoke. Will this pull request be merged? Is there an issue with the code?

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.

different result coolprop and refprop10
3 participants