Menu

How to set distillation column's specs from python script

Sam T.
2020-07-01
2020-07-01
  • Sam T.

    Sam T. - 2020-07-01

    Hi,
    I was wondering if there was a way to set a distillation column's reflux ratio from within the script and then solve the flowsheet. I've tried with column.RefluxRatio = x, but then after I solve the flowsheet wihth Flowsheet.RequestCalculation(), the reflux ratio changes back to whatever was last put in the UI. Is there a different way to adjust the reflux ratio spec for the column? I've attached the simulation for reference. Any help would be appreciated!

     
  • Sam T.

    Sam T. - 2020-07-01

    Update: I think I figured it out - Looks like setting column.RefluxRatio = x is not sufficient to change the variable, but using column.SetPropertyValue("Condenser_Specification_Value", x) works!

     
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.