Tools › Fluids and Heat Transfer › Thermodynamic Cycles › Thermodynamic Process Analyzer


Thermodynamic Process Analyzer

Enter the starting state of steam or air and what happens to it, and the page finds the end state, the work, the heat and the entropy generated, and draws the process on T-s and P-v diagrams. One process or one device at a time (turbine, compressor, pump, nozzle, diffuser, valve, heat exchanger, mixing chamber, or a constant-pressure, constant-volume, isothermal, isentropic or polytropic process in a closed system); whole cycles are on the Power and Refrigeration Cycles page.

  • One process or one device at a time: the end state, work, heat, the first-law balance and the entropy generated

  • T-s and P-v diagrams of your own case with the saturation dome, numbered state points and the isentropic path dashed

  • State table with pressure, temperature, specific volume, internal energy, enthalpy, entropy, quality and phase

  • Steam by IAPWS-IF97; air as an ideal gas with variable or constant specific heats; SI or U.S. units

Thermodynamic Process Analyzer


Unit System: /

/

Fluid and Process



State 1 (start or inlet)









Process End or Device Exit













Second-Law Options



×

Thermodynamic Process Analyzer

Thermodynamic Process Analyzer: Method, Sign Conventions and Common Mistakes

What the tool does

You give the starting state of steam or air and say what happens to it; the tool finds the end state, the work, the heat and the entropy generated, and draws the process on a temperature-entropy (T-s) and a pressure-volume (P-v) diagram. It handles one process or one device at a time; a whole power or refrigeration cycle is a chain of such steps and has its own page, Power and Refrigeration Cycles.

The idea: two properties fix a state, two laws connect the states

A simple fluid at rest has one state for every pair of independent properties: know the pressure and the temperature of superheated steam and its volume, energy, enthalpy and entropy are fixed and can be looked up. The whole of a process calculation is therefore three steps: find state 1 from the two properties given, use what is known about the process to find two properties of state 2, then take differences.

Temperature-entropy diagram of steam with the saturation dome: a turbine expands steam from state 1 at 8,000 kPa and 500 °C to state 2 at 10 kPa; the ideal isentropic path drops straight down to state 2s
A steam turbine on the T-s diagram. Under the dome the fluid is a boiling mixture of liquid and vapor; to its left it is liquid, to its right vapor. The ideal turbine keeps the entropy constant and drops straight down from 1 to 2s. The real one generates entropy and ends to the right, at 2: the sideways distance is what the losses cost.

The first law is an energy account. The second law says that entropy can be created but never destroyed, which is what separates the processes that can happen from those that cannot and puts a ceiling on what any device can deliver.

Finding a state

  • Water and steam. Compare the state with the saturation line. At a given pressure water boils at one temperature, Tsat. Colder than that it is compressed liquid; hotter, superheated vapor; exactly at Tsat it can be any mixture, and a third number, the quality x (the vapor fraction by mass), is needed. Inside the dome every property is the liquid value plus x times the liquid-to-vapor difference: v = vf + x vfg, h = hf + x hfg, s = sf + x sfg, and the other way round x = (s − sf)/sfg. The tool evaluates the IAPWS-IF97 formulation, the basis of modern steam tables, instead of interpolating in a printed table.
  • Air. An ideal gas: P v = R T with R = 287.05 J/(kg·K). Enthalpy and internal energy depend on temperature alone. With variable specific heats they come from the NASA Glenn polynomial; with constant specific heats h = cpT and u = cvT with k = cp/cv = 1.4. Entropy is s = s°(T) − R ln(P/P°).

Closed system (a fixed mass, such as gas in a cylinder)

Per unit mass, with q the heat added to the fluid and w the work done by the fluid on its moving boundary:

q − w = u2 − u1,   w = ∫P dv

  • Constant pressure: w = P(v2 − v1), q = h2 − h1.
  • Constant volume: w = 0, q = u2 − u1.
  • Isothermal (reversible): q = T(s2 − s1), w = q − (u2 − u1). For an ideal gas u does not change, so w = q = R T ln(v2/v1).
  • Isentropic (reversible and adiabatic): s2 = s1, q = 0, w = u1 − u2. For an ideal gas with constant specific heats, P vk is constant.
  • Polytropic, P vn constant: w = (P2v2 − P1v1)/(1 − n), or P1v1 ln(v2/v1) when n = 1; then q from the first law.

On a P-v diagram with linear axes the area under the path is the work; the tool shades it when the axes are linear.

Steady-flow devices

Fluid flows through at the rate ṁ. Per unit mass, neglecting height changes:

q − w = (h2 − h1) + (V2² − V1²)/2

Enthalpy takes the place of internal energy because the fluid must be pushed in and out. Velocities matter only in nozzles and diffusers.

  • Turbine (adiabatic): the ideal exit 2s has s2s = s1 at the exit pressure. The isentropic efficiency is η = (h1 − h2)/(h1 − h2s), so w = η (h1 − h2s) and h2 = h1 − w. Power Ẇ = ṁ w.
  • Compressor and pump (adiabatic): the efficiency is the other way up, η = (h2s − h1)/(h2 − h1), so win = (h2s − h1)/η. For a liquid, win ≈ v(P2 − P1)/η.
  • Polytropic compressor (cooled, internally reversible): win = ∫v dP = n/(n − 1) × (P2v2 − P1v1); heat q = (h2 − h1) − win. The isothermal path needs the least work, the isentropic path the most of the three.
  • Nozzle: no work, no heat. η = (h1 − h2)/(h1 − h2s), V2 = √(V1² + 2(h1 − h2)), exit area A2 = ṁ v2/V2.
  • Diffuser: h2 = h1 + (V1² − V2²)/2. The efficiency is the isentropic enthalpy rise to the actual exit pressure divided by the actual rise, which fixes the exit pressure.
  • Throttling valve: no work, no heat, negligible velocity change, so h2 = h1. A hot liquid partly flashes to vapor, x2 = (h1 − hf)/hfg at the lower pressure. An ideal gas keeps its temperature.
  • Heat exchanger side: constant pressure, no work, q = h2 − h1, Q̇ = ṁ q.
  • Mixing chamber: ṁ3 = ṁ1 + ṁ2 and ṁ1h1 + ṁ2h2 = ṁ3h3, all at one pressure.

Entropy and lost work

For an adiabatic process every bit of the entropy change is generated inside: sgen = s2 − s1, which must not be negative. With heat exchanged with a source or sink at the temperature Tres, sgen = (s2 − s1) − q/Tres. For the mixing chamber, Ṡgen = ṁ3s3 − ṁ1s1 − ṁ2s2. The work that the generated entropy has cost is T0Sgen, with T0 the absolute temperature of the surroundings (the Gouy-Stodola relation). Temperatures in these formulas are absolute (K or °R).

Sign conventions and units

  • Heat is positive when added to the fluid; work is positive when done by the fluid. Compressor and pump work are printed as positive work inputs and named so.
  • Pressures are absolute. Temperatures and the specific volume, enthalpy and entropy are entered and shown in the family chosen on the form (°C or K with kJ/kg, or °F or °R with Btu/lb); 1 Btu/lb = 2.326 kJ/kg and 1 Btu/(lb·°R) = 4.1868 kJ/(kg·K).
  • Water: u and s are zero for saturated liquid at the triple point, as in steam tables. Air: h and u are zero at absolute zero and s is the absolute entropy; only differences enter the results, so values differ from a textbook table by a constant.

What it assumes

  • Equilibrium states at the start and end, steady flow through devices, and no change of height.
  • Closed-system processes are reversible (slow, frictionless). Turbines, compressors, pumps, nozzles, diffusers and valves lose no heat.
  • Kinetic energy is neglected except in the nozzle and the diffuser.
  • Air is an ideal gas (good below a few MPa at ordinary temperatures); it does not condense and carries no moisture.
  • Heat exchangers and the mixing chamber have no pressure drop.

When it misleads

  • Steam treated as an ideal gas, or the reverse: use water for anything near the dome. Air at very high pressure or very low temperature departs from the ideal-gas law.
  • A nozzle whose exit Mach number exceeds 1 needs a converging-diverging shape; a plain converging nozzle chokes. The tool warns but does not model choking or shock waves.
  • Wet steam in a real turbine or compressor is not in equilibrium, and droplets damage blades; the quality reported is the equilibrium value.
  • The path drawn for an irreversible device is a plausible route between its two end states, not a measured one. Only the end states are results.
  • Near the critical point of water (374 °C, 22.06 MPa) properties change very quickly and small input changes move the answer a lot.

Common mistakes

  • Gauge pressure in a property look-up. Tables and the gas law need absolute pressure: add the atmospheric pressure to a gauge reading.
  • °C or °F where an absolute temperature belongs. P v = R T, q = T Δs, the Carnot limit and T0Sgen all need K or °R. Temperature differences are the same in °C and K.
  • Using cpΔT across a phase change. Boiling and condensing happen at constant temperature, so cpΔT gives zero for the largest part of the heat. Use h2 − h1.
  • Treating pressure and temperature as independent inside the dome. At saturation they are tied together; the second property must be quality, volume, enthalpy or entropy.
  • Turning the efficiency upside down. A turbine delivers less than the ideal work (multiply by η); a compressor or pump needs more (divide by η).
  • Applying η to the temperature or to the exit state. The efficiency scales the enthalpy change. Find h2s first, then h2, then read the temperature.
  • u for a flowing stream, h for a closed tank. Closed systems use internal energy; flowing streams use enthalpy.
  • Reading the isentropic exit at the wrong pressure. State 2s has the inlet entropy and the exit pressure.
  • Forgetting the unit of kinetic energy. V²/2 in m²/s² is J/kg, not kJ/kg: divide by 1,000 before adding it to an enthalpy in kJ/kg (in U.S. units, 1 Btu/lb = 25,037 ft²/s²).
  • Using P vk = constant for steam, or for an inefficient compressor. It holds only for an ideal gas with constant specific heats on a reversible adiabatic path.
  • Assuming a throttling valve keeps the temperature. It keeps the enthalpy. Only an ideal gas keeps its temperature; a hot liquid flashes and cools.
  • Linear interpolation across the saturation line. Properties jump at the dome; interpolate only between two states in the same phase.

Checks behind this page

The steam examples of the DOE Fundamentals Handbook (DOE-HDBK-1012/1-92, Volume 1: the Mollier-chart expansion from 700 psia and 680 °F to 140 psia, the quality example at 400 psia, the condenser, the entropy rise across a nozzle) are reproduced to about 0.1 %, the difference between the older steam tables and Mollier chart the handbook used and IAPWS-IF97. Its pump example prints the specific volume of saturated water at 540 °F as 0.01246 ft³/lbm; the value is 0.02146, so the pump power there is low by a factor of 1.72. Forty-four processes covering every option are compared with an independent calculation (a separate implementation of IAPWS-IF97 and of the NASA air polynomial with numerical root finding and numerical integration of P dv and v dP), and the constant-specific-heat cases with the textbook closed forms. The textbooks listed in the references are cited for the standard definitions only; no table, figure or problem of theirs is used.




References

U.S. Department of Energy (1992). DOE Fundamentals Handbook: Thermodynamics, Heat Transfer, and Fluid Flow, Volume 1 of 3. DOE-HDBK-1012/1-92, U.S. Department of Energy, Washington, DC.

International Association for the Properties of Water and Steam (2007). Revised Release on the IAPWS Industrial Formulation 1997 for the Thermodynamic Properties of Water and Steam. IAPWS R7-97(2012), Lucerne.

McBride, B. J., Zehe, M. J., and Gordon, S. (2002). NASA Glenn Coefficients for Calculating Thermodynamic Properties of Individual Species. NASA/TP-2002-211556, National Aeronautics and Space Administration, Glenn Research Center, Cleveland, OH.

Cengel, Y. A., and Boles, M. A. (2015). Thermodynamics: An Engineering Approach, 8th ed. McGraw-Hill Education, New York.

Moran, M. J., Shapiro, H. N., Boettner, D. D., and Bailey, M. B. (2014). Fundamentals of Engineering Thermodynamics, 8th ed. John Wiley and Sons, Hoboken, NJ.


DISCLAIMER: The methods and calculation on aNOWysis.com are provided as means to educate the reader. There is no warranty, expessed or implied, as to the relevance or accuracy of the methods or calculations. All calculations should be checked by a qualified analyst for appropriateness and accuracy. We will not be held liable for any damages, injuries or deaths caused by using methods or calculations from this site.