Reading thermal cycle diagrams (P–v, T–s, P–h)

A coloured solid line is a block's actual change of state from its inlet to its outlet. A thin dashed line of the same colour is what a pump, compressor or turbine would do without losses (at constant entropy) up to the same outlet pressure; the gap between its end and the solid line's outlet is the block's loss.

The numbers of the state table alone do not show at a glance how much each block changes the temperature, pressure and enthalpy, or where the losses are. A diagram shows the shape of the whole cycle, each block's change and the gap to the ideal at the same time.

On the T–s diagram of a simple Rankine cycle the boiler's solid line runs from the lower left to the upper right (heating, boiling, superheating) and the turbine's runs down from the upper right (expansion). The turbine's dashed line goes straight down, while the solid line leans to the right: that lean is the entropy produced by the turbine's losses.

In the Thermal Cycle CAD result dialog, “Diagrams” switches between P–v (pressure–specific volume), T–s (temperature–specific entropy) and P–h (pressure–specific enthalpy). The pressure and specific-volume axes can be logarithmic.

## Lines and points
- Coloured solid line (thick): a block's change of state from its inlet to its outlet. Each block has its own colour and its name at the end of the line. Two-fluid heat exchangers and detailed condensers have two lines, hot side and cold side.
- Coloured dashed line (thin, same colour): the ideal isentropic line, only for pumps, compressors and turbines: from the same inlet state, at constant entropy, to the same outlet pressure.
- Thin grey solid line: the saturation line (the boundary of the region where liquid and vapour coexist, the “dome”). Shown only for water and R134a; air is treated as a gas that does not condense, so it has none.
- Grey dotted line: the paths of the base case, when one is set in “Compare”.
- Points and numbers: the state points (the state table's values themselves). The numbers are those of the connections on the canvas.

Clicking a line or a point selects that block or state, which is highlighted on the canvas and in the state table too.

## Reading solid against dashed
- The gap between the ends of the solid and the dashed line is the block's loss; the lower the efficiency, the larger the gap.
- On a T–s diagram the dashed line is vertical (constant entropy) and the solid line leans to the right, because losses always produce entropy.
- For a turbine the solid line's outlet has a higher enthalpy than the dashed one's (for wet exhaust steam the temperature is the same and the dryness is higher): the work that was not extracted stays in the steam as heat.
- For a pump or compressor reaching the same pressure takes more work than the ideal, so the outlet enthalpy is higher than at the end of the dashed line by that much.

## The ideal isentropic line
From the inlet state (p_1, s_1) to the outlet pressure p_2, the specific entropy is held at s = s_1 and the state at log-spaced pressures is evaluated from the property equations in (p, s). Its end is the ideal outlet h_{2s} = h(p_2, s_1), which with the actual outlet h_2 defines the isentropic efficiency:
\eta_{s,\mathrm{turbine}} = \frac{h_1 - h_2}{h_1 - h_{2s}}, \qquad \eta_{s,\mathrm{pump/compressor}} = \frac{h_{2s} - h_1}{h_2 - h_1}
On a P–h diagram the horizontal distance between the end of the dashed line and the solid line's outlet is h_2 - h_{2s}.

## How the solid lines (reference paths) are drawn
Only the numbered states are solved, and the ends of each solid line are those values themselves. The line in between does not resolve what happens inside the block; it is a model-based reference path:
- heaters, reheaters, coolers, evaporators, condensers, heat exchangers and pipes: constant pressure (with a pressure drop, pressure linear with the heat);
- turbines, pumps and compressors: log-spaced pressures with the enthalpy interpolated linearly between inlet and outlet — not a solved expansion or compression line;
- valves: constant enthalpy.

Every point is a state evaluated from the property equations, so a path through the two-phase region is not just a straight line between two points.

## Power and the area of the diagram
For a closed cycle the area enclosed on the T–s diagram corresponds to the net work, but this site takes the power from each block's energy balance, not from the area. The reference paths do not resolve the internal process, so the area is only indicative.

- The reference state (where enthalpy and entropy are zero) differs between working fluids, so do not compare values across diagrams of different fluids.
- The lines between state points are reference paths, not the temperature or pressure distribution inside a block.