Skip to content

Commit

Permalink
Update controller type arg name (IDAES#175)
Browse files Browse the repository at this point in the history
  • Loading branch information
John Eslick authored Feb 23, 2023
1 parent 84cc6ce commit 3be7311
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Examples/DAE/pid.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ def create_model(
m.fs.tank = Heater(has_holdup=True, material_balance_type=MaterialBalanceType.componentTotal, property_package=m.fs.prop_water)
m.fs.valve_2 = Valve(dynamic=False, has_holdup=False, pressure_flow_callback=_valve_pressure_flow_cb, material_balance_type=MaterialBalanceType.componentTotal, property_package=m.fs.prop_water)
# Add a controller
m.fs.ctrl = PIDController(process_var=m.fs.tank.control_volume.properties_out[:].pressure, manipulated_var=m.fs.valve_1.valve_opening, calculate_initial_integral=calc_integ, mv_bound_type=ControllerMVBoundType.SMOOTH_BOUND, type=ControllerType.PI)
m.fs.ctrl = PIDController(process_var=m.fs.tank.control_volume.properties_out[:].pressure, manipulated_var=m.fs.valve_1.valve_opening, calculate_initial_integral=calc_integ, mv_bound_type=ControllerMVBoundType.SMOOTH_BOUND, controller_type=ControllerType.PI)
# The control volume block doesn't assume the two phases are in equilibrium
# by default, so I'll make that assumption here, I don't actually expect
# liquid to form but who knows. The phase_fraction in the control volume is
Expand Down

0 comments on commit 3be7311

Please sign in to comment.