🌡️

Thermodynamics

From heat conduction and convection to Carnot engines and phase transitions — explore the fundamental laws governing energy and entropy through interactive models.

10+ simulations Canvas 2D · WebGL Heat · Gas · Entropy

Category Simulations

Each simulation runs fully in the browser — no server, no installation

🔥
★★☆ Moderate Popular
Heat Conduction
Watch temperature diffuse across a 2-D plate solved by finite differences. Draw hot and cold regions with your mouse, set boundary conditions, and measure steady-state isotherms in real time.
Heat Equation Finite Differences Canvas 2D
💨
★☆☆ Easy
Ideal Gas & Maxwell–Boltzmann
A box of elastic hard-sphere molecules. Adjust temperature and volume; the live histogram of molecular speeds converges to the Maxwell–Boltzmann distribution. Observe Boyle's and Charles's laws directly.
Kinetic Theory Maxwell-Boltzmann PVT
⚙️
★★☆ Moderate New
Carnot Engine Cycle
Step through isothermal expansion, adiabatic expansion, isothermal compression and adiabatic compression. The P–V diagram traces in real time; compare your engine's efficiency to the Carnot limit.
Carnot Cycle PV Diagram Entropy
🌊
★★☆ Moderate New
Convection Cells
Rayleigh–Bénard convection arises when a fluid layer is heated from below: buoyancy drives rising plumes while cool fluid sinks. Adjust the Rayleigh number and track beautiful roll-cell patterns.
Rayleigh-Bénard Navier-Stokes Buoyancy
❄️
★★☆ Moderate Popular
Crystallisation & Phase Change
Cellular automaton model of crystal growth: nuclei form and dendrites propagate under a diffusion-limited aggregation mechanism. Tune temperature gradient and supersaturation to control crystal morphology.
Crystallisation DLA Phase Transition
🔥
★★★ Advanced New
Fire & Combustion
GPU particle system simulating turbulent combustion. Fuel cells ignite neighbours when above activation temperature; hot gases rise via simulated buoyancy. Watch flame fronts propagate and extinguish.
Particles Combustion WebGL
💧
★★★ Advanced New
Diffusion & Osmosis
Fick's laws of diffusion on a 2-D membrane: solute molecules spread from high to low concentration. Add a semi-permeable barrier to model osmosis and the van't Hoff osmotic pressure equation.
Fick's Laws Diffusion Canvas 2D
♨️
★★☆ Moderate New
Steam & Condensation
Particle simulation of water vapour cooling and condensing. Nucleation sites seed droplet growth; adjust pressure to control dew point. Mirrors cloud formation and industrial condensers.
Condensation Nucleation Particles
⚛️
★★★ Advanced
Molecular Dynamics
Lennard-Jones potential between N atoms. Watch temperature drive phase transitions: solid lattice → liquid → gas. Measure pressure, kinetic energy and radial distribution function live.
Lennard-Jones N-Body Canvas 2D
🧲
★★★ Advanced
Ising Model
2D Ising ferromagnet on a lattice: Metropolis Monte Carlo flips spins based on ΔE and temperature. Near the Curie point watch spontaneous magnetisation vanish — a second-order phase transition.
Monte Carlo Phase Transition WebGL
🔥
★★☆ Moderate
Heat Conduction
Solve the 2D heat equation in real time with FTCS finite differences. Paint hot and cold sources on a grid and watch thermal energy diffuse.
Heat Equation FTCS Canvas 2D
⚙️
★★☆ Moderate New
Carnot Cycle
Animate the four stages of the Carnot heat engine on a live P-V diagram. Adjust hot and cold reservoir temperatures and verify the theoretical efficiency η = 1 − Tc/Th.
PV Diagram Heat Engine Canvas 2D
🔵
★★☆ Moderate New
Lennard-Jones Molecular Dynamics
Simulate 2D molecular dynamics with the Lennard-Jones potential. Watch gas, liquid, and solid phases emerge spontaneously. Apply the Andersen thermostat and observe phase transitions in real time.
Molecular Dynamics Phase Transition Canvas 2D
🌡️
★★☆ Moderate New
Maxwell-Boltzmann Distribution
Elastic hard-sphere molecules in a box. Watch the live speed histogram converge to the theoretical Maxwell-Boltzmann curve as you change temperature and particle mass.
Kinetic Theory Statistical Mechanics Canvas 2D
🌊
★★★ Advanced New
Bénard Convection
2D incompressible flow with Boussinesq buoyancy. Watch hexagonal convection rolls form as heated fluid rises and cool fluid sinks in a thin layer.
Navier-Stokes Convection Canvas 2D
🔄
★★☆ Moderate New
Stirling Engine
Animate the four stages of the Stirling cycle on a live P-V diagram. Explore how the regenerator enables Carnot efficiency at η = 1 − Tc/Th.
PV Diagram Regenerator Canvas 2D
♨️
★★☆ Moderate New
Steam & Condensation
Particle simulation of water vapour rising, cooling and condensing via Clausius-Clapeyron. Dew point from Magnus formula, adiabatic lapse rate, and cloud base height zLCL.
Clausius-Clapeyron Dew Point Canvas 2D
🧱
★★☆ Moderate New
Urban Heat Island
Paint a city grid with asphalt, concrete, grass, water and trees. Watch the real-time temperature heatmap reveal the urban heat island effect — cities can be 5–12 °C hotter than green areas.
Heat Equation Urban Heat Island Canvas 2D
🌡️
★★☆ Moderate New
Blackbody Radiation
Explore Planck's law spectrum from 500 to 30 000 K. Watch Wien's peak shift from infrared through visible light to ultraviolet as you dial the temperature of stars from red dwarfs to blue giants.
Planck's Law Wien's Law Spectrum
💨
New ★★☆ Moderate
Maxwell-Boltzmann Distribution
Simulate elastic hard-sphere gas molecules and watch the real-time speed distribution histogram match the Maxwell-Boltzmann theoretical curve. Adjust temperature and molecular mass.
Kinetic Theory Ideal Gas Statistical Mechanics

Related Articles

Theory and mathematics behind thermodynamic simulations

About Thermodynamics Simulations

Heat, entropy, phase transitions, and statistical mechanics — explored

Thermodynamics simulations connect the macroscopic behaviour of matter — temperature, pressure, entropy — to the microscopic motion of individual particles. Ideal gas simulations place hundreds of elastic hard spheres in a box and compute temperature from kinetic energy, verifying the Maxwell–Boltzmann velocity distribution in real time. The Ising model simulates ferromagnetic phase transitions with local spin flips, producing spontaneous magnetisation below the Curie temperature.

Heat conduction, diffusion, and phase-change simulations model the partial differential equations of thermodynamics on a finite-difference grid. By adjusting particle density, temperature, or external field strength you directly observe first- and second-law behaviour: entropy increasing toward equilibrium, energy spreading from hot to cold, and order parameters changing at phase boundaries. These are the same computational methods used in materials science and thermal engineering.

Thermodynamics is the science of energy, entropy, and the direction of spontaneous change. Its four laws govern every heat engine, refrigerator, chemical reaction, and living cell. Statistical mechanics — connecting microscopic particle dynamics to macroscopic thermodynamic quantities — is one of the great intellectual achievements of the 19th century, developed by Boltzmann, Gibbs, and Maxwell. These simulations make the statistical origin of thermodynamic laws directly observable.

All Categories

Key Concepts

Topics and algorithms you'll explore in this category

Ideal Gas LawPV = nRT and kinetic theory of gases
Carnot CycleMaximum efficiency η = 1 − Tc/Th
Heat ConductionFourier's law: q = −k∇T and finite-difference
Maxwell-BoltzmannSpeed distribution function for gas molecules
Entropy & Second LawIrreversible processes and entropy production
Phase TransitionsIsing model, critical temperature, and order parameter

🌡️ Test Your Thermodynamics Knowledge

5 questions — entropy, Carnot, and kinetic theory

Frequently Asked Questions

Common questions about this simulation category

What thermodynamics topics are simulated?
Ideal gas kinetic theory (Maxwell-Boltzmann distribution), Carnot engine PV cycle, heat conduction (Fourier law FDM), entropy in irreversible mixing, Ising model phase transition, and convective heat transfer.
How does the Maxwell-Boltzmann simulation work?
Hundreds of gas-molecule discs bounce elastically in a box. Their speed distribution is measured live and compared to the theoretical Maxwell-Boltzmann curve, showing how temperature controls the distribution width.
What does the Ising model show?
The 2D Ising model simulates magnetic spins on a grid that prefer to align with neighbours. Below the critical temperature Tc (Curie point), spontaneous magnetisation appears — a phase transition from disorder to order.