Education · Thermodynamics

Thermodynamics

From molecular motion in an ideal gas to the Carnot cycle, the Joule–Thomson effect, the entropy of mixing, and Gibbs free energy and phases: five thermodynamics simulators.

Thermodynamics

Thermodynamics

Ideal Gas — Building the Equation of State (PV = nRT) from Molecules in a Box

TD 01

Choose a gas, temperature, pressure, and volume, then press “Run” and the molecules begin flying around in the box. In ①, the pressure calculated solely by summing impulses on the walls, without using nRT/V, nearly matches the ideal-gas value. Even after you press “Make all speeds equal,” collisions alone restore a Maxwell distribution. In ②, choose a fixed wall or a piston and heat the gas. Compare the heat-input and work bars to see that the extra heat needed with the piston corresponds to expansion work (CP−CV=R).

Carnot Cycle — How Heat Produces Work, and the Upper Limit on Efficiency

TD 02

Set the hot and cold reservoir temperatures, working gas, and expansion ratio, then run the cycle. In ①, points travel around two diagrams in step with the piston. The enclosed area of the P–V diagram gives the work per cycle, while the T–S diagram forms a rectangle. In ②, follow the heat and work for each stage in a table and verify that the efficiency η=1− TCTH depends only on the two reservoir temperatures and does not change when the working gas is replaced.

Joule–Thomson Effect — Why Throttling Can Cool a Gas, and How Air Conditioners Work

TD 03

Choose one of eight gases, set its inlet temperature and pressure drop, and pass it through an insulated restriction. In ①, because an ideal gas shows no temperature change, calculate with a van der Waals real gas and confirm that this constant-enthalpy process cools the gas inside the inversion curve on the T–p diagram, while He and H₂ lie outside the curve at room temperature and warm up. In ②, use the same throttling process as an air conditioner's expansion valve, choose among six refrigerants, and examine p–h diagrams and COP values for cooling and heating.

Entropy of Mixing — Why Do Gases Mix Spontaneously When a Partition Is Removed?

TD 04

Place different gases on each side at equal temperature and pressure, then remove the partition. In ①, the entropy obtained by counting the molecules as they mix approaches ΔS=−nRΣxlnx. With identical gases on both sides, only the color-based counting increases, while the thermodynamic ΔS is zero: Gibbs' paradox. In ②, verify that the direction of mixing coincides with the direction in which the Helmholtz free energy F decreases (at constant temperature and volume) or the Gibbs free energy G decreases (at constant temperature and pressure).

Gibbs Free Energy and Phases — Where Do Ice, Water, and Water Vapor Trade Places?

TD 05

Vary the external pressure from 1 Pa to 10 bar. In ①, plot G=H−TS against temperature for ice, water, and water vapor. The crossings where the lowest curve changes determine the melting and boiling points. Below the triple-point pressure, the liquid curve is never the lowest at any temperature, so ice sublimates directly. Follow the competition in which lower H wins at low temperature and larger S wins at high temperature. In ②, collect the crossings at different pressures to construct the phase diagram.