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.
Learn it. Test it. Explore it.
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.
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.
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.
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.