Open Akwiatkowski-eng opened 1 year ago
It seems to be working properly when iMass flag is set to 2.
There are some bugs with mass-based composition. Always use mole compositions and things will work better.
Also, make sure you don't hard-code the iUnits
Thank you Ian. Could you please explain what you mean by "hard-coding the iUnits"?
You did iUnits = 21
, you should only use values coming from GETENUMdll
, we might change the enumerated values in the future.
Description
Hello I noticed that REFPROPdll randomly changes mixture composition. It does not happen every single time, but I think the more times fucntion is called the more bugs occurs. I tried to debug it, but it the composition "z" is forwarded properly to the function, and the ctypes conversion also seems to be correct. It looks like something happens inside dll itself.
Steps to Reproduce
Please run the code and observe the printouts
Expected behavior: Composition used should not change
Actual behavior: Composition changes inside the function
Versions
REFPROP Version: [REFPROP dll version 10.0]
Operating System and Version: [Windows 10]
Access Method: Python via ctREFPROP]
Additional Information
Exemplary output:
To "punkt_H_in" and "punkt_H_out" the same mixture and compositon is handed. However the output composition does not match in first case and it match in the second one.
Is there any solution or can it be somehow worked around? Thank you for your help. Adrian