Skip to main content
Physics

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. 1

    Preview

    • Driving question
    • What you will predict
    • Equipment and safety
  2. 2

    Lab

    • Lock in prediction
    • Run the experiment, measure and replay
    • Your notebook fills in as you go
  3. 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 height y_0 = 2.00 cm, travel 10.0 cm), air can and tubing (V_0 = 200 cm^3, total start V_a = 216.6 cm^3), selectable load masses (100 g and 200 g), cold bath (20 °C), selectable hot bath (20, 50, or 80 °C), 2 Hz pressure (0.01 kPa) and height (0.01 cm) sensors, and live PV loop area integrator (5x time-lapse).
  • Safety note (for physical lab prep): When running a classroom heat engine with 80 °C water, handle the hot bath with insulated tongs, keep glass piston walls clean and dry, and avoid dropping brass weights onto the platform.
  1. Open the bench in Ideal mode with the air can in the 20 °C cold bath, 200 g mass selected, and hot bath set to 80 °C.
  2. Record the starting corner a (P ≈ 101.33 kPa, y = 2.00 cm, V = 216.6 cm^3).
  3. Place the 200 g mass on the platform (a -> b), observe the brief adiabatic compression spike and 60 s thermal settling at P_H = 103.69 kPa, and record corner b.
  4. Transfer the can to the 80 °C hot bath (b -> c) and wait for thermal settling; watch the piston lift the 200 g mass by Delta y = 5.22 cm at constant pressure 103.69 kPa, and record corner c.
  5. Remove the 200 g mass off at the top (c -> d), wait for pressure to drop back to 101.33 kPa and temperature to settle, and record corner d.
  6. Return the can to the 20 °C cold bath (d -> a) to close the clockwise PV loop; record W_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%).
  7. Repeat a full cycle at T_H = 50 °C with 200 g (Delta y = 2.61 cm, W_loop = 48.3 mJ) and with 100 g at 80 °C (Delta y = 5.28 cm, W_loop = 51.1 mJ) to separate the effects of Delta P and Delta T.
  8. Run a null control with T_H = 20 °C (no temperature difference) to confirm zero net lift and zero net work.
  9. Switch to Real mode, run a full 200 g, 80 °C cycle, and inspect how pressure-driven seal leakage prevents the loop from closing exactly at V_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).

TrialIndependent Variable (Load Mass & Hot Bath T_H)Dependent Variable (Delta y, W_loop, m g Delta y, Q_H, eta vs. eta_Carnot)UnitsObservation
Ref 1100 g (P_H = 102.51 kPa), T_H = 50 °CDelta 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 2100 g (P_H = 102.51 kPa), T_H = 80 °CDelta 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 3200 g (P_H = 103.69 kPa), T_H = 50 °CDelta 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 4200 g (P_H = 103.69 kPa), T_H = 80 °CDelta 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 TrialRecord m, T_C, T_H, modeRecord Delta y, W_loop, m g Delta y, Q_H, eta, eta_Carnotcm, mJ, J, %Compare W_loop / (m g Delta y) and eta / eta_Carnot

Lab report outline (blank template)

  1. Title: State the thermodynamic cycle comparison tested (e.g., effect of load mass and bath temperature on PV work and heat-engine efficiency).
  2. Purpose: Define how PV loop integration and mass-lift measurements test the first and second laws of thermodynamics.
  3. Hypothesis: Predict how doubling load mass or hot-bath Delta T changes Delta y, W_loop, Q_H, and eta.
  4. Variables: List load mass and hot-bath temperature (independent); P, V, Delta y, W_loop, Q_H, and eta (dependent); cold bath and mode (controlled).
  5. Data Table: Record m (g), T_C and T_H (°C), corner P (kPa) and V (cm^3), Delta y (cm), W_loop (mJ), m g Delta y (mJ), Q_H (J), and eta (%).
  6. Analysis & Calculation: Compare W_loop with m g Delta y, verify Q_H = 2.5 Delta(PV) + W_by along the hot legs, and compute eta_Carnot = 1 - T_C / T_H in kelvin.
  7. 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.

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.