PistonCylinder: Examples

Basic Layout | Example 1 | Example 2 | Example 3


Basic layout

When the Piston Cylinder application is started, it should look something like this.

The left side of the display, referred to as the "Control Panel", contains controls that allow the user to interact with the simulation.

The first item on the "Control Panel" is the "Control Box", which contains buttons that :

  1. Start and stop the simulation (start button)
  2. Restart the simulation from its initial state (reinitialize button)
  3. Reset averages by discarding any previous contributions (reset button)
  4. Hold or release the piston, permitting the simulation to run at fixed pressure or fixed density (piston button)

The bottom of the "Control Panel" contains simulation start-up settings displayed in tabbed page format. On the "State" tab, the simulation can be set as adiabatic or isothermal (heat transfer buttons), and the initial temperature can be changed via the temperature slider. The initial pressure is set with the pressure slider (NOTE : The pressure cannot be changed until the piston is released by pushing the piston button). The number of molecules in the system is set with the molecules slider. On the "Potential" tab, the intermolecular potential can be selected from one of the selections on the intermolecular potential menu. The intermolecular potential defines how the molecules interact.

The middle section of the display is referred to as the "Grahpics Panel". The "Graphics Panel"contains a visualization of the simulation and data plots displayed in a tabbed page format. The "Configuration" tab contains the piston-cylinder graphic (as shown on the picture above) which shows the atoms as filled circles, and the piston-cylinder as the walls surrounding them. The piston-cylinder slider just to the right of the piston-cylinder graphic permits the user to shrink the size of the picture so that more of the apparatus can be seen. This is useful in situations where the piston rises above the top of the current viewing area. The "Plots" tab presents the system density (density graph), temperature (temperature graph) and pressure (pressure graph) in a graphical format (as shown on the picture below). For the temperature and pressure, both measured and target values are displayed. The target values are those set by the sliders on the "Control Panel". The measured temperature is derived from the total kinetic energy of the atoms, which when averaged appropriately should equal the thermodynamic temperature. Fluctuations in the kinetic energy lead to fluctuation in the target temperature. Likewise, the measured pressure is derived from the forces of collision of the atoms with the piston surface. It too is a fluctuating quantity. You might notice that the magnitude of the fluctuations in temperature and pressure diminish as you select larger numbers of molecules in the simulated system.

On the far right is the "Data Display Panel"

The current and average temperature (temperature boxes), density (density boxes) and pressure (pressure boxes) (average using data taken since the beginning of the simulation, or since the last time the reset button was pressed) are displayed on the "Data Display Panel".


Basic Layout | Example 1 | Example 2 | Example 3