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
288 stars 92 forks source link

Inert compound that reacts #418

Closed mjparra closed 1 year ago

mjparra commented 1 year ago

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

Describe the bug There is a conversion reactor (isothermic). One of the compounds is Nitrogen, it doesn't appear in any of the reactions, but in the outlet stream, Nitrogen is only 43% of the one that enter. There is another issue: The heat load obtained is NaN, must it not be 0?

To Reproduce Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior The amount of Nitrogen must be the same in the outlet stream. The heat load must be zero, since is isothermic. issueN2.pdf

Screenshots If applicable, add screenshots to help explain your problem. image

Desktop (please complete the following information):

Additional context Add any other context about the problem here.

mjparra commented 1 year ago

The version I'm using is v8.3.4 for Windows. The best way you can review the problem is sending the file from dwsim, but I didn't find how to send it.

kookma commented 1 year ago

IMPORTANT: This section is for code-related bugs. For usage issues, please go to the Support Forums. There you can upload a zipped version of your DWSIM simulation

DanWBR commented 1 year ago

@mjparra you can zip the simulation file and drag it here to attach.

mjparra commented 1 year ago

I already post my question in sourceforge, according to a suggestion I received. But I attach the file here, this is a file that shows only the part with the problem.

I appreciate ;your help.

Martha Parra

On Thu, Jan 26, 2023 at 7:18 AM Daniel Wagner < @.***> wrote:

@mjparra you can zip the simulation file and drag it here to attach. —Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you were mentioned.Message ID:

DuckDuckGo removed 1 tracker. More →

https://duckduckgo.com/-ZZupGyJDzZxz15sQRaFF_29mpJtURIoqRY2QpSg0btMj6t4jrIUp_-SD2FKsoLHblKrZ6yP1dIlX72Bo52RdE0KCDBtEuO6LdcNHL2A_w8A7HGsPfn063J3F-CQc8kqobwJHSZ5VQWM1K-AZKKxhe-PkZVG28JHz0VCzd0BLKYAYZ1v4ZX-qeJMbg5V3q9dLE_dC4GW8yI0DOc61HPTh37Fsb33PGZbmSPCWVMAN6glxAAe52GIuabm8heoffCiPCYD0UtoLyJtNsZpjtj4zRxsiDQ

@mjparra https://github.com/mjparra you can zip the simulation file and drag it here to attach.

— Reply to this email directly, view it on GitHub https://github.com/DanWBR/dwsim/issues/418#issuecomment-1404922571, or unsubscribe https://github.com/notifications/unsubscribe-auth/A5O3KBCQZZMPYJVSTQKGWXDWUJTSDANCNFSM6AAAAAAUGVTT3Y . You are receiving this because you were mentioned.Message ID: @.***>

mjparra commented 1 year ago

When I check the third stream,that it must be zero, I found, that it appear a very small negative number for mass flow, and -infinite for molar flow, then it is impossible to calculate heat load:

Master Property Table Object 16 15 14 Temperature 577 577 577 C Pressure 204.75 204.75 204.75 kPa Mass Flow -3.35E-16 1.51069 1.51069 kg/h Molar Flow #¿NOMBRE? 0.157284 0.0852586 kmol/h Volumetric Flow 0 1.51E-20 2.94432 m3/h Molecular Weight (Mixture) 0 9.60482 17.7189 kg/kmol Specific Enthalpy (Mixture) 0 0 1520.04 kJ/kg Molar Flow (Mixture) / Nitrogen NaN 0.00035446 0.00062562 kmol/h Molar Flow (Mixture) / Hydrogen NaN 0.105696 0 kmol/h Molar Flow (Mixture) / Water NaN 0 0.019428 kmol/h Molar Flow (Mixture) / Carbon monoxide NaN 0.0359574 0 kmol/h Molar Flow (Mixture) / Carbon dioxide NaN 0.00079934 0.00141083 kmol/h Molar Flow (Mixture) / Methane NaN 0.0135867 0.0598689 kmol/h Molar Flow (Mixture) / Ethane NaN 0.00084879 0.00374016 kmol/h Molar Flow (Mixture) / Propane NaN 4.20E-05 0.00018513 kmol/h Energy Flow 0 -1493.59 -2153.09 W

Martha Parra

On Thu, Jan 26, 2023 at 7:40 AM Martha Parra @.***> wrote:

I already post my question in sourceforge, according to a suggestion I received. But I attach the file here, this is a file that shows only the part with the problem.

I appreciate ;your help.

Martha Parra

On Thu, Jan 26, 2023 at 7:18 AM Daniel Wagner < @.***> wrote:

@mjparra you can zip the simulation file and drag it here to attach. —Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you were mentioned.Message ID:

DuckDuckGo removed 1 tracker. More →

https://duckduckgo.com/-ZZupGyJDzZxz15sQRaFF_29mpJtURIoqRY2QpSg0btMj6t4jrIUp_-SD2FKsoLHblKrZ6yP1dIlX72Bo52RdE0KCDBtEuO6LdcNHL2A_w8A7HGsPfn063J3F-CQc8kqobwJHSZ5VQWM1K-AZKKxhe-PkZVG28JHz0VCzd0BLKYAYZ1v4ZX-qeJMbg5V3q9dLE_dC4GW8yI0DOc61HPTh37Fsb33PGZbmSPCWVMAN6glxAAe52GIuabm8heoffCiPCYD0UtoLyJtNsZpjtj4zRxsiDQ

@mjparra https://github.com/mjparra you can zip the simulation file and drag it here to attach.

— Reply to this email directly, view it on GitHub https://github.com/DanWBR/dwsim/issues/418#issuecomment-1404922571, or unsubscribe https://github.com/notifications/unsubscribe-auth/A5O3KBCQZZMPYJVSTQKGWXDWUJTSDANCNFSM6AAAAAAUGVTT3Y . You are receiving this because you were mentioned.Message ID: @.***>

DanWBR commented 1 year ago

@mjparra I've already fixed the issue, it was an error in the overall mass balance. https://github.com/DanWBR/dwsim/commit/aac6d31c1222d20e0dccfae7521fe231c019d3c7

it will work in the next update/version.

mjparra commented 1 year ago

I appreciate your dedication to solve the issue. When can we get an update on this topic?

Thanks a lot,

Martha Parra

On Thu, Jan 26, 2023 at 3:04 PM Daniel Wagner < @.***> wrote:

@mjparra I've already fixed the issue, it was an error in the overall mass balance. aac6d31 it will work in the next update/version. —Reply to this email directly, view it on GitHub, or unsubscribe.Yo DuckDuckGo removed 1 tracker. More →

https://duckduckgo.com/-ZVOVn5ABVs17aTl3vQlRFFr0_2ZGuklFpKhS1AhZikLjNj2i7j3CWpjyTz6ILcUKGrtNqZq9PlJPl3j1DoZ2TtY1ISTIsEGE675YN3z0AvYzDLzDsfbg16fD3VmMT8Ihr4TKXhKFFJBsHYnK-FFaOlkjRVs5k2ha_vPz0bCzdwLLWkIQZ1uUyeetdPOLOZi7LUvG415AksELcRzy4Vwrkj4SGyv01g978NUcCd6SCrjZ_kIcwEEutphLWi5vofoHH8pjAiC9lPYC8mZTrOaYrc_M0YZIAw

@mjparra https://github.com/mjparra I've already fixed the issue, it was an error in the overall mass balance. aac6d31 https://github.com/DanWBR/dwsim/commit/aac6d31c1222d20e0dccfae7521fe231c019d3c7

it will work in the next update/version.

— Reply to this email directly, view it on GitHub https://github.com/DanWBR/dwsim/issues/418#issuecomment-1405583063, or unsubscribe https://github.com/notifications/unsubscribe-auth/A5O3KBBESOISY3RUBBIBUA3WULKGRANCNFSM6AAAAAAUGVTT3Y . You are receiving this because you were mentioned.Message ID: @.***>