Is there any way ?
I am using DWSIM v8.8.2 and Automation3().
I am DWSIM v8.8.2 and Automation3().
Hello everybody, I am trying to solve a flowsheet by using an external python script. I created a base-flowsheet structure with internal Scrpits and a Spreadsheet. My goal ist to use this flowsheet as base for multiple case-studies. So far everything works fine except from the spreadsheet. After running the calculation and saving the Flowsheet to a new file-path the Spreadsheet is completely empty. This is how I run and save my Flowsheet: errors = self.manager.CalculateFlowsheet4(self.current_flowsheet)...
It is because adjustment of the split ratio requieres calculation of the whole flowsheet again. I also tried to use the same script after calculating the last Stream, so before the solver finished, but the same problems occured. Maybe you know another way expect from using an external python-script for DWSIM-Automation. This would have been my next try. However, it worked the way you described in your previous post with one small adjustment: import clr clr.AddReference("DWSIM.GlobalSettings") from...
Hello Daniel, thank you for your reply. Unfotunately both methods didn't work for me. I tried "Flowsheet.RequestFlowsheetCalculation(None, True)" as well as "Flowsheet.RequestCalculationAndWait()". Both times I get the error "Traceback (most recent call last)". When using "Flowsheet.RequestCalculation2(True)" and "Flowsheet.RequestCalculation3(None, True)" Warning is again "Dynamic Mode is currently enabled" and "The calculator is busy, please wait..." and nothing happens.
Hello everybody, I am trying to use a DWSim-internal Python Script to adjust a splitter Unit-Operation. The calculation is running without any problems, but after calculating a new split-ratio and setting it to the splitter I can't solve/run the flowsheet again. By using "Flowsheet.RequestCalculation(None, False)" the warnings "Dynamic Mode is currently enabled" and "The calculator is busy, please wait..." occure, but nothing happens. By using "Flowsheet.SolveFlowsheet2()" I get the error "Traceback...