Menu

Problem in executing a simulation with a reactor using external python IDE

2022-02-10
2022-02-28
  • Shachi Shanbhag

    Shachi Shanbhag - 2022-02-10

    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.

     
  • Shachi Shanbhag

    Shachi Shanbhag - 2022-02-28

    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.

     

Log in to post a comment.