Synoptic exercises

Synoptic exercises#

Exercise 1#

You have been provided with an experimental pressure/volume isotherm for SF6 at 298 K in the form of a csv file.

a) Read in the experimental data using numpy and plot the isotherm using matplotlib.

b) Assuming ideality, the isotherm should be well modelled by the ideal gas law:

\[p = \frac{RT}{v},\]

where \(p\) is the pressure, \(v\) is the molar volume (\(V / n\)), \(R\) is the gas constant and \(T\) is the temperature.

Write a function to calculate the pressure with the ideal gas law and use this to model the SF\(_{6}\) isotherm between \(v=6.87 \times 10^{-4}\) m3 mol−1 and \(v = 4.47 \times 10^{-3}\) m3 mol−1. Plot your modelled isotherm against the experimental data.

c) Non-ideality due to intermolecular interactions and other factors can be accounted for (in part) by the Van der Waals equation of state:

\[p = \frac{RT}{v - b} - \frac{a}{v^{2}},\]

where \(p\) is the pressure, \(R\) is the gas constant, \(v\) is the molar volume and \(a\) and \(b\) are system dependent constants that describe the strength of the interactions and excluded volume effects respectively.

Write a function to calculate the pressure with the Van der Waals equation and use this to model the SF\(_{6}\) isotherm, with \(a=7.857 \times 10^{-1}\) m6 Pa mol−2 and \(b=8.79 \times 10^{-5}\) m3 mol−1 between \(v=6.87 \times 10^{-4}\) m3 mol−1 and \(v = 4.47 \times 10^{-3}\) m3 mol−1. Plot your modelled isotherm and compare this against the idealised curve and the experimental data.

Exercise 2#

The mean activity of ions in solution can be measured experimentally. You have been provided with the mean activity of Na\(_{2}\)SO\(_{4}\) at \(298\,\)K for a range of ionic strengths: activity.dat

a) Use matplotlib to render a scatter plot of the mean activity as a function of the ionic strength \(I\).

b) The mean activity can be predicted by the Debye-Huckel limiting law:

\[\ln\gamma_{\pm} = -|z_{+}z_{-}|A\sqrt{I},\]

where \(z_{+}\) and \(z_{-}\) are the charges of the cations and anions, \(I\) is the ionic strength and \(A\) is a solvent and temperature dependent constant.

Write a function to calculate the mean activity according to the Debye-Huckel limiting law. Using \(A = 1.179\,\)M\(^{\frac{1}{2}}\), plot the Debye-Huckel mean activity from \(I = 0\,\)M to \(I = 6\,\)M and compare this with the experimental values.

c) There are several extensions of the Debye-Huckel limiting law that aim to improve its description of the mean activity outside of the dilute limit. One such extension is:

\[\ln\gamma_{\pm} = -|z_{+}z_{-}|\frac{A\sqrt{I}}{1 + Ba_{0}\sqrt{I}},\]

where \(B\) is another solvent and temperature dependent constant and \(a_{0}\) is the distance of closest approach (expected to be proportional to the closest distance between ions in solution).

Write a function to calculate the mean activity according to the extended Debye-Huckel limiting law.

Using \(B = 18.3\) and \(a_{0} = 0.071\), plot the extended Debye-Huckel mean activity from \(I = 0\,\)M to \(I = 6\,\)M and compare this with the experimental values and the original Debye-Huckel limiting law.