#!/usr/bin/env python # coding: utf-8 # # HW 6 # You can use this document as a template for completing your homework. That is, download this file (link at the top right), and use it to do the problems. You should upload your notebook file to Learning Suite. (Don't put spaces in file names.) # ### Problem 1 # Open and read through a Jupyter notebook. Browse the menus and get familiar with them. Find the keyboard shortcut to run a cell, and the keyboard shortcut to change a cell type to markdown. # # Just state if you did this: yes or no. # **Yes** # ### Problem 2 # # A version of the ideal gas law in terms of density is given by # $$\rho = \frac{MP}{RT},$$ # where $M$ is the mean molecular weight. # # Compute the density of air at 300 K, and 0.85 atmospheres. # Use a single print statement so that your answer looks something like # ```rho = # kg/m3``` where # is replaced with the numerical value. # In[ ]: # ### Problem 3 # # Redo Problem 3 from HW 1 using Python # In[ ]: # ### Problem 4 # The Redlich-Kwong (RK) equation is more accurate than the Ideal Gas Law because it allows for molecular interactions at high pressures. The RK equation of state and the ideal gas law, are, respectively: # $$P_{RK} = \frac{RT}{V-b}-\frac{a}{V(V+b)\sqrt{T}}$$ # $$P_{IG} = \frac{RT}{V}$$ # Here, $V$ is molar volume. Also, # $$a = 0.427 R^2T_c^{2.5}/P_c,$$ # $$b = 0.0866 RT_c/P_c,$$ # $$R = 0.0821\,\,\mbox{liter-atm/K}.$$ # # Code up these equations. Make sure to document your code by including units and variable descriptions. Evaluate $P_{RK}$, and $P_{IG}$ for air for $T=500$ K, $V=5$ L/mol, $P_c=37.2$ atm, and $T_c=132.5$ K. Report the pressures in units of Pa. You should convert the units when declaring a varialbe, like this: # # ```P_c = 37.2 * 101325 # Critical pressure (Pa).``` # # In reporting the pressures, use a print statement so the output looks like: # # ```The RK pressure is #### (Pa)``` # In[ ]: