Thermodynamics Solver

Enter any two independent properties per state. Computed values show in teal.

Rankine Cycle Steam Solver

This tool solves the Rankine steam power cycle using the IAPWS-IF97 formulation for water and steam properties. Enter any two independent properties at each state point and it fills in the rest, exactly the way you would by hand. Energy balances around the boiler, turbine, condenser, and pump then link the four states into a complete cycle, including thermal efficiency, back-work ratio, and net work output.

Works for ideal isentropic cycles and actual cycles with pump and turbine isentropic efficiencies. Flags over-specified or conflicting states so you know immediately if the inputs are inconsistent. The same solver also covers the air-standard Otto cycle and the R-134a vapor-compression refrigeration cycle, described further down this page. Runs entirely in the browser. No account required.

How to use the Rankine cycle solver

  1. Set pressure and temperature units using the segmented controls in the left sidebar. Options are kPa, MPa, bar, or psi for pressure; C or K for temperature.
  2. Toggle assumptions to match your problem. Isobaric boiler and condenser are on by default, which links P across each component. Enabling sat. liquid at pump inlet fixes x = 0 at State 1 automatically.
  3. Enter any two properties at each state. The green dots on the schematic indicate solved states. Teal fields are filled in by the solver; you can override any of them by typing a value directly.
  4. Read cycle performance in the right panel. Net work, heat input, heat rejected, thermal efficiency, and back-work ratio update instantly.
  5. Enter a mass flow rate (optional) to convert specific work and heat quantities into power and heat rates (kW).
  6. Export the full cycle summary using Copy (PNG to clipboard), PNG (download), or PDF. The property diagrams can be exported separately from their own buttons.

The Rankine cycle: a quick review

The ideal Rankine cycle is the standard model for steam power plants. It consists of four processes:

  1. 1 to 2: Pump (isentropic compression). Sat. liquid from the condenser is pumped to boiler pressure. The pump work is small relative to turbine work, giving a low back-work ratio.
  2. 2 to 3: Boiler (isobaric heat addition). Water is heated, boiled, and typically superheated at constant pressure. This is where the bulk of heat input occurs.
  3. 3 to 4: Turbine (isentropic expansion). Superheated steam expands through the turbine, producing work. The turbine exit may be wet (two-phase) or superheated depending on inlet conditions and condenser pressure.
  4. 4 to 1: Condenser (isobaric heat rejection). Wet or superheated steam at low pressure condenses to sat. liquid, rejecting heat to the cooling medium.

Worked example: ideal Rankine cycle

Problem: Boiler at 8 MPa / 480 C, condenser at 8 kPa. Ideal isentropic cycle. Find thermal efficiency.

State 3 (turbine inlet): P = 8 MPa, T = 480 C. IAPWS-IF97 gives h3 = 3349.5 kJ/kg, s3 = 6.661 kJ/kg·K.

State 1 (pump inlet): sat. liquid at 8 kPa. h1 = 173.9 kJ/kg, s1 = 0.593 kJ/kg·K.

State 4 (turbine exit): s4 = s3 at 8 kPa gives x4 = 0.795, h4 = 2083.4 kJ/kg.

State 2 (pump exit): s2 = s1 at 8 MPa gives h2 = 181.9 kJ/kg.

Result: w_net = (h3 - h4) - (h2 - h1) = 1258.1 kJ/kg; q_in = 3167.6 kJ/kg; thermal efficiency = 39.7%.

Key cycle quantities

QuantityExpressionNotes
Turbine workw_t = h3 - h4Per unit mass flow
Pump workw_p = h2 - h1Small for liquids
Heat inputq_in = h3 - h2Boiler
Heat rejectedq_out = h4 - h1Condenser
Thermal efficiencyeta = w_net / q_inFirst law
Back-work ratiobwr = w_p / w_tTypically 0.5-2%

Ways to improve Rankine cycle efficiency

  • Increase boiler pressure. Higher boiler pressure raises the mean temperature of heat addition, improving efficiency. Wet turbine exit quality decreases, which is the main constraint.
  • Superheat the steam. Superheating increases h3 and usually raises turbine exit quality, allowing higher boiler pressures in practice.
  • Decrease condenser pressure. Lower condenser pressure lowers the temperature of heat rejection. Condenser pressure is limited by the available cooling medium temperature.
  • Reheat cycle. Steam is expanded partway in the turbine, reheated in the boiler, then expanded again. Reduces moisture at exit while maintaining efficiency gains from high pressure.
  • Regenerative feedwater heating. Extracted steam from the turbine heats the feedwater, reducing boiler heat input and improving cycle efficiency.

Air-standard Otto cycle

Switch the Cycle control to Otto Cycle to solve the ideal air-standard Otto cycle, the standard model for spark-ignition engines. The four states are: 1 at bottom dead center before compression, 2 after isentropic compression, 3 after constant-volume heat addition, and 4 after isentropic expansion. Enter any two independent properties per state (P, T, v, or u), plus the compression ratio or a heat or work quantity on the process chips, and the solver propagates the rest through the ideal gas law, the isentropic relations, and closed-system energy balances.

Two property models are available. Cold air-standard uses constant specific heats with an editable ratio k (1.4 by default), matching the closed-form relations T2 = T1 r^(k-1) and eta = 1 - r^(1-k). Turning the toggle off switches to variable specific heats using tabulated air properties (u and relative specific volume vr), referenced to match standard air tables so intermediate values can be checked against a textbook table directly.

Worked example: ideal Otto cycle

Problem: Compression ratio 8, air at 100 kPa and 290 K before compression, 800 kJ/kg of heat added. Variable specific heats. Find the state properties, net work, thermal efficiency, and MEP.

State 2: vr2 = vr1 / 8 gives T2 = 652 K, P2 = 1799 kPa.

State 3: u3 = u2 + 800 kJ/kg gives T3 = 1575 K, P3 = 4345 kPa.

State 4: vr4 = 8 vr3 gives T4 = 795 K.

Result: w_net = 418.3 kJ/kg; thermal efficiency = 52.3%; MEP = 574 kPa. Cold air-standard with k = 1.4 gives 56.5% for comparison.

Key Otto cycle quantities

QuantityExpressionNotes
Compression ratior = v1 / v2Also equals v4 / v3
Heat inputq_in = u3 - u2Constant volume
Heat rejectedq_out = u4 - u1Constant volume
Thermal efficiencyeta = 1 - q_out / q_inCold air: 1 - r^(1-k)
Mean effective pressureMEP = w_net / (v1 - v2)Constant pressure that would produce w_net over one stroke

Vapor-compression refrigeration cycle (R-134a)

Switch the Cycle control to Refrigeration (R-134a) to solve the vapor-compression cycle. Refrigerant properties come from a Helmholtz equation of state for R-134a (Tillner-Roth and Baehr), with enthalpy and entropy referenced to saturated liquid at -40 C, matching the convention in standard refrigerant tables. The four states are linked the same way as the Rankine cycle: enter any two properties at each state and the rest are computed.

  1. 1 to 2: Compressor. Saturated (or superheated) vapor leaving the evaporator is compressed to condenser pressure. Set an isentropic efficiency, or leave the ideal compressor toggle on for an isentropic compression.
  2. 2 to 3: Condenser (isobaric heat rejection). Superheated vapor is cooled and condensed at constant pressure, usually leaving as saturated liquid.
  3. 3 to 4: Expansion valve (isenthalpic throttle). The liquid is throttled to evaporator pressure. Enthalpy is constant across the valve, so h4 = h3.
  4. 4 to 1: Evaporator (isobaric heat absorption). The low-pressure mixture absorbs heat from the cold space and evaporates, completing the loop.

The coefficient of performance is the useful effect over the compressor work. For cooling, COP = (h1 - h4) / (h2 - h1). For heating (a heat pump), COP = (h2 - h3) / (h2 - h1), which is always one greater than the cooling COP for the same cycle. Enter a mass flow rate to convert the refrigeration effect into cooling capacity in kW and tons of refrigeration.

Problem: R-134a cycle, evaporator at 140 kPa, condenser at 800 kPa. Saturated vapor enters the compressor, saturated liquid leaves the condenser, isentropic compressor. Find the COP for cooling.

State 1 (compressor inlet): sat. vapor at 140 kPa. h1 = 239.2 kJ/kg, s1 = 0.9446 kJ/kg·K.

State 2 (compressor exit): s2 = s1 at 800 kPa gives T2 = 39.0 C, h2 = 275.4 kJ/kg.

State 3 (condenser exit): sat. liquid at 800 kPa. h3 = 95.5 kJ/kg.

State 4 (evaporator inlet): throttle from State 3, so h4 = h3 = 95.5 kJ/kg.

Result: refrigeration effect = h1 - h4 = 143.7 kJ/kg; compressor work = h2 - h1 = 36.2 kJ/kg; COP_cooling = 3.97, COP_heating = 4.97.

Frequently asked questions

What is IAPWS-IF97?

IAPWS-IF97 is the International Association for the Properties of Water and Steam industrial formulation from 1997. It covers water and steam from 0 to 800 C and up to 100 MPa using region-based equations for enthalpy, entropy, and specific volume. This solver implements Regions 1 (compressed liquid) and 2 (superheated steam) along with the saturation curve (Region 4).

What does "two independent properties fix a state" mean?

For a pure substance with one phase (liquid or vapor), specifying any two intensive properties (P, T, h, s, v) fully determines the thermodynamic state. In the two-phase region, P and T are no longer independent, so you need quality x as one of the two inputs instead. The solver detects which region a state is in and uses the appropriate equations.

Why is my turbine exit quality below 0.85?

Low exit quality means a large fraction of the steam is liquid droplets at the turbine exit, which erodes turbine blades. The practical lower limit is usually around x = 0.85. To increase exit quality, superheat the steam further, raise the boiler pressure (counterintuitively, higher pressure with sufficient superheat gives higher exit quality), or use a reheat stage.

Can I use this for refrigeration cycles?

Yes. Switch the Cycle control in the sidebar to Refrigeration (R-134a) and the tool solves the vapor-compression cycle using a Helmholtz equation of state for R-134a. The same fill-what-you-know approach applies: enter any two properties at each state and it propagates the rest, then reports COP for cooling and heating. Other refrigerants are not included yet.