You will write functions for solubility and for Henry's law. One reads a solubility from a table of measured values. One finds the crystals when a saturated solution cools. One finds how much gas dissolves. The last finds a Henry's law constant from a measurement.
The idea. Between two measured temperatures, the solubility is found by a straight line. Crystals are the fall in solubility, scaled to the mass of water. For a gas, .
Your tasks.
solubility_at(temp) with np.interp.crystals(water_g, hot, cold) for a solution that is saturated at hot and cooled to cold.dissolved_mmol(pressure_bar, k_h_kbar) for the millimoles of gas in 1 kg of water.henry_constant(pressure_bar, mmol), which returns the constant in kbar.Have you tried it?
Do the tasks in the editor first, and run the checker after each one. Its hints help when a check fails. When you are ready, compare your code with this solution.
Log in to join the discussion.
Loading…