Here we simulate collisions between particles moving in one dimension.

Aims:
	1) to observe equipartition in the case of just two
		masses
	2) multiple masses, see the gaussian distribution on velocity
	3) have walls attached to springs and see "pressure",
		and try to understand how the wall temperature
		is imposed on the bulk gas.

	4) send pressure waves through.

--------

Notice oscillations in energy
in the 13-mass system (choice 12)

predict their frequency:

If the rough idea is adiabatic volume change:
pV^gamma = const       gamma = 5/3 for 3-d gas. -> 3/1 here?
at T, pV = NkT, and p = (1/3)N m c^2 = E??

log p = - g log V
dp / p = - g dV / V
dp/dV  = - g p/V
	= -g N kT / V^2

here, dp/dV is a spring constant. We double it to allow for
the two sides. (kT) is about mv^2 = 6.6^2 = 44. We predict oscillation
frequency
	w^2 = |(dp/dV)|/m_wall
		= g N_tot (kT) / ( V^2 * 16 )
		= 3 * 12 * 44 / ( 25 * 16 ) 
	= 4
 period = pi

this agrees with the pictures!

Inaccuracy in this calculation might be that
this ignores the mass of the air bulk that comoves with the
piston, so its m is a little bigger effectively.



