Thermodynamics Simulation: Heat Engine PV Cycles
Heat a gas under a piston and lift a mass. Trace the cycle on a P–V graph.
In a closed gas-piston heat engine, net mechanical work per cycle equals the area enclosed by the clockwise PV loop (W_net = integral P dV) and matches the gravitational work m g Delta y lifting a mass, yet thermal efficiency W_net / Q_H remains far below the Carnot limit 1 - T_C / T_H. This 3D thermodynamics simulation lets students cycle air between cold and hot water baths, trace live PV loops, and compute first-law heat intake.
- 11 languages
- Laptop · tablet · phone
- Members
Create a free account to get 2 lifetime Free Lab Passes for any labs in the library. The course guide on this page stays free.

Inside this lab
- 1
Preview
- Driving question
- What you will predict
- Equipment and safety
- 2
Lab
- Lock in prediction
- Run the experiment, measure and replay
- Your notebook fills in as you go
- 3
Check
- Did the lab agree with you?
- Claim, evidence, reasoning
- Check questions and a printable lab report
First law of thermodynamics, PV loop work, and the Carnot efficiency formula
A real heat engine converts part of absorbed thermal energy Q_H into mechanical work W while exhausting the remainder Q_C to a cold reservoir. Tracking every step of this counterweighted air-piston engine on a pressure-volume diagram connects the first law of thermodynamics (Delta U = Q - W_by, with Delta U = 2.5 Delta(P V) for diatomic air) directly to the clockwise loop area W_loop = oint P dV and the lifted weight's potential gain m g Delta y. Even in Ideal mode, the engine's actual efficiency eta = W_loop / Q_H stays well below the Carnot efficiency formula eta_Carnot = 1 - T_C / T_H (kelvin).
Apparatus, safety notes, and step-by-step procedure
- Apparatus: Counterweighted glass cylinder and low-friction piston (
diameter = 3.25 cm,A = 8.296 cm^2, initial heighty_0 = 2.00 cm, travel10.0 cm), air can and tubing (V_0 = 200 cm^3, total startV_a = 216.6 cm^3), selectable load masses (100 gand200 g), cold bath (20 °C), selectable hot bath (20,50, or80 °C), 2 Hz pressure (0.01 kPa) and height (0.01 cm) sensors, and live PV loop area integrator (5xtime-lapse). - Safety note (for physical lab prep): When running a classroom heat engine with
80 °Cwater, handle the hot bath with insulated tongs, keep glass piston walls clean and dry, and avoid dropping brass weights onto the platform.
- Open the bench in Ideal mode with the air can in the
20 °Ccold bath,200 gmass selected, and hot bath set to80 °C. - Record the starting corner
a(P ≈ 101.33 kPa,y = 2.00 cm,V = 216.6 cm^3). - Place the
200 gmass on the platform (a -> b), observe the brief adiabatic compression spike and 60 s thermal settling atP_H = 103.69 kPa, and record cornerb. - Transfer the can to the
80 °Chot bath (b -> c) and wait for thermal settling; watch the piston lift the200 gmass byDelta y = 5.22 cmat constant pressure103.69 kPa, and record cornerc. - Remove the
200 gmass off at the top (c -> d), wait for pressure to drop back to101.33 kPaand temperature to settle, and record cornerd. - Return the can to the
20 °Ccold bath (d -> a) to close the clockwise PV loop; recordW_loop(99.9 mJ),m g Delta y(102.4 mJ),Q_H(16.33 J), actual efficiency (0.61%), and Carnot limit (16.99%). - Repeat a full cycle at
T_H = 50 °Cwith200 g(Delta y = 2.61 cm,W_loop = 48.3 mJ) and with100 gat80 °C(Delta y = 5.28 cm,W_loop = 51.1 mJ) to separate the effects ofDelta PandDelta T. - Run a null control with
T_H = 20 °C(no temperature difference) to confirm zero net lift and zero net work. - Switch to Real mode, run a full
200 g,80 °Ccycle, and inspect how pressure-driven seal leakage prevents the loop from closing exactly atV_a.
Recording table and model reference data
Model reference data — run your own trials in the 3D lab. Values below reflect Ideal settled cycles (
PHY-017-v0.3.1,T_C = 20.0 °C = 293.15 K,P_L = 101.33 kPa,g = 9.80 m/s^2).
| Trial | Independent Variable (Load Mass & Hot Bath T_H) | Dependent Variable (Delta y, W_loop, m g Delta y, Q_H, eta vs. eta_Carnot) | Units | Observation |
|---|---|---|---|---|
| Ref 1 | 100 g (P_H = 102.51 kPa), T_H = 50 °C | Delta y = 2.64, W_loop = 25.1, mgy = 25.9, Q_H = 8.14, eta = 0.31% (9.28% Carnot) | cm, mJ, mJ, J, % | Baseline small Delta P and Delta T loop |
| Ref 2 | 100 g (P_H = 102.51 kPa), T_H = 80 °C | Delta y = 5.28, W_loop = 51.1, mgy = 51.8, Q_H = 16.03, eta = 0.32% (16.99% Carnot) | cm, mJ, mJ, J, % | Doubling Delta T doubles piston lift and enclosed work |
| Ref 3 | 200 g (P_H = 103.69 kPa), T_H = 50 °C | Delta y = 2.61, W_loop = 48.3, mgy = 51.2, Q_H = 8.42, eta = 0.57% (9.28% Carnot) | cm, mJ, mJ, J, % | Doubling mass doubles Delta P and lifts efficiency to 0.57% |
| Ref 4 | 200 g (P_H = 103.69 kPa), T_H = 80 °C | Delta y = 5.22, W_loop = 99.9, mgy = 102.4, Q_H = 16.33, eta = 0.61% (16.99% Carnot) | cm, mJ, mJ, J, % | Largest PV loop area; W_loop matches m g Delta y within ~2.5% |
| Your Trial | Record m, T_C, T_H, mode | Record Delta y, W_loop, m g Delta y, Q_H, eta, eta_Carnot | cm, mJ, J, % | Compare W_loop / (m g Delta y) and eta / eta_Carnot |
Lab report outline (blank template)
- Title: State the thermodynamic cycle comparison tested (e.g., effect of load mass and bath temperature on PV work and heat-engine efficiency).
- Purpose: Define how PV loop integration and mass-lift measurements test the first and second laws of thermodynamics.
- Hypothesis: Predict how doubling load mass or hot-bath
Delta TchangesDelta y,W_loop,Q_H, andeta. - Variables: List load mass and hot-bath temperature (independent);
P,V,Delta y,W_loop,Q_H, andeta(dependent); cold bath and mode (controlled). - Data Table: Record
m (g),T_CandT_H (°C), cornerP (kPa)andV (cm^3),Delta y (cm),W_loop (mJ),m g Delta y (mJ),Q_H (J), andeta (%). - Analysis & Calculation: Compare
W_loopwithm g Delta y, verifyQ_H = 2.5 Delta(PV) + W_byalong the hot legs, and computeeta_Carnot = 1 - T_C / T_Hin kelvin. - Conclusion & Sources of Error: Explain why real cycles operate far below Carnot efficiency and analyze how Real-mode seal leakage, bath temperature variation, and sensor noise affect loop closure.
Related thermodynamics and energy labs
Explore pressure-volume-temperature laws in Gas Laws, measure specific heat transfer in Calorimetry & Thermal Equilibrium, compare mechanical-to-electrical conversion in Generators & Efficiency, or browse all Physics Simulations.
Common questions
How does the area inside a PV diagram relate to the lifted mass work m g Delta y?
Because the gas lifts the load mass across the high-pressure heating leg while expanding and is lowered at atmospheric pressure after the mass is removed, the enclosed clockwise PV loop area closely equals the mechanical work m g Delta y done on the mass.
What is the Carnot efficiency formula and why is this heat engine far below it?
The Carnot efficiency formula is eta_Carnot = 1 - T_C / T_H using kelvin temperatures (for 20 °C and 80 °C, 1 - 293.15 / 353.15 = 17.0%). The real piston cycle runs with irreversible finite-temperature heat transfer and small pressure ratios, yielding under 1% thermal efficiency.
How does the first law of thermodynamics determine heat absorbed Q_H in this cycle?
Along the hot-bath legs, the first law Q = Delta U + W_by combines internal energy change Delta U = (5/2) Delta(P V) for diatomic air with expansion work W_by = integral P dV to give total heat intake Q_H.
Why does raising the hot-water bath from 50 °C to 80 °C increase lifted height?
By Charles's law at constant load pressure, gas volume scales with absolute temperature T, so doubling the temperature jump Delta T from 30 K to 60 K doubles the piston lift Delta y and roughly doubles net work.
Why must you wait for the 60 s temperature observation time before switching legs?
After each load change (which causes a brief adiabatic temperature jump) or bath transfer, the air relaxes thermally toward the bath temperature; waiting lets the gas reach each PV corner cleanly.
How does Real mode differ from Ideal mode in this thermodynamics simulation?
Real mode introduces small pressure-sensor offset and noise, bath temperature drift, and slow seal air leakage proportional to gauge pressure, which shifts successive PV loops slightly downward in volume.


