Thermodynamic cycle calculator: steam, gas, engines and refrigeration
Solve the cycles of a thermodynamics course, grouped in four families: steam power, gas turbines and propulsion, piston engines, and refrigeration and heat pumps. The properties of water and the refrigerants come from the same reference equations of state as the site's thermodynamic tables; air uses the ideal-gas table or the cold-air standard. Every state appears in the table and on the T-s, P-h or P-v diagrams, and the energy balance gives the work, the heat, the thermal efficiency or the COP, with the detailed solution as a PDF.
Theory and worked examples: Thermodynamic cycles: Rankine, Brayton and refrigeration · Piston engines: Otto, Diesel, dual and Stirling cycles · Advanced cycles: regeneration, propulsion and heat pumps · Exergy (second law) and polytropic processes.
What you can do
- Rankine with water: ideal or with turbine and pump efficiencies, reheat, one open or closed feedwater heater (with the fraction of steam extracted), steam flow for a net power and a warning when the turbine exit quality is low.
- Brayton with air: variable specific heats (air table) or the cold-air standard, compressor and turbine efficiencies, regenerator, and two stages with intercooling and reheat.
- Turbojet: diffuser, compressor, a turbine that only drives the compressor, and nozzle; exit velocity, thrust, propulsive, thermal and overall efficiencies. Ericsson with a regenerator.
- Piston engines: Otto, Diesel and dual (Sabathé) with the cold-air standard or the air table, with the heat given as heat added, maximum temperature or cutoff ratio; mean effective pressure and engine power from the displacement, cylinders and rpm. Stirling with a regenerator.
- Vapor-compression refrigeration and heat pumps with R-134a, R-22, R-32, R-404A, R-410A, R-1234yf, R-1234ze(E), R-245fa, ammonia, CO₂, propane or isobutane; gas refrigeration (reversed Brayton) with an optional regenerator.
- T-s, P-h and P-v diagrams, table of states, step-by-step solution and a button that takes Rankine, Brayton or refrigeration to the cycle simulator with a flowsheet.
Frequently asked questions
How is the efficiency of a Rankine cycle computed?
η = w_net/q_in, with w_net = (h₃ − h₄) − (h₂ − h₁) and q_in = h₃ − h₂. For example, between 3 MPa, 350 °C and 75 kPa the ideal cycle gives 26.0 %.
What is the efficiency of the Otto cycle?
With the cold-air standard, η = 1 − 1/r^(k−1): with r = 8 and k = 1.4 it is 56.5 %. With the air table (variable specific heats) the same engine gives less: 52.3 % with 800 kJ/kg of heat added from 290 K and 100 kPa.
What is the COP of a refrigerator?
It is the heat removed in the evaporator divided by the compressor work: COP = (h₁ − h₄)/(h₂ − h₁). Unlike an efficiency, it is usually greater than 1. A heat pump divides the heat delivered in the condenser instead: COP_HP = COP_R + 1.
Where do the properties come from?
For water and the refrigerants, from each fluid's reference equation of state as implemented in CoolProp (MIT license), the same as in the site's thermodynamic tables. Air uses the ideal-gas table or constant specific heats; in Stirling and Ericsson you type the cₚ and cᵥ of the gas.
Guide: power cycles, engines and refrigeration
A steam power plant, a gas turbine, a car engine and a refrigerator are cycles: a fluid goes through several processes and returns to its initial state. To analyze them, each state is fixed by two properties, the first law is applied to each process and what is spent is compared with what is obtained. The tool groups the cycles in four families: steam power (Rankine), gas turbines and propulsion (Brayton, turbojet, Ericsson), piston engines (Otto, Diesel, dual or Sabathé, Stirling) and refrigeration and heat pumps (vapor compression and gas cycle). This guide summarizes each one and works examples with their numbers.
Rankine cycle
Water leaves the condenser as saturated liquid (1), the pump raises it to the boiler pressure (2), the boiler turns it into superheated steam (3), the steam expands in the turbine (4) and condenses again. In steady flow, per kg: q − w = hout − hin.
wnet = (h3 − h4) − (h2 − h1) qin = h3 − h2 η = wnet/qin
- Ideal and real: isentropic pump and turbine, or with efficiencies: h4 = h3 − ηT(h3 − h4s) and h2 = h1 + (h2s − h1)/ηP.
- Reheat: the steam expands to an intermediate pressure, goes back to the boiler and expands again; the quality at the turbine exit rises (below about 88 % droplets erode the blades).
- Feedwater heater: a fraction y of the steam is extracted from the turbine to heat the water before the boiler. In the open heater they mix and saturated liquid leaves at the heater pressure (two pumps): y = (h3 − h2)/(h6 − h2). In the closed heater they do not mix: the water leaves at the saturation temperature of the extracted steam, and the drain, saturated liquid, goes back to the condenser through a trap: y(hext − hdrain) = h3 − h2. Everything is counted per kg of steam leaving the boiler; after the extraction only 1 − y flows.
Brayton cycle, two stages, Ericsson and turbojet
Air is compressed (1→2), receives heat at constant pressure (2→3), expands in the turbine (3→4) and leaves. With variable specific heats, h(T) and the relative pressure Pr(T) come from the air table and in an isentropic process Pr2 = rp·Pr1; with the cold-air standard, T2s/T1 = rp(k−1)/k and η = 1 − rp−(k−1)/k.
- Regenerator: the exhaust heats the compressed air; effectiveness ε = (h5 − h2)/(h4 − h2). It only helps if the exhaust is hotter than the compressed air.
- Two stages with intercooling and reheat: the air goes back to T1 between the compressors and to the inlet temperature between the turbines. The intermediate pressure of largest work is Pi = √(P1P2). Without a regenerator the efficiency may drop; with one it rises a lot.
- Ericsson: isothermal compression and expansion joined by two constant-pressure processes. Along each isotherm q = w = RT ln rp; with an ideal regenerator the cycle reaches the Carnot efficiency, 1 − TL/TH.
- Turbojet: the diffuser slows the air down (h2 = h1 + V12/2), the compressor compresses it, the combustor heats it, the turbine only gives the compressor work and the nozzle accelerates the gases down to the outside pressure: V6 = √(2(h5 − h6)). The thrust is F = ṁ(V6 − V1); the propulsive efficiency, 2V1/(V1 + V6), and the overall one, F·V1/Q̇in.
Piston engines: Otto, Diesel, dual and Stirling
They are closed systems: the same mass of air goes through the processes and, per kg, q − w = Δu. At constant volume q = Δu; at constant pressure q = Δh. The compression ratio is r = V1/V2.
Otto: η = 1 − 1/rk−1 Diesel: η = 1 − (rck − 1)/(k rk−1(rc − 1)) MEP = wnet/(v1 − v2)
- Otto: the heat enters at constant volume. Give the heat added or the maximum temperature.
- Diesel: the heat enters at constant pressure; the cutoff ratio rc = V3/V2 = T3/T2 measures how long the injection lasts and must be smaller than r.
- Dual (Sabathé or mixed) cycle: first at constant volume (rp = P3/P2) and then at constant pressure (rc = V4/V3); with rc = 1 it is an Otto cycle and with rp = 1 a Diesel cycle.
- Variable specific heats: the air table gives u(T), h(T) and the relative volume vr = T/Pr; in an isentropic process v2/v1 = vr2/vr1, so a compression of ratio r divides vr by r.
- Engine data: with the displacement, the cylinders, the rpm and the strokes you get the mass per cycle (V1/v1, with V1 = Vdr/(r − 1)) and the power (a 4-stroke engine makes one cycle every two revolutions).
- Stirling: two isotherms joined by two constant-volume processes; the regenerator passes the heat from one to the other. With an ideal regenerator the efficiency is Carnot's.
Refrigeration and heat pumps
In vapor compression the refrigerant enters the compressor as vapor (1), leaves at the condenser pressure (2), rejects heat and leaves as liquid (3), goes through the valve without changing its enthalpy (h4 = h3) and absorbs heat in the evaporator.
COPR = (h1 − h4)/(h2 − h1) COPHP = (h2 − h3)/(h2 − h1) = COPR + 1 COPCarnot = TL/(TH − TL)
- Heat pump: the same cycle, but the benefit is the heat the condenser delivers indoors; the heating capacity fixes the flow, ṁ = Q̇H/qH, and its limit is TH/(TH − TL).
- Gas refrigeration (reverse Brayton): air is compressed, rejects heat to the surroundings, expands in a turbine, which cools it well below the refrigerated space, and takes heat from it. COP = qL/(wc − wt); with the ideal cold-air standard, COP = 1/(rp(k−1)/k − 1). A regenerator cools the gas further before the turbine and allows very low temperatures.
Worked examples
- Ideal Rankine between 3 MPa, 350 °C and 75 kPa: h1 = 384.44, h2 = 387.47, h3 = 3116.1 and h4 = 2403.0 kJ/kg (x4 = 0.886); wnet = 710.0 kJ/kg, qin = 2728.6 kJ/kg and η = 26.0 %.
- Open feedwater heater: 15 MPa, 600 °C, 10 kPa and extraction at 1.2 MPa. y = 0.2271 of the steam is extracted and η = 46.3 %. With a closed heater and the same data, y = 0.2903 and η = 44.5 %.
- Two-stage Brayton with rp = 8, 300 K and 1300 K (variable specific heats): Pi = 282.8 kPa and η = 35.7 %; with an ideal regenerator, η = 69.6 %.
- Otto with r = 8, 290 K, 100 kPa and 800 kJ/kg: with the cold-air standard η = 1 − 8−0.4 = 56.5 %; with variable specific heats T3 = 1575 K, η = 52.3 % and MEP = 574 kPa.
- Diesel with the cold-air standard, r = 18 and rc = 2: η = 63.2 %. Dual with r = 14, rp = 1.5 and rc = 1.5: η = 63.0 %.
- Stirling with air between 300 K and 800 K, r = 10 and an ideal regenerator: η = 62.5 %, Carnot's; without the regenerator it drops to 37.2 %.
- Turbojet at 260 m/s, −40 °C and 34.5 kPa, rp = 10 and 1373 K at the turbine (cold-air standard): V6 = 1006 m/s, specific thrust 745.8 N·s/kg (33.6 kN with 45 kg/s), propulsive efficiency 41.1 % and overall 22.5 %.
- Gas refrigeration between −18 °C and 27 °C with rp = 4: the turbine leaves the air at 201.9 K and COP = 2.06. Heat pump with R-134a between −10 °C and 45 °C, 80 % compressor: COPHP = 3.99.
All of them are in the «Load an example» menu of each cycle. The R-134a enthalpies use the ASHRAE reference state (h = 0 and s = 0 for saturated liquid at −40 °C); enthalpy differences, and therefore the COP, do not depend on that choice.
How to use the tool
- Under «Which cycle do you want to analyze?» pick the family and, below it, the cycle: two clicks reach any of them.
- Type the data of the problem. In the air cycles choose the model: variable specific heats (air table) or the cold-air standard (k, cp and, in the engines, cv). In Otto, Diesel and dual say what you know about the heat: the heat added, the maximum temperature or the cutoff ratio.
- Add the optional data: efficiencies (100 % = ideal), reheat, feedwater heater, two stages, regenerator, power, capacity, engine data or air flow.
- Read the cards, the state table, the diagrams (T-s, P-h or P-v), the step by step and the «Detailed solution (PDF)». Rankine, Brayton and vapor-compression refrigeration can be opened in the cycle simulator.
Common mistakes
- Using Δh in a closed system: in Otto, Diesel and dual cycles the heat at constant volume is Δu; only at constant pressure is it Δh.
- Forgetting the extracted fraction: after the extraction, the turbine and the condenser work with 1 − y per kg of boiler steam.
- Taking h2 = h1 in the pump: its work is small, but not zero.
- Applying the isentropic efficiency backwards: in the turbine the real work is smaller than the ideal one (multiply by η); in the compressor and the pump it is larger (divide by η).
- A cutoff ratio larger than r makes no sense: the injection would end after bottom dead center.
- Mixing up the refrigerator COP and the heat-pump COP: for the same cycle, the second is larger by one. Carnot temperatures go in kelvin.
Further reading
The chapters on vapor power cycles, gas power cycles and refrigeration of any engineering thermodynamics textbook. Water and refrigerant properties come from each fluid's reference equation of state, as implemented in CoolProp 8.0.0 (I. H. Bell and coworkers, MIT license), the same as in the site's thermodynamic tables; air with variable specific heats, from its ideal-gas table. The tool cites the authors of each equation below the results. Simuveliq is not affiliated with the CoolProp project.
More tools
Versión en español
About Simuveliq · How we verify the calculations · Terms of use · Privacy policy · Contact