MechSimulator

Stirling Engine Simulator

Alpha, beta & gamma engines in 3D and 2D — live P–V and T–s diagrams, Schmidt & ideal adiabatic analysis, regenerator & efficiency — Simulate • Explore • Practice • Quiz

Mode
Units
Display Controls
Engine
Graph

1 Engine
2 Thermodynamics
Analysis model
Working gas
3 Heat exchangers & dead volume
Σ Live working — from the engine on screen
User Guide — Stirling Engine Simulator
1 Overview

The simulator shows a Stirling engine on the left and its thermodynamics on the right. The engine and the graphs come from the same calculation: every piston and displacer is placed by the volume equations the analysis uses, and the gas in each space is coloured by its model temperature, from blue (cold) to orange (hot).

On a computer it opens on the 3D engine; on a phone it opens on the 2D section. Switch with the 3D | 2D buttons under the engine.

2 Getting Started
  1. Pick a preset (the teaching alpha engine, the GM GPU-3, the Philips MP1002CA, a hobby gamma, a hand-warm LTD engine or the ST05G-CNC) or choose Alpha, Beta or Gamma.
  2. Press Explain the cycle. The engine stops in each of the four processes and a caption says what the gas is doing; the live point on the P–V diagram shows where you are.
  3. Change the heater temperature, the regenerator effectiveness or the phase angle and watch the loop and the efficiency respond.
3 The Graphs
  • P–V — pressure against total gas volume. The shaded area is the net work per cycle. The dashed loop is the ideal Stirling cycle between the same smallest and largest volumes. Hot & cold spaces splits it into the expansion-space loop (positive work) and the compression-space loop (negative work).
  • T–s — mean gas temperature against entropy, with the ideal cycle’s isotherms and isochores.
  • Volumes and p, T vs θ — the motion and the pressure and temperatures through one revolution.
  • Energy — cumulative heater heat, cooler heat and work; at 360° Qin − Qout = W.
  • Models — the same engine through the ideal cycle, Schmidt and ideal adiabatic analyses.
  • η map — efficiency against heater temperature for each model and the Carnot limit.
4 The Three Models

Ideal cycle: two isothermal and two constant-volume processes (Çengel & Boles). With a perfect regenerator its efficiency is Carnot. Schmidt: the working spaces move sinusoidally and stay at Th and Tk; dead volume lowers the pressure swing. Ideal adiabatic (Urieli & Berchowitz): the working spaces exchange no heat, so their gas swings in temperature and the efficiency falls below Carnot even with a perfect regenerator. Real engines lose more again to flow friction and heat-transfer temperature drops; the Beale number estimates that.

5 Controls

Drag a slider or type a value. Temperatures are absolute (K in SI, °F in Imperial). The phase angle α is how far the hot volume leads the cold one. Dead volume is the gas in the heater, regenerator and cooler that never sweeps. Speed only changes how fast the engine is drawn: the analysis always uses the engine speed you set. Drag the 2D engine, or the flywheel in 3D, to turn the crank by hand; the arrow keys step it by 5°.

6 Explore, Practice & Quiz

Explore has concept cards with formulas and worked examples. Practice generates numerical problems (efficiency, work, regenerator heat, Schmidt pressure, Beale power) in SI or Imperial, with a step-by-step solution. Quiz asks eight multiple-choice questions and explains each answer.

7 Calculations, Export & Tips

Σ Calculations shows every step for the engine on screen in all three models. CSV saves one cycle (volumes, pressure, temperatures, entropy, heat and work every 2°). PNG saves the engine and the graph. Right-click the canvas for the same options. Tip: set ε = 1 and the Schmidt model to see the efficiency equal Carnot exactly, then lower ε or switch to Adiabatic to see where real efficiency goes.

Stirling Engine — How It Works, the Stirling Cycle and Its Efficiency

A Stirling engine is a closed-cycle, regenerative heat engine. A fixed mass of gas — air, helium or hydrogen — is sealed inside and never exhausted. Heat reaches the gas through the wall of a heater, so the source can be a flame, concentrated sunlight, a radioisotope or the warmth of your hand. This Stirling engine simulator lets you watch the gas move between the hot and cold ends in 3D or in section, while the P–V and T–s diagrams beside it are drawn from a Schmidt or ideal adiabatic analysis of the same engine.

How Does a Stirling Engine Work, Step by Step?

The engine has five gas spaces in series: the expansion space (hot), the heater, the regenerator, the cooler and the compression space (cold). A displacer (in beta and gamma engines) or the hot piston (in alpha engines) moves the gas between the ends; the power piston changes the total volume and delivers work to the crank.

  1. Compression (1→2). Most of the gas is in the cold space. The power piston compresses it, and the cooler removes the heat of compression so the gas stays near Tk. Cold gas is easy to compress.
  2. Transfer to the hot end (2→3). At nearly constant total volume the gas is pushed through the regenerator, which hands back the heat it stored on the previous cycle. The pressure rises.
  3. Expansion (3→4), the power stroke. Most of the gas is now hot and at high pressure. It expands and pushes the piston out while the heater supplies heat at Th.
  4. Transfer to the cold end (4→1). The gas flows back through the regenerator, leaving its heat in the matrix, and the pressure falls.

Because the gas is hot while it expands and cold while it is compressed, the pressure during expansion is higher than during compression at the same volume, so the expansion work exceeds the compression work. Press Explain the cycle in the simulator to stop in each process.

The Stirling Cycle P–V and T–s Diagrams

The ideal Stirling cycle is two isothermal processes joined by two constant-volume processes. On the P–V diagram it is two hyperbolas (pV = const at Th and at Tk) joined by two vertical lines; on the T–s diagram it is two horizontal lines joined by two constant-volume curves. The enclosed area is the net work per cycle on the first and the net heat on the second.

A real engine never traces those corners: its pistons move smoothly, so the P–V loop is an oval. The simulator draws both — the Schmidt or adiabatic loop shaded, with the ideal cycle dashed between the same Vmin, Vmax and gas mass — which is exactly the “realistic vs ideal P–V diagram” comparison students are often asked to explain.

ProcessTypeHeatWork
1→2 CompressionIsothermal at TkRejected: mRTk ln rDone on the gas: mRTk ln r
2→3 HeatingConstant volumeIn from the regenerator: mcv(Th − Tk)0
3→4 ExpansionIsothermal at ThAdded by the heater: mRTh ln rDone by the gas: mRTh ln r
4→1 CoolingConstant volumeOut to the regenerator: mcv(Th − Tk)0

r = Vmax/Vmin is the compression ratio. Net work W = mR(Th − Tk) ln r.

Stirling Cycle Efficiency Formula and the Carnot Limit

With a perfect regenerator, the heat of process 4→1 is stored and returned in 2→3, so the only external heat input is mRTh ln r and

η = W / Qin = 1 − Tk/Th

— the Carnot efficiency. Between 900 K and 300 K that is 66.7 %. So a Stirling engine is not a Carnot engine, but the ideal Stirling cycle reaches the same efficiency, and for the same pressure range it does far more work per cycle, because its constant-volume processes enclose more area than Carnot’s thin isentropic sliver.

If the regenerator has effectiveness ε < 1, the heater must also supply (1 − ε) of the regenerator heat:

η = R ln r (Th − Tk) / [ R Th ln r + (1 − ε) cv (Th − Tk) ]

For air (R = 287, cv = 718 J/(kg·K)) with r = 2 between 900 K and 300 K: ε = 0.8 gives 45.0 %, and with no regenerator at all only 19.6 %. That is why Robert Stirling’s 1816 “economiser” — the regenerator — is the heart of the engine.

Schmidt Analysis and the Ideal Adiabatic Model

Schmidt analysis (Gustav Schmidt, 1871) is the classic closed-form model. The working spaces move sinusoidally and are held at Th and Tk; the heater, cooler and regenerator are dead volumes, the regenerator at the log-mean temperature Tr = (Th − Tk)/ln(Th/Tk). The pressure at every crank angle is

p(θ) = mR / ( Vc/Tk + Vk/Tk + Vr/Tr + Vh/Th + Ve/Th )

and the work is ∮p dVe + ∮p dVc. Dead volume reduces the work per cycle but, because every process is still isothermal, not the efficiency, which stays at Carnot with a perfect regenerator.

The ideal adiabatic model of Urieli and Berchowitz (1984) makes the working spaces adiabatic, which is closer to a real engine running at speed. Heat now enters only in the heater and leaves only in the cooler, the gas in the working spaces swings in temperature, and the efficiency falls below Carnot even with a perfect regenerator. The simulator integrates these equations with a fourth-order Runge–Kutta method over crank angle until the cycle converges, and checks that Qh − |Qk| = W.

GM GPU-3, helium, 4.13 MPa, 41.7 Hz, 977 K / 288 KWork per cyclePowerEfficiency
Carnot limit——70.5 %
Schmidt (this simulator; Urieli & Berchowitz: 162.2 J, 1.136 g)162 J6.8 kW70.5 %
Ideal adiabatic (this simulator)186 J7.8 kW62.9 %
Measured indicated (GM test data)—3.96 kW35 %

The gap between the ideal adiabatic result and the measured engine is flow friction, heat-exchanger temperature drops, leakage and conduction — effects no ideal model includes. The Beale number captures them empirically: shaft power P ≈ 0.15 × pmean × f × Vswept for engines with a hot end above about 500 °C.

Alpha, Beta and Gamma Stirling Engines

TypeLayoutStrengthsWeaknesses
AlphaTwo pistons in two cylinders (hot and cold), one crank, about 90° apartSimple to analyse; high power density; double-acting multi-cylinder versionsThe hot piston needs a seal at high temperature
BetaDisplacer and power piston in one cylinderHighest compression ratio; the displacer needs no tight sealCoaxial linkage (rhombic drive in the GPU-3) is complex
GammaDisplacer and power piston in separate cylindersEasy to build; the usual layout for models and low temperature difference enginesThe connecting passage adds dead volume, so the compression ratio is low

The best phase angle is near 90°. For the teaching engine in the simulator the Schmidt work is 87.6 J per cycle at 90°, but only 45.1 J at 30° and 42.7 J at 150°: too small a phase and the gas is not shuttled to the hot end before it expands; too large and it expands and is compressed at almost the same temperature.

Why Helium and Hydrogen? Low Temperature Difference Engines

High-power engines run on pressurised helium or hydrogen because their high thermal conductivity and low viscosity cut the heat-transfer and flow losses in the heat exchangers. Those losses are outside the ideal models, so in the simulator air can even show a slightly higher adiabatic efficiency than helium: a monatomic gas (γ = 1.67) swings more in temperature in an adiabatic space. A low temperature difference (LTD) engine, the kind that runs on a cup of coffee or a warm hand, works with only 10–20 K across it; its Carnot limit is a few percent, so it uses a large, flat displacer to move a lot of gas for a tiny power-piston stroke.

Where Stirling Engines Are Used, and Why Not More Widely

Stirling engines power the Swedish Gotland-class submarines (air-independent propulsion), solar dish generators, micro combined heat and power units, and NASA’s radioisotope power research; run in reverse, the Stirling cycle is the basis of cryocoolers for infrared sensors. They are not common in cars because heat must pass through walls, so the heat exchangers are large and expensive; they respond slowly to changes in power demand; and high-power designs need high-pressure helium or hydrogen and good seals.

Who Uses This Simulator?

Undergraduate thermodynamics students studying gas power cycles (Çengel & Boles, Chapter 9), A-level physics students working on p–V diagrams and heat engines, engineering instructors who want the Stirling cycle animated beside its diagrams in class, and anyone designing a model engine who wants a quick Schmidt estimate of its work and power.

Frequently Asked Questions

How does a Stirling engine work step by step?

A fixed mass of gas is shuttled between a hot space and a cold space. It is compressed while mostly cold, pushed through the regenerator to the hot end, expanded while mostly hot (the power stroke) and pushed back through the regenerator to the cold end. Hot expansion does more work than cold compression needs.

What is the efficiency of a Stirling cycle?

With a perfect regenerator, the Carnot efficiency 1 − Tk/Th. With regenerator effectiveness ε, η = R ln r (Th − Tk) / [R Th ln r + (1 − ε) cv(Th − Tk)].

Is a Stirling engine a Carnot engine?

No, but the ideal Stirling cycle with a perfect regenerator has the same efficiency as a Carnot cycle between the same temperatures, and much more work per cycle. Real engines reach about half of it: the GPU-3 was measured at 35 % against a 70.5 % Carnot limit.

What are the three types of Stirling engine?

Alpha (two pistons in two cylinders), beta (displacer and power piston in one cylinder) and gamma (displacer and power piston in separate cylinders).

How do you calculate the power of a Stirling engine?

P = W f, the P–V loop area times the frequency. Schmidt or ideal adiabatic analysis gives W; the Beale number, P ≈ 0.15 pmean f Vswept, estimates real shaft power.

Why are Stirling engines not widely used?

Large, costly heat exchangers, slow response to load changes, the need for high-pressure helium or hydrogen and good seals, and lower power per unit weight and cost than internal-combustion engines.

Explore Related Simulators

Updated