I have simple scripts which worked well in DWSIM version 6.1 update 8, but which now throw an error in version 8.6.5.
In particular, any call to Flowsheet.SolveFlowsheet2() but also Flowsheet.RequestCalculation() or even xx.Calculate() throw the following error:
Thanks a lot for the prompt response.
Flowsheet.RequestCalculation2(True) did not solve it, however I noticed the problem is solved in the latest version 8.6.6.
Best
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi,
I have simple scripts which worked well in DWSIM version 6.1 update 8, but which now throw an error in version 8.6.5.
In particular, any call to Flowsheet.SolveFlowsheet2() but also Flowsheet.RequestCalculation() or even xx.Calculate() throw the following error:
**Error Error running script '': Traceback (most recent call last): **
without additional context or details.
I'm using it with the following headers:
*import clr
clr.AddReference('DWSIM.Interfaces')
import System
from System import
import sys
clr.AddReference('System.Core')
clr.ImportExtensions(System.Linq)
from DWSIM import Interfaces
from DWSIM.Thermodynamics import
Flowsheet.SolveFlowsheet2()*
Is there any library or path that needs to be updated in version 8.6.5 compared to version 6.1?
Thank you!
David
Try one of these new calls:
For IronPython I suggest using
Flowsheet.RequestCalculation2(True)
so it waits for the flowsheet to solve in order to proceed to the next command.
Last edit: Daniel Medeiros 2023-11-28
Daniel,
Thanks a lot for the prompt response.
Flowsheet.RequestCalculation2(True) did not solve it, however I noticed the problem is solved in the latest version 8.6.6.
Best