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

[Bug] Heat Exchanger does not use property overridden properties internally #696

Open
magnuscarlsen opened this issue Dec 2, 2024 · 3 comments
Labels
bug Something isn't working

Comments

@magnuscarlsen
Copy link

When modelling a HX where one stream has enthalpy calculated with property override, the out enthalpy is not correctly calculated. This can be observed when the massflow * (enthalpy difference) is not the same in the hot and cold streams. To double check I have made a cooler heater model to the same out temperature and this gives the same heat transfer values as the heater, but still the same enthaply values out of the "hot hx" or the cooler.

The solution inspector for the HX indicate that internally the enthalpy ends up at value that is close to the "unoverriden" value, and not the overriden value that is then presented in the material stream following the HX. I think the problem is that the HX is not using the overrides in its interanal iterations, but use the original unoverriden values. (I think it calculates the overriden values, as the calculation time is 100 times longer).

See attached dwsim file. (the hot stream has property overrides, the cold one does not). Property overrides are needed for salinities above 12%.
In this case the last line in the HX property inspector shows 144 kJ/kg, the enthalpy directly following the HX is 133ish kJ/kg.

EnergyOutWithHeaterCooler.zip

@magnuscarlsen magnuscarlsen added the bug Something isn't working label Dec 2, 2024
@DanWBR
Copy link
Owner

DanWBR commented Dec 2, 2024

@magnuscarlsen I'll take a look

@DanWBR
Copy link
Owner

DanWBR commented Dec 2, 2024

hmmm this will require huge changes...

@DanWBR
Copy link
Owner

DanWBR commented Dec 2, 2024

@magnuscarlsen there is a specific enthalpy calculation override procedure that can help you with your case. Check the "Peng Robinson EOS Fugacity and Enthalpy Override" sample. You use a global script to override the routine that runs as soon as the flowsheet is opened.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants