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!
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!
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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!
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!