#### Unsteady-State Energy Balances on Tanks: Interactive Simulations

These simulations were prepared using Mathematica. Download the free Wolfram player, and then download the simulation CDF file (link given below or click on figure to download). Try to predict the behavior when a parameter changes before using a slider to change that parameter. Screencasts below explain how to use these simulations.

##### Simulation: Adiabatic Gas Expansion between Two Tanks

In this simulation, one mole of an ideal gas expands when a valve is partly opened (by selecting the play button), from tank A (top) into tank B (bottom), which is initially at vacuum. Both tanks are well insulated. You can change the volume of tank B and the initial pressure of the gas with sliders. This also changes the initial temperature since the volume of tank A and the total number of moles do not change. When the pressure in the two vessels is equal, the valve closes.

1. When an ideal gas expands adiabatically from a tank at 200 kPa into a second empty identical tank until the pressures equalize, which tank has more gas (or do they each contain the same amount of gas)? Why?
2. Is it possible for an ideal gas to expand adiabatically from a tank at 200 kPa into a second empty identical tank until half the gas has left the first tank? Why or why not?
##### Simulation: Adiabatic Evaporation of Water into Vacuum

In this Demonstration, a cylinder fitted with a weightless, frictionless piston initially contains a liquid slightly above its saturation pressure; the volume above the piston is initially under vacuum. You can select the initial mass and temperature of the liquid using the sliders. The final volume is fixed at 1.0 L. Expansion is enabled when the orange stop is removed. The piston then moves to the top of the cylinder as some liquid evaporates. The temperature drops due to evaporative cooling, while the final pressure reaches its saturation value. The liquid volume in the cylinder is exaggerated relative to the vapor volume for better visualization.