DanWBR / dwsim

DWSIM is a Steady-State and Dynamic Sequential Modular Chemical Process Simulator for Windows, Linux and macOS.
https://dwsim.org
GNU General Public License v3.0
285 stars 92 forks source link

[Bug] Gas-liquid Separator - Enthalpy for outlet streams equal zero #130

Closed byryepez closed 3 years ago

byryepez commented 3 years ago

IMPORTANT: This section is for code-related bugs. For usage issues, please go to the Support Forums.

Describe the bug During a calculation using the gas-liquid separator, the values for the enthalpies for the outlet streams (vapor and liquid) are equal to zero, while the same values for the feed line are not. The flash temperature was overridden to the inlet temperature, and outlet pressure is set to inlet minimum. Because the enthalpy on the vapor stream is zero, a valve cannot be calculated. Using a CAPE-OPEN package.

Expected behavior Outlet streams should have the same value of enthalpy as the feed.

Screenshots image

Desktop (please complete the following information):

DanWBR commented 3 years ago

@byryepez Uncheck the "Skip equilibrium calculations..." option in the Simulation Settings / Basis panel:

Captura de Tela 2021-04-07 às 17 09 00
byryepez commented 3 years ago

Dear @DanWBR Daniel,

Thanks for checking this issue. I followed your suggestion and now the outlet streams show a value for the enthalpy. However, the outlet streams do not preserve the separation temperature (65°C), which affects the calculation of the outlet streams.

image

I use the same CAPE_OPEN package in COCO, and I obtained the following result:

image

Is there any way to force the simulation to calculate the properties of the outlets based on T (or P) and vapor fraction?

Thanks in advance.

DanWBR commented 3 years ago

@byryepez investigating this now.