MATLAB Beer Blending Help

MATLAB_Beer_Blending is a graphical user interface (GUI) that corresponds to the beer blending model given by

(| u1 ′(t)   = -7u1(t)+2u2(t)+5⋅c
||{    ′       7u1(t)-V7u12(t)
  u2  (t)   = ----V2-----
|| u1(0)    = u10
|(
  u2(0)    = u20

where u1(t) and u2(t) represent the alcohol by volume (ABV) at time, t, of the beer in Tank 1 and Tank 2 respectively. The initial alcohol by volume values are prescribed via u1_0 and u2_0 and must be inputted as decimals. The final parameter c, labeled as ‘ABV’ in the GUI, represents the alcohol by volume content of the beer being pumped in Tank 1. See the text for a complete description of the system.

To use the GUI, you must input the three positive parameters as decimals and the total mixing time.


PIC

Figure 1: MATLAB Beer Blending GUI


Once the inputs have been made, click on the ‘Solve’ button in order to see a plots of the solutions to the models.


PIC

Figure 2: Plot of solutions


Changes to one or all of the parameters can be made by replacing a desired parameter value with another. To reset the GUI, click the ‘Reset’ button.