You will write functions for the vapour above a mixture of two ideal liquids and for the molar mass of a solute that does not evaporate. Pressures are in kPa.
The idea. , then and . For a non-volatile solute, .
Your tasks.
partial_pressure(x, pure) so that it returns Raoult's law for one liquid.total_pressure(x_a, pure_a, pure_b) so that it adds the partial pressures of A and of B.vapour_fraction(x_a, pure_a, pure_b) so that it returns the mole fraction of A in the vapour.molar_mass(p_pure, p_solution, mass_solute, mass_solvent, molar_solvent) so that it returns the molar mass of the solute in g/mol.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…