This Demonstration calculates the number of moles at equilibrium for a gas-phase reaction
at constant temperature; the equilibrium constant for the reaction is
are ideal gases, and you can set the value of
(1/2, 1, 3/2, or 2) with buttons. Initially the container is filled with 5 mol of reactant
, and equilibrium is obtained at either constant pressure (set pressure with a slider) or constant volume (set volume with a slider). The bar graph displays the number of moles at equilibrium, including the moles of inert gas (select the moles of inert with a slider). The height of the piston or container is proportional to the final volume.