Computer Science 106: MATLAB
HW 2, due 2/5
Build a table
The ideal gas law is
pV = nRT
R = 8.31446 J/mol K for pressure in Pascals, volume in cubic meters, T Kelvin, n
moles. (1 atm = 101325 Pa = 101.325 Bar, 1 Pa = 1 N/m
2
) (try the calculation for
standard temperature and pressure: 101325 Pa (1 atm) and 273 K for 1 mole and
find that the volume is .0224 m
3
or 22.4 liters)
If one takes into account, the finite size of molecules instead of treating molecules as
points, and the van der Waals attraction between neutral molecules, one derives the
van der Waals gas equation:
(p+ a n
2
/V
2
) (V‐ nb) = nRT
You can find tables of van der Walls constants for a number of small molecules at
http://en.wikipedia.org/wiki/Van_der_Waals_constants_%28data_page%29
These constants, a and b assume units of liters, bar = 100 000 Pa (a bit less than 1
atm), K and moles; R is 8.31446 x 10
‐2
in these units.
Solve the van der Waals and ideal gas equations for p. For both, compute p for n = 1
This is the end of the preview.
Sign up
to
access the rest of the document.
 Spring '13
 P.Dobosh
 van der Waals

Click to edit the document details