Assignment
Table 1 contains solubility of oxygen, nitrogen and hydrogen in water at a range of temperatures. Create a Graphical User Interface (GUI) for accessing and plotting the data within this table. The GUI should be created using MATLAB's GUI Development Environment (GUIDE). In addition to the capability of producing the solubility plots along, the GUI should have at least several other features:
1. Provide a checkbox to give the user an ability to draw a straight line at a desired temperature in order to estimate the solubility of the selected gas at the given temperature.
2. Provide a checkbox to give the user an ability to draw a straight line at a desired solubility in order to estimate the temperature at which the given solubility will be achieved.
3. Two push buttons for zooming in or out.
4. Four push buttons for panning the view left, right, up or down.
Figure 1 represents a screenshot of an example GUI that would satisfy these basic requirements. However, the GUI design is a creative process, with plenty of scope for additional functionality. Implementing the basic functionality will result in an average grade, while additional marks will be awarded for novelty and innovation.
Table 1: Solubility of oxygen, nitrogen and hydrogen in water at 1 bar (adapted from N. I. Kolev, Solubility of O2, N2, H2 and CO2 in water, in Multiphase Flow Dynamics 4, N. I. Kolev ed., 2012, Springer, Berlin)
Solubility of O2, N2 and H2 in mg per kg of water
|
T [K]
|
O2
|
N2
|
H2
|
273.15
|
69.93
|
29.14
|
1.92
|
283.15
|
54.34
|
23.06
|
1.75
|
293.15
|
44.33
|
19.22
|
1.62
|
303.15
|
37.32
|
16.62
|
1.52
|
313.15
|
33.03
|
14.63
|
1.46
|
323.15
|
29.89
|
13.52
|
1.44
|
333.15
|
27.89
|
12.65
|
1.43
|
343.15
|
26.17
|
12.15
|
1.43
|
353.15
|
25.17
|
11.90
|
1.43
|
363.15
|
24.60
|
11.78
|
1.43
|
373.15
|
24.60
|
11.78
|
1.43
|