I am trying to run a simulation with a CSTR directly using Jupyter Notebook. To do this I create an object of the Automation2() class and then use CalculateFlowsheet2 method with my flowsheet as a parameter. However the flowsheet does not get calculated. I tried changing the unit operation from a reactor to a column and used the same commands and got a converged flowsheet. There are no issues in the parameters of the reactor because if i open the DWSIM file and manually press SolveFlowsheet, I get a converged result.
So, the current issue is if a reactor is in the flowsheet, the flowsheet does not calculate.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello,
I am trying to run a simulation with a CSTR directly using Jupyter Notebook. To do this I create an object of the Automation2() class and then use CalculateFlowsheet2 method with my flowsheet as a parameter. However the flowsheet does not get calculated. I tried changing the unit operation from a reactor to a column and used the same commands and got a converged flowsheet. There are no issues in the parameters of the reactor because if i open the DWSIM file and manually press SolveFlowsheet, I get a converged result.
So, the current issue is if a reactor is in the flowsheet, the flowsheet does not calculate.
interf = Automation2()
sim = interf.CreateFlowsheet()
r1 = sim.AddObject(ObjectType.RCT_CSTR, 100, 50, "Reactor")
'I have then added the necessary compounds, material streams, reactions as well as reactor specifications.'
inter.CalculateFlowsheet2(sim).
I receive the following error(image attached).
I do not understand what is wrong.