The Statistical and Thermal Physics website will be unavailable Friday evening through Saturday afternoon as electrical work occurs in the American Center of Physics server room. Down time will begin at 6PM Eastern Time on Friday. Service is expected to resume by 6PM on Saturday, July 30.

Hot and Cold Ideal Gases Documents

This material has 2 associated documents. Select a document title to view a document's information.

Main Document

Hot and Cold Ideal Gases 

written by Todd Timberlake

The EJS Hot and Cold Ideal Gases model simulates the mixing of hot and cold two-dimensional ideal gases in a square box.  This simulation can be used as part of the activity described in "The Statistical Interpretation of Entropy: An Activity" by Todd Timberlake, to be published in The Physics Teacher.

In the model, one gas is initially confined to the left side of the box while the other gas is confined to the right side. An animation window shows the motion of the particles in the box, while an optional graph window plots the temperature of each side of the box, which is determined by measuring the average KE of the particles on each side.  The initial number of particles and temperature on each side of the square can be changed and a button allows the user to reverse the particle velocities at any time.  The user can modify this simulation if EJS is installed locally by right-clicking within the plot and selecting "Open Ejs Model" from the pop-up menu item.

Last Modified June 6, 2014

This file has previous versions.

Source Code Documents

Hot and Cold Ideal Gases Source Code 

The source code zip archive contains an XML representation of the EJS Hot and Cold Ideal Gases Model.   Unzip this archive in your EJS workspace to compile and run this model using EJS.

Published July 7, 2010
Last Modified June 6, 2014

This file has previous versions.