Thermodynamics Fundamentals: Laws, Cycles, and Efficiency
What You'll Learn
- 1Apply the first law to closed systems and steady control volumes with correct sign conventions
- 2Read property state for pure substances and apply the ideal gas law with the correct gas constant
- 3Use the second law, entropy generation, and Carnot efficiency to bound any cycle
- 4Analyse Rankine, Brayton, and vapor-compression cycles and compute net work, heat, and COP
- 5Convert a first-law answer into exergy terms to find where useful work potential is actually destroyed
Thermodynamics is the engineering science of energy conversion: what heat and work are, how they trade, and what no machine can do no matter how well it is built. The first law is bookkeeping, guaranteeing that energy entering a system leaves as work, heat, or stored energy; the second law supplies direction and sets the maximum efficiency of every heat engine and refrigerator. Together they decide how large a power plant must be, how much electricity a chiller will draw, and why a petrol engine cannot convert all of its fuel into motion.
Mechanical engineers reach for these tools constantly: sizing a boiler tube, choosing a turbine pressure ratio, rating a condenser, or defending an efficiency claim in a design review. This lesson builds the laws and the property relations first, then applies them to the two large families of cycles, power cycles that turn heat into shaft work and refrigeration cycles that spend work to move heat the other way, as developed further in Heat Transfer and applied in Internal Combustion Engines.
Systems, State, and the Zeroth Law
A system is the chosen chunk of matter and the boundary around it; everything else is the surroundings. Closed systems exchange energy but not mass, open systems (control volumes) exchange both, and the choice of boundary is the single most important modelling decision because it determines which terms appear in the balance. A state is fixed by measurable properties: for a simple compressible substance, two independent intensive properties fix everything else, which is why a pressure-temperature table or a Mollier chart has enough information to recover enthalpy, entropy, and quality.
The zeroth law states that if system A is in thermal equilibrium with B, and B with C, then A is in equilibrium with C. It sounds trivial but it is what makes temperature a measurable quantity at all, and it justifies the thermometer as a calibrated reference. Thermal equilibrium requires uniform temperature; mechanical equilibrium requires uniform pressure; chemical equilibrium requires uniform composition, and real engineering devices are judged by how close they come to each.
| Term | Definition | Why it matters in design |
|---|---|---|
| Extensive property | Scales with size (mass, energy, volume) | Mass and energy balances are written on totals |
| Intensive property | Independent of size (pressure, temperature, specific volume) | State definition and table lookups |
| Property (state function) | Value depends only on state, not path | Enthalpy and entropy differences need two states only |
| Path function | Depends on the process (heat, work) | Must be integrated along the actual process |
| Equilibrium state | Uniform , , composition with no driving gradient | Defines the endpoints of every cycle analysis |
First Law: Closed Systems and Control Volumes
For a closed system the first law is conservation of energy with every transfer mechanism named explicitly:
The sign convention used throughout this lesson is heat in positive and work out positive; if a value comes out negative, the physical direction is the opposite of the assumed one. Work has many modes (boundary moving against pressure, shaft, electrical, spring), and for a quasi-equilibrium process with a movable piston the boundary work is , which is the area under the process curve on a p-V diagram.
For a control volume at steady state, mass flows in and out and carries energy with it, giving the steady-flow energy equation (SFEE) with enthalpy doing the work of flow work:
Every device in a plant is one simplification of that equation. A nozzle converts enthalpy into kinetic energy with and no shaft work; a turbine produces shaft work from expanding flow; a compressor consumes work to raise pressure; a throttling valve (a porous plug or expansion valve) drops pressure with essentially no work and no heat, so enthalpy stays constant even though entropy rises and useful work potential is destroyed.
| Device | Dominant term | Working assumption | What to watch |
|---|---|---|---|
| Nozzle | Enthalpy into kinetic energy | Adiabatic, no work | Exit velocity and any condensation |
| Diffuser | Kinetic energy into pressure | Adiabatic, no work | Separation losses at high diffusion angle |
| Turbine | Enthalpy drop into shaft work | Isentropic first pass, then efficiency | Exit quality and blade moisture |
| Compressor | Shaft work into enthalpy | Isentropic efficiency 75 to 85 percent | Discharge temperature limits |
| Throttling valve | Nothing changes except pressure | Enthalpy constant, entropy rises | Exergy destroyed, no work recovered |
| Heat exchanger | Enthalpy exchanged between streams | Combined control volume is adiabatic | Approach temperature sets the size |
The sign conventions worth writing on the sheet before any calculation are: heat into the system is positive, work out of the system is positive, and mass entering a control volume carries with it. Kinetic and potential terms may be dropped only after checking magnitudes: a stream at 100 m/s carries 5 kJ/kg of kinetic energy, which is negligible against a steam enthalpy of 3000 kJ/kg but not negligible in a nozzle where the whole point is the velocity.
Worked Example 1: isentropic compression in a closed piston-cylinder
Air of mass 2 kg at , is compressed isentropically to one eighth of its initial volume with and . Find final temperature, final pressure, and the work transfer.
Step 1, temperature: .
Step 2, pressure: .
Step 3, energy balance with and gives .
The negative sign means 559 kJ of work flows into the air, which matches : energy stored, nothing lost. If the same compression had friction in the piston seal, entropy would rise, final temperature would be higher, and more work would be needed for the same pressure ratio.
The closed-system relations are short enough to run directly, including the comparison against the same compression with a real isentropic efficiency:
import math
m, R, gamma = 2.0, 0.287, 1.40 # kg, kJ/(kg K), -
cv = R / (gamma - 1)
cp = gamma * cv
p1, T1, r_v = 100.0, 300.0, 8.0 # kPa, K, volume compression ratio
T2 = T1 * r_v ** (gamma - 1)
p2 = p1 * r_v ** gamma
W_ideal = m * cv * (T2 - T1)
print(f"isentropic: T2 = {T2:.0f} K, p2 = {p2:.0f} kPa, W_in = {W_ideal:.0f} kJ")
# Same pressure ratio at 80 percent isentropic efficiency: more work, higher T2.
eta = 0.80
T2r = T1 + (T2 - T1) / eta
W_real = m * cv * (T2r - T1)
ds = cp * math.log(T2r / T1) - R * math.log(p2 / p1)
print(f"eta = {eta:.2f}: T2 = {T2r:.0f} K, W_in = {W_real:.0f} kJ, "
f"s_gen = {m * ds:.2f} kJ/K")
It returns the worked values of , , and for the ideal path; the real path at 80 percent efficiency draws about and generates roughly of entropy, which is the first-law and second-law view of the same loss appearing side by side.
Properties: Pure Substances and the Ideal Gas
The ideal gas law is accurate when molecules are far apart, which means it works well for air and combustion gases above roughly 100 degrees Celsius at moderate pressure, and fails near saturation where intermolecular forces matter. The gas constant is with universal , so air () gives . Heats are related by and , with air at room temperature giving and .
Water and refrigerants are not ideal gases near their working conditions, so they need tables or an equation of state. In the wet region, quality is the vapour mass fraction and every specific property is a lever rule between saturated liquid and saturated vapour:
A quick property check at 100 kPa (saturation temperature 99.6 degrees Celsius) with : . Above the critical point (374 degrees Celsius, 22.06 MPa for water) there is no distinction between liquid and vapour, which is exactly why supercritical steam cycles can be more efficient: they avoid the constant-temperature boiling plateau and raise the average heat-addition temperature.
Compressed liquid properties are approximated by the saturated liquid value at the given temperature (error below about 1 percent for modest subcooling), and superheated vapour behaves almost like an ideal gas, so and charts can be read at a glance. Choosing the right approximation is most of the practical skill in property work.
- Wet mixture: use quality with the lever rule between saturated liquid and saturated vapour at the given pressure.
- Slightly subcooled liquid: take at the given temperature; pressure barely affects liquid enthalpy.
- Superheated vapour well above saturation: treat as an ideal gas where depends only on temperature for a perfect gas.
- Near the critical point: no approximation holds; use a table, a chart, or a real-gas equation of state.
- Mixtures of gases: work on a molar basis with apparent molar mass, or treat the composition as fixed for combustion products.
A useful sanity check on any property answer is a phase check: if the computed quality lies outside zero to one, or if an ideal gas law answer lands next to the saturation line, the state assumption was wrong before the arithmetic was.
Second Law, Entropy, and the Carnot Limit
The second law forbids several things that the first law allows. Kelvin-Planck states that no device can convert heat from a single reservoir completely into work; Clausius states that heat will not flow spontaneously from cold to hot without external work. Both are the same statement, and both are captured by the Clausius inequality, which for any cycle reads with equality only for a reversible cycle.
That inequality is what defines entropy as a property: for a reversible process , and for any real process
Entropy generation is zero for an ideal reversible process and positive for every real one: friction, unrestrained expansion, finite-temperature heat transfer, mixing, and chemical reaction all generate it. Since the surroundings are unaffected by internal irreversibilities, the total entropy of the universe always increases.
Carnot efficiency follows from these pieces: an engine between two reservoirs cannot beat
with both temperatures absolute. This is also the definition of the absolute scale: a temperature scale is thermodynamic only if efficiency ratios measured on it match the Kelvin scale, which is why Celsius values in an efficiency formula give nonsense.
Worked Example 2: Carnot bound, real engine, and entropy generation
An engine takes 1000 kJ of heat from a 900 K source and rejects to a 300 K sink. (a) Find the maximum possible work. (b) If the real engine converts only 40 percent, find the entropy generated and the exergy destroyed.
Step 1, Carnot efficiency: , so .
Step 2, real engine: and .
Step 3, entropy balance on the engine (steady, so ): .
Step 4, Gouy-Stodola theorem: exergy destroyed , which equals the 667 kJ of available work minus the 400 kJ actually produced.
A refrigerator between those same reservoirs is bounded by , a poor cooler because the temperature lift is enormous, while a domestic cabinet at 253 K rejecting to 303 K gets ; a real unit achieving 2.5 sits at half the Carnot ideal, which is a normal result for a machine with compressors, throttles, and finite-temperature heat exchangers.
Exergy: Locating the Real Losses
The first law says energy is conserved, so it can never tell you which stream was wasted; exergy (availability) measures the work potential of a state relative to the environment, and its destruction ranks irreversibilities. For a flow stream the specific flow exergy is
where the subscript 0 is the dead state, the condition of mechanical, thermal, and chemical equilibrium with the surroundings. The Gouy-Stodola relation ties it back to entropy: anything that generates entropy destroys exergy at the rate of environment temperature times that generation.
Second-law efficiency compares what you got with what was possible. For a heat engine for the same reservoirs; for a turbine it is actual work over isentropic work at the same pressure ratio; for a heat exchanger it is the exergy recovered by the cold stream divided by the exergy lost by the hot stream. A heat exchanger can be 99 percent efficient on the first law while destroying a large share of the exergy if the streams pass at a wide temperature difference, because large driving gradients are precisely what generate entropy. That distinction is developed in Heat Transfer and is why designers fight for small approach temperatures.
The four irreversibilities that dominate real plants are worth memorising: throttling (constant enthalpy, big entropy rise), heat transfer across a finite temperature difference, friction and pressure drop, and mixing of streams at different states. A valve is cheap and destroys exergy; an expansion turbine costs money and recovers work, so large flows with big pressure drops justify the hardware.
Typical second-law performance by equipment tells you where an audit should start:
- Boiler and combustor: first-law efficiency near 99 percent, second-law efficiency often below 50 percent, because fuel is burned at a very high temperature to heat a medium at a much lower one.
- Shell-and-tube heat exchanger: first-law duty fully satisfied, exergy destroyed in proportion to the mean temperature difference between the streams.
- Throttling valve: zero work recovered where an expansion turbine could have produced several percent of the cycle work.
- Mixing and drain flashes: equalising streams at different temperatures or pressures gives away the difference as entropy.
- Heat rejection to the environment: the largest single exergy loss in any heat engine, and unavoidable to the extent the second law demands.
Ranking these numbers is what turns a first-law energy balance into a defensible improvement plan, because a 1 percent heat leak and a 1 percent exergy loss are not the same opportunity.
Power Cycles: Rankine, Brayton, and Combined Cycle
The Rankine cycle is the steam power plant: pump raises liquid pressure, boiler adds heat at constant pressure, turbine expands to produce work, condenser rejects heat. Real improvements all do the same thermodynamic thing, raise the average temperature at which heat is added or lower the temperature at which it is rejected. Superheat raises inlet temperature and dries the turbine exit; reheat avoids wet blades on large expansions; regenerative feedwater heating raises the water toward the boiling point before the boiler so less heat is added at low temperature.
| Rankine improvement | What it changes physically | Typical gain in plant efficiency |
|---|---|---|
| Higher main steam temperature | Raises average heat-addition temperature | 1 to 2 points per 50 K, limited by creep |
| Higher steam pressure | Raises saturation temperature at the boiler | 1 to 2 points, costs moisture at the exit |
| Reheat between turbine stages | Keeps final-stage moisture below about 10 percent | 1 to 3 points with a second expansion |
| Regenerative feedwater heating | Adds heat at successively higher temperatures | 3 to 5 points with several heater stages |
| Supercritical pressure | Removes the constant-temperature boiling plateau | 2 to 4 points over a subcritical design |
| Lower condenser pressure | Lowers average rejection temperature | 1 to 2 points, bounded by cooling water |
Each of those gains costs something else: temperature costs metallurgy and creep life, pressure costs pumping and wall thickness, reheating costs piping and a second turbine casing, and regenerative heating costs heaters, drains, and control complexity. That trade between thermal gain and capital cost is the entire economics of steam plant design.
The Brayton cycle is the gas turbine: compressor, combustor, turbine, exhaust. Its efficiency for cold-air-standard conditions depends only on pressure ratio and specific-heat ratio, while the net output depends on turbine inlet temperature, which is limited by blade metallurgy and cooling rather than by the cycle. Intercooling reduces compressor work, regeneration recovers exhaust heat that would otherwise be dumped, and reheat raises turbine work; the three compete because intercooling and reheat both lower the temperature at which heat must be added.
Stacking the two gives the combined cycle: the gas turbine is the topping device rejecting hot exhaust, and the steam plant bottoms it, converting that exhaust into more work. Current combined-cycle plants exceed 60 percent thermal efficiency because the gas turbine operates at very high temperature while the steam side handles the low-temperature rejection.
| Cycle | Device | Energy direction | First-law metric | Practical range |
|---|---|---|---|---|
| Carnot | Reversible engine | Heat to work | , the upper bound | Unattainable, used as a benchmark |
| Rankine | Steam power plant | Heat to work | 33 to 46 percent, 60 percent in combined cycle | |
| Brayton | Gas turbine | Heat to work | ideal | 30 to 43 percent simple cycle |
| Otto / Diesel | Piston engine | Heat to work | Brake thermal efficiency | 35 to 46 percent, 50 percent marine diesel |
| Vapor compression | Chiller, heat pump | Work moves heat | COP cool or COP heat | 2 to 7 in practice, 5 to 6 ideal |
| Absorption | Heat-driven chiller | Heat moves heat | COP heat driven | 0.7 to 1.5 typical |
Worked Example 3: cold-air-standard Brayton analysis
Air enters a compressor at 300 K and 100 kPa, is compressed to a pressure ratio of 12, heated to 1400 K in the combustor, and expanded in the turbine. With and , find compressor work, turbine work, net work, heat input, and thermal efficiency.
Step 1, isentropic temperature ratio: .
Step 2, temperatures: and .
Step 3, works: , , so .
Step 4, heat and efficiency: and percent.
The same machine with a recuperator that preheats compressor discharge air from exhaust would cut substantially and push measured efficiency higher than this ideal number, because real combustors also lose pressure and the turbine and compressor fall short of isentropic efficiency.
Refrigeration and Heat Pump Cycles
The vapor-compression cycle is the workhorse of air conditioning, chillers, and domestic refrigeration: a compressor raises refrigerant pressure, a condenser rejects heat while the vapour condenses, an expansion valve drops pressure (throttling, constant enthalpy), and an evaporator absorbs heat as the liquid boils. The coefficient of performance is the ratio of what you want to what you pay:
The heating COP is exactly one higher because the delivered heat is the extracted heat plus the compressor work, an identity that holds for any cycle operating between the same limits.
| Component | Thermodynamic job | First-law signature | Practical constraint |
|---|---|---|---|
| Compressor | Raises pressure and temperature of vapour | Work in, enthalpy up | Isentropic efficiency 60 to 85 percent, discharge temperature limit |
| Condenser | Rejects heat at constant pressure | Heat out, vapour to liquid | Approach temperature and fouling |
| Expansion valve | Drops pressure without work | Enthalpy constant, entropy up | Exergy destroyed; capacity lost to flash gas |
| Evaporator | Absorbs heat at constant pressure | Heat in, liquid to vapour | Superheat for compressor protection |
| Receiver or accumulator | Stores charge, dries the line | No energy change | Sizing for load swings and refrigerant slip |
Practical design details matter as much as the cycle: superheat at the evaporator exit protects the compressor from liquid, subcooling at the condenser exit guarantees pure liquid at the valve and increases capacity, and a flooded evaporator with a distributor beats a dry one on heat transfer at the cost of charge and complexity.
Carnot sets the ceiling in both directions: and with absolute temperatures, so a chiller lifting heat from 278 K to 308 K cannot exceed 9.27 and a real machine at 4.5 is at about 49 percent of ideal, which is a respectable rating. When the temperature lift is large, cascade systems use two refrigerants tuned to each range, and where heat is cheap or electricity expensive, absorption and adsorption cycles replace the compressor with a generator that uses thermal energy instead of shaft work.
đĄAbsolute Temperature Is Not Optional
import math
T0 = 300.0 # K, dead state
def carnot_engine(Th, Tl):
return 1 - Tl / Th
def brayton(r_p, gamma=1.4):
t = r_p ** ((gamma - 1) / gamma)
return 1 - 1 / t, t
def cop_cooling(Tl, Th):
return Tl / (Th - Tl)
# Carnot bound and a real engine between 900 K and 300 K
q_in, Th, Tl = 1000.0, 900.0, 300.0
eta_c = carnot_engine(Th, Tl)
w_real = 0.40 * q_in
q_out = q_in - w_real
s_gen = q_out / Tl - q_in / Th
print(f"Carnot efficiency {100*eta_c:.1f} percent, max work {eta_c*q_in:.0f} kJ")
print(f"S_gen {s_gen:.3f} kJ/K, exergy destroyed {T0*s_gen:.0f} kJ")
# Brayton sweep: efficiency depends only on pressure ratio
for rp in (6, 10, 12, 20, 30):
eta, tr = brayton(rp)
print(f"r_p {rp:3d} T2/T1 {tr:4.2f} eta {100*eta:5.1f} percent")
# Chiller limits: 278 K evaporator, 308 K condenser
print(f"Carnot COP {cop_cooling(278.0, 308.0):.2f}, real 4.5 is {100*4.5/cop_cooling(278.0,308.0):.0f} percent of it")
# Worked Example 3: Brayton cycle at pressure ratio 12
gamma, cp, T1, T3 = 1.4, 1.005, 300.0, 1400.0
t_ratio = 12 ** ((gamma - 1) / gamma)
T2, T4 = T1 * t_ratio, T3 / t_ratio
w_c = cp * (T2 - T1)
w_t = cp * (T3 - T4)
q_in = cp * (T3 - T2)
print(f"Brayton T2 {T2:.0f} K, T4 {T4:.0f} K, w_c {w_c:.1f}, w_t {w_t:.1f}, "
f"w_net {w_t - w_c:.1f} kJ/kg, eta {100*(w_t - w_c)/q_in:.1f} percent")
The script returns a Carnot efficiency of 66.7 percent, a real engine at 40 percent destroying 267 kJ of exergy, Brayton efficiencies climbing from 40.1 percent at a pressure ratio of 6 to 62.2 percent at 30 (and Example 3 reproduced at : 610 K compressor discharge, 688 K turbine exhaust, 311.7 and 715.2 kJ/kg of compressor and turbine work, 50.8 percent thermal efficiency), and a chiller at 4.5 COP sitting at 49 percent of its 9.27 Carnot limit. Notice that raising pressure ratio keeps helping the ideal Brayton cycle forever, while the real machine has an optimum: compressor discharge temperature and turbine inlet temperature pull in opposite directions, and heat exchangers impose their own penalty.
đĄNet Work, Never Gross
Common Mistakes
Ignoring pump and compressor work in the cycle efficiency
Fix: Net work is turbine output less compressor and pump input; quoting gross turbine work inflates both Rankine and Brayton efficiency.
Putting Celsius into Carnot or COP ratios
Fix: Convert to kelvin first; 30 and 5 degrees Celsius give a nonsense temperature lift and a COP that no machine can reach.
Assuming every device is isentropic
Fix: Apply an isentropic efficiency to each turbine, compressor, and pump before reporting cycle performance, and keep the sign convention consistent.
Quoting a COP without saying which one
Fix: State cooling or heating: COP heat equals COP cool plus one for the same temperature limits, and the two are used for different equipment decisions.
Key Takeaways
- The first law balances energy; the second law sets direction, and entropy generation is never negative for a real process.
- Carnot efficiency depends only on reservoir temperatures on an absolute scale: one minus TL over TH, which is also the definition of the absolute temperature scale.
- Exergy destroyed equals T0 times entropy generation, which is what ranks irreversibilities that the first law cannot see.
- Every Rankine or Brayton improvement does the same thing thermodynamically: raise the average heat-addition temperature or lower the rejection temperature.
- Vapor-compression COP is set mainly by temperature lift; superheat, subcooling, and compressor efficiency decide how close a real chiller gets to the limit.
Frequently Asked Questions
Why can no heat engine be 100 percent efficient?
Because some heat must be rejected to a colder reservoir to satisfy the second law; converting every joule of heat into work would run entropy backwards. The maximum is in absolute temperature, and every real machine falls below it.
What does isentropic efficiency compare?
It compares a real device with the ideal reversible adiabatic version operating between the same inlet state and exit pressure. Turbine isentropic efficiency is actual work over isentropic work (below 1); compressor efficiency is isentropic work over actual work (also below 1), because both are defined so the number cannot exceed 1.
When does the ideal gas law fail?
Near saturation and at high pressure, where molecules occupy a meaningful share of the volume and intermolecular forces act. Steam near the boiler pressure, refrigerants in a chiller, and gases below minus 40 degrees Celsius relative to their critical temperature all need tables or a real-gas equation of state instead.
Why is the heating COP always one higher than the cooling COP?
The heat pump delivers the evaporator heat plus the compressor work to the warm space, so and dividing by the same adds exactly one. Choosing which number to quote is a marketing question, not a physics one.
Interview Questions
Q1: How would you improve the efficiency of a Rankine steam plant?
Raise main steam temperature and pressure within metallurgical limits, add reheat to keep final-stage moisture below about 10 percent, add regenerative feedwater heaters to raise the average heat-addition temperature, lower condenser pressure within cooling-system limits, and lift turbine stage and pump efficiencies.
Q2: Explain exergy destruction in a heat exchanger.
Heat crosses a finite temperature difference, which generates entropy even though the first law balances perfectly. Exergy destroyed equals T0 times that entropy generation, so two designs with the same duty have very different second-law performance if their approach temperatures differ.
Q3: A pump is rated at 85 percent isentropic efficiency. What does that mean for the plant?
It draws about 1 divided by 0.85, or 18 percent more work than an ideal pump for the same pressure rise, so the motor must be sized on the actual shaft power and the extra energy appears as heat in the discharged liquid.
Q4: Difference between an expansion turbine and a throttling valve?
Both drop pressure, but a valve holds enthalpy constant and destroys exergy equal to T0 times the entropy rise, while an expansion turbine recovers part of that exergy as shaft or electrical work. Use the turbine when the flow and pressure drop make the payback worthwhile.