-
Notifications
You must be signed in to change notification settings - Fork 301
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
Bug in flash routines with fixed phase #656
Comments
This one affects a couple of flash routines...
|
What is wrong? Can you explain? I should be able to fix it if you can clarify. |
Have you tried running the code above? Does it work for you? Here is what I experienced: In short: I think the if-clauses have to be restructured to respect an imposed phase. If the phase is not imposed, everyhting is finde because the phase detection fills the variables required during the post update steps. I am not sure which flash routines are affected, but I found at least three (see above). It should be fixable, but I do not feel comfortable making some sort of a hotfix because there still a few things in the HEOS backends that I do not understand completely. |
Hmm, this does seem like a bug. Let me see what I can do. On Fri, May 15, 2015 at 2:21 AM, Jorrit Wronski notifications@github.com
|
Calling
FlashRoutines::PHSU_D_flash
with a pre-specified phase flag does not populate the state object properly. There is something wrong with the if-clause, it seems to be misplaced, see https://github.com/CoolProp/CoolProp/blob/master/src/Backends/Helmholtz/FlashRoutines.cpp#L727-L733 .The text was updated successfully, but these errors were encountered: