|
|
ODE: material balance |
|
|
specify feed flow F1 as function of time |
|
|
outflow - pressure drop equation |
| k - (0.2) = 0 | specify pipe flow constant |
|
|
valve characteristic equation |
| kv,max - (1.0) = 0 | specify fully-open valve flow constant |
|
|
valve opening as function of controller output |
| y - K e = 0 | proportional controller algorithm |
|
|
controller error definition |
| K - (1.2) = 0 | specify proportional gain |
| Fs - (2) = 0 | specify flow set point |
| Frange - (5) = 0 | specify flow range |
Constants in brackets could equally well take other values, or indeed some could be specified functions of time (e.g. Fs, perhaps K).
is a `multiple choice' function:
if
-50 < y < +50
if y > +50
if y < -50
This ensures that
,
the fractional valve opening, is always in the range 0 to 1.
There are 1 differential and 11 algebraic equations. 6 of the algebraic equations are simple specifications (constant or function of time):
F1, k, kv,max, K, Fs, Frange.
There are 12 variables (`in order of appearance'):
| M | tank holdup |
| F1 | feed flow |
| F2 | outlet flow |
| k | pipe flow constant |
| kv | valve characteristic |
| valve open fraction | |
| kv,max | valve flow constant (fully open) |
| y | controller output |
| K | controller proportional gain |
| e | controller error signal |
| Fs | flow set point |
| Frange | flow range for controller |
y1(0) = 1, y2(0) = 1These are NOT initial conditions for the y variables, because they do not satisfy both the AEs. Applying Newton we get
| y1 | 1.0000 | 1.2000 | 1.2710 | 1.2720 | = y1(0) |
| y2 | 1.0000 | 0.8000 | 0.7860 | 0.7862 | = y2(0) |
| x | 1.0000 | 0.9921 |
| y1 | 1.2720 | 1.2578 |
| y2 | 0.7862 | 0.7825 |
Course Organiser Last modified: Wed Aug 5 16:30:59 BST