Carnot Cycle Simulator Back
Thermodynamics

Carnot Cycle Simulator

Adjust hot and cold reservoir temperatures to calculate Carnot efficiency, and visualize P-V and T-S diagrams in real time. Understand how the four isothermal and adiabatic processes interact.

Parameters

η = 50.0%
Carnot Engine Animation — Piston & Cycle Traversal
Isothermal expansion 1→2 η = 50.0% T_H 600 K T_C 300 K Q_H 2000 J Q_C 1000 J W 1000 J ΔS 3.33 J/K

The piston traverses the four strokes in real time. Red = heat in from the hot reservoir (Q_H), blue = heat out to the cold reservoir (Q_C), grey = adiabatic (no heat exchange). Gas color/density shows temperature and volume, and a marker tracks the current point on the P-V and T-S diagrams in sync.

Results
Carnot efficiency η
50.0%
Work W
1000 J
Rejected Heat Q_C
1000 J
Entropy change ΔS
3.33 J/K
P-V Diagram
T-S Diagram
Efficiency Comparison
Pv

Red: isothermal expansion (1→2), orange: adiabatic expansion (2→3), blue: isothermal compression (3→4), green: adiabatic compression (4→1).

🎓
Yes, that is the striking part of Carnot's theorem. Whatever the working fluid is, the upper efficiency limit is determined only by temperature. This insight later led to the concept of entropy and became a mathematical foundation of the second law of thermodynamics.
🙋
Then why can't real engines approach Carnot efficiency?
Theory & Key Formulas

$\eta = 1 - \dfrac{T_C}{T_H}$
$W = Q_H \cdot \eta$
$Q_C = Q_H - W$
$\Delta S = \dfrac{Q_H}{T_H} = \dfrac{Q_C}{T_C}$
🎓
There are three main reasons. First, friction converts useful energy into heat. Second, real engines operate at finite speed, while perfect isothermal processes would require infinitely slow heat transfer. Third, heat leaks from hot regions to the surroundings. That is why gasoline engines are often around 30% efficient and even high-efficiency power plants remain well below the Carnot limit.
🙋
It's interesting that the T-S diagram forms a rectangle. It's completely different from the curves in the P-V diagram.
🎓
On a T-S diagram, the area directly represents work, $W = \int T\,dS$. Isothermal processes are horizontal lines at constant T, and adiabatic processes are vertical lines at constant entropy, so the Carnot cycle becomes a rectangle. The same area-based thinking helps compare Otto and Rankine cycles too.

Frequently Asked Questions

Considering the heat resistance of the working fluid and material limits, a practical guideline for the high-temperature heat source is approximately 300 to 1500 K. If the low-temperature heat source is not set above room temperature (about 300 K), the P-V diagram and T-S diagram may not be drawn correctly. Although the simulator can perform calculations even with extreme values, please ensure that the high temperature is greater than the low temperature to maintain physical consistency.
If the temperature of the high-temperature heat source is lower than that of the low-temperature heat source, the cycle will not be established and the graphs will not be drawn. First, check that the high temperature is greater than the low temperature. Also, if you move the slider too quickly, the drawing may be delayed, so please wait a moment or reload the page.
The Carnot efficiency is calculated as 1 - (low-temperature heat source temperature)/(high-temperature heat source temperature). It will not reach 100% unless the low-temperature heat source is set to absolute zero (0 K), but in reality, absolute zero is unattainable. Since the simulator also cannot set temperatures below 0 K, the efficiency will always be less than 100%.
On the P-V diagram, the isothermal process appears as a hyperbolic curve, while the adiabatic process is a steeper curve. On the T-S diagram, the isothermal process appears as a horizontal line, and the adiabatic process as a vertical line, making them easy to distinguish at a glance. Pay attention to how the lines of each process change as you move the slider to deepen your understanding.

What is Carnot Cycle?

Carnot Cycle is a fundamental topic in engineering and applied physics. This interactive simulator lets you explore the key behaviors and relationships by directly manipulating parameters and observing real-time results.

By combining numerical computation with visual feedback, the simulator bridges the gap between abstract theory and physical intuition — making it an effective learning tool for students and a rapid-verification tool for practicing engineers.

Physical Model & Key Equations

The simulator is based on the governing equations behind Carnot Cycle Simulator. Understanding these equations is key to interpreting the results correctly.

Each parameter in the equations corresponds to a slider in the control panel. Moving a slider changes the equation's solution in real time, helping you build a direct connection between mathematical expressions and physical behavior.

Carnot Efficiency and the Four Processes

The Carnot cycle consists of two isothermal processes and two adiabatic processes, and is the ideal reversible cycle that achieves the highest possible efficiency for a given temperature range. Its thermal efficiency depends only on the hot reservoir $T_h$ and the cold reservoir $T_c$ (in absolute temperature).

$\eta_{Carnot} = 1 - \dfrac{T_c}{T_h}$

The four processes are (1) isothermal expansion (absorbing heat $q_h$ at $T_h$), (2) adiabatic expansion ($T_h\to T_c$), (3) isothermal compression (releasing heat $q_c$ at $T_c$), and (4) adiabatic compression ($T_c\to T_h$). The larger the temperature difference, the higher the efficiency, and the efficiency never reaches $100\%$ unless $T_c$ is brought to $0$ K.

The Second Law of Thermodynamics and Entropy

The Carnot efficiency gives the upper limit on the efficiency of every heat engine (Carnot's theorem). Real engines are always less efficient than the Carnot value because of irreversibilities (friction, heat transfer across finite temperature differences, turbulence, and so on).

In a reversible Carnot cycle the ratio of heat to temperature for absorption and rejection is equal, so $\dfrac{q_h}{T_h}=\dfrac{q_c}{T_c}$ holds and the entropy change over one cycle is zero. In irreversible processes the entropy increases (the second law of thermodynamics). The Carnot cycle is the starting point for understanding the theoretical limit of efficiency and the concept of entropy.

Real-World Applications

Engineering Design: The concepts behind Carnot Cycle Simulator are applied across mechanical, structural, electrical, and fluid engineering disciplines. This tool provides a quick way to estimate design parameters and sensitivity before committing to full CAE analysis.

Education & Research: Widely used in engineering curricula to connect theory with numerical computation. Also serves as a first-pass validation tool in research settings.

CAE Workflow Integration: Before running finite element (FEM) or computational fluid dynamics (CFD) simulations, engineers use simplified models like this to establish physical scale, identify dominant parameters, and define realistic boundary conditions.

Common Misconceptions and Points of Caution

Model assumptions: The mathematical model used here relies on simplifying assumptions such as linearity, homogeneity, and isotropy. Always verify that your real system satisfies these assumptions before applying results directly to design decisions.

Units and scale: Many calculation errors arise from unit conversion mistakes or order-of-magnitude errors. Pay close attention to the units shown next to each parameter input.

Validating results: Always sanity-check simulator output against physical intuition or hand calculations. If a result seems unexpected, review your input parameters or verify with an independent method.

How to Use

  1. Set the hot reservoir temperature (Th) using the slider or numeric input, ranging from 400–1000 K for typical heat engine applications
  2. Set the cold reservoir temperature (Tc) using the slider or numeric input, typically 280–400 K; ensure Tc is always less than Th
  3. Input the heat absorbed from the hot source (Qh) in kilojoules; the simulator calculates work output, heat rejected, and Carnot efficiency η = 1 – (Tc/Th)
  4. Observe the P-V diagram showing the four reversible processes (two isothermal, two adiabatic) and the T-S diagram displaying entropy changes during the cycle

Worked Example

For a steam turbine cycle with Th = 600 K, Tc = 300 K, and Qh = 500 kJ: Carnot efficiency η = 1 – (300/600) = 0.50 (50%). Work output W = η × Qh = 0.50 × 500 = 250 kJ. Heat rejected to the cold reservoir Qc = Qh – W = 500 – 250 = 250 kJ. The P-V diagram shows isothermal expansion at 600 K followed by adiabatic expansion, then isothermal compression at 300 K and adiabatic compression, forming a closed rectangular loop on the T-S plane.

Practical Notes

  1. Real turbines operate below Carnot efficiency due to irreversibilities; use this simulator as an upper limit benchmark for power plant performance (e.g., coal-fired plants typically achieve 35–45% of Carnot)
  2. Increasing Th or decreasing Tc dramatically improves efficiency; a 100 K increase in hot reservoir temperature with constant Tc = 300 K raises efficiency from 50% to 60% for Th = 600 K to 700 K
  3. The T-S diagram area equals net work; larger rectangles indicate greater energy conversion for the same heat input, aiding optimization of turbine designs