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
300 stars 96 forks source link

[Bug] sensitivity study starts with 2nd item of independent variable in version 8.8.2 #681

Closed CorinnaBusse closed 2 weeks ago

CorinnaBusse commented 1 month ago

Since the update the sensititivy study is buggy as it shows the second item of the iteration and twice the last one image image

ddathayde commented 3 weeks ago

Hi!

I'm having the same issue with version 8.8.2. It seems like the column showing the independent value is mistakenly starting with the second value and the last value is repeating twice at the end, whereas the column showing the dependent value is correct.

I have a simple simulation file where I'm teaching the Haber-Bosh synthesis of ammonia. In the sensitivity analysis, the pressure of the reactor is changed from 260 bar to 280 bar to check how it influences the conversion of the reactor for ammonia synthesis. The outcomes are as follows:

image

DanWBR commented 2 weeks ago

@ddathayde @CorinnaBusse please attach a sample flowsheet

CorinnaBusse commented 2 weeks ago

Here is an example flowsheet SO2_GGW.zip

DanWBR commented 2 weeks ago

@CorinnaBusse thanks for the flowsheet, I was able to fix the issue:

image

CorinnaBusse commented 2 weeks ago

Perfect looking forward to the next release :)