Editing reactor throws exception
Simulate chemical processes using advanced thermodynamic models
Brought to you by:
danwbr
After creating a flowsheet with 4 components (N2, NO, NO2, O2) and adding an equilibrium reactor, a nonsensical exception "Sequence contains no elements" is thrown whenever one attempts to Edit/View the reactor by right-clicking it in the flowsheet.
This occurs 100% of the time in the attached file.
It seems that you've removed the default reaction set from the simulation, which you shouldn't be able to as it breaks the simulation. I'll prevent this from happening in a future update.
Actually you cannot remove the default reaction set, please tell me how to reproduce this as I wasn't able to do it here.
Please reopen this. The attached file still throws an exception when opened. Even if the UI isn't suppoed to allow you to remove the default reaction set, it still happens, and moreover people exchange files like the attached. DWSIM should validate its input rather than throwing exceptions.
You didn't describe what you've done, so I could not reproduce this issue here. Here's the fixed file, I just had to add a property package.
I agree with the validation issue, and I'm really sorry about that. It is hard to validate every single input in DWSIM.