The piston has 300x the mass of a single particle and the acceleration of gravity has been set to -2.0 for better visualization. This page contains two Physlets that are able to share data using the common superclass or all Physlets, SApplet. The ensemble in the MolecularPiston Physlet acts as a data source. The DataGraph acts as a data listener. In this simulation, the ensemble delivers the state variables volume, V, and temperature, T, to the graph.
Volume is shown in red and temperature is shown in green.