This simulation shows animations and calculates work for reversible and irreversible expansions and compressions (adiabatic or isothermal) of an ideal diatomic gas in a piston-cylinder system. Select either compression or expansion using the drop-down menus, and compare two processes side-by-side. Change the final pressure with the slider; the pressure ranges are different for compression and expansion. The grey square blocks represent weights on the piston. Each block represents 0.10 MPa pressure; zero blocks represents 0.10 MPa pressure (atmospheric pressure). For adiabatic processes, the final temperature is calculated. For all processes, the final volume is calculated. Press the play button to start compression or expansion. For reversible processes, more weights (grey squares) are added to the piston for compression or removed for expansion. For irreversible processes, the external pressure Pext is constant at the final value, so the number of weights is fixed, and initially stops (red triangles) prevent the piston from moving until the play button is pressed. Animations of reversible processes represent slow processes; irreversible processes are much faster and the piston overshoots the final volume, but these behaviors are not shown in the animations.
This simulation was created in the Department of Chemical and Biological Engineering, at University of Colorado Boulder for LearnChemE.com by Neil Hendren and Rachael L. Baumann under the direction of Professor John L. Falconer, with additional contributions by Derek M. Machalek, Nathan S. Nelson and Garrison J. Vigil. Address any questions or comments to learncheme@gmail.com. All of our simulations are open source, and are available on our LearnChemE Github repository.
Is your screen too small to fit this application? Try zooming-out on the web page (CTRL+"-" and CTRL+"=" on Windows, or ⌘+"-" and ⌘+"=" on Mac), then refreshing the page. This application is not compatible with Internet Explorer or web browsers that do not support WebGL and HTML5. Recommended browsers are the latest versions of: Chrome, Safari, Firefox, Edge, and Opera.