← All tools
DIYFORGE TOOLBOX · PHYSICS & ENGINEERING

Thermodynamics Simulator

Put an ideal gas through a thermodynamic process. Change its starting conditions, expand or compress it, and explore how pressure, volume, temperature, heat and work are connected.

PV = nRTΔU = Q − WW = ∫ P dV
PISTON-CYLINDER · LIVE ANIMATION

Isothermal process

LIVE MODEL
Ready · initial statePlay the process to see the piston move, gas particles respond and the vessel fail if its strength limit is exceeded.
Live state
Final state

Final thermodynamic state

ENERGY TRANSFER

Heat, work & internal energy

P–V DIAGRAM

Pressure–volume path

01 · FIRST LAW

Energy is conserved

The first law connects heat, work and internal energy. With this simulator's sign convention, heat entering the gas is positive and work done by the gas is positive.

ΔU = Q − W
02 · FOUR PROCESSES

Different paths, different energy transfers

Isothermal means constant temperature; isobaric means constant pressure; isochoric means constant volume; adiabatic means no heat transfer. Each constraint creates a different path on the pressure–volume diagram.

PV = nRT

Model assumptions and limitations

This is a closed-system, quasi-static ideal-gas model. It assumes uniform equilibrium states, constant heat capacities, no phase changes, no chemical reactions, no friction, no kinetic or gravitational energy changes, and no heat loss except where heat transfer is explicitly calculated. The adiabatic process is reversible and follows PVᵞ = constant. Real gases, liquefaction, condensation, turbulence, finite-rate processes and heat-transfer hardware are not simulated. The optional vessel-failure display uses a thin-wall cylinder estimate, σₕ ≈ Pr/t, and compares it with a representative tensile-strength limit. It is a visual teaching approximation: it does not model crack growth, welds, defects, fatigue, plastic deformation, fragment trajectories or post-rupture depressurisation. The animation stops at the failure event and its fragments are illustrative, not a hazard prediction.

For the diatomic model, γ = 1.40 and molar heat capacities are approximated as constant. For the monatomic model, γ = 5/3. These are useful idealisations, not a detailed model of a particular gas across all temperatures.

Ideal-gas thermodynamics · Educational simulation, not an industrial process-design tool.