dx/dt = (u-x) / T1
dy/dt = (x-y) / T2
u = mu (s - y)
The initial conditions are: x = 1 ; y = 0 at t=0 This represents a process consisting of two lags in series, with its out put y regulated at setpoint s with a proportional controller with gain mu.
You can copy the model here generate a spreadsheet from it.
Notice the form of the simple proportional controller equation. If we wanted to model a P+I controller this would require a further differential equation to model the integral action.
We can write the equations for a P+I controller with input measurement y and output u as follows:
e = s - y ; ! error u = mu * (e + ei/ti) ! controller algebraic equation .ei = e ! o.d.e. for integral actionHere mu is the controller gain and ti is the integral action time.
The modified program is here. Save it and try it out.
Click here to go to the model generator.
Next - Section 4.5.2: Modelling a Vaporiser
Return to Case Study Index
Return to Section 4 Index