Simuveliq

Cycle simulator: flowsheet, streams and balances

Draw the cycle as in the problem statement: place the equipment, join it with streams and type the data you have. The simulator counts the degrees of freedom, tells you what is missing or extra, and solves every stream with the reference equations of state of the site's thermodynamic tables or with the air table. It handles the usual cycles and the ones that do not fit in a cycle calculator: several feedwater heaters, two-stage or cascade refrigeration, the gas–steam combined cycle and piston engines (Otto, Diesel and Sabathé, or dual).

Theory and worked examples: Cycle simulator: flowsheets and balances · Exergy (second law) and polytropic processes.

What you can do

Frequently asked questions

What are the degrees of freedom of a cycle?

The difference between the unknowns (pressure, enthalpy and flow of each stream) and the equations (the balances of each device and the data you typed). In a closed loop one mass balance is repeated and does not count. With zero degrees of freedom the cycle is determined; if nothing sets the flow, 1 kg/s is taken and the results are per kg.

Why does a feedwater heater raise the efficiency?

Because the extracted steam heats the water before the boiler and raises the mean temperature at which heat is added. With steam at 15 MPa and 600 °C and a condenser at 10 kPa, an open heater at 1.2 MPa extracts y = 0.2271 of the steam and the ideal efficiency reaches 46.31 %.

Can I simulate the Otto, Diesel and Sabathé cycles?

Yes. They are closed systems, so each «Piston engine» block is a process of the same air charge: isentropic compression and expansion (or with their efficiency) between two volumes, heat at constant volume (q = Δu), heat at constant pressure (q = Δh, with the boundary work P·Δv) and heat rejection at constant volume. The Sabathé, or dual, cycle splits the heat between constant volume and constant pressure. With the air table, r = 16, rₚ = 1.4, 300 K, 100 kPa and a maximum temperature of 1900 K, the efficiency is 58.98 % and the mean effective pressure 831.1 kPa.

Where do the properties come from?

For water, the refrigerants and the other real fluids, 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 with variable specific heats, or an ideal gas with constant cₚ and k.

Guide: cycle simulator with a flowsheet

In power and refrigeration cycle problems each device is a control volume in steady flow: what enters leaves (mass balance) and energy is conserved (per unit time, Q̇ − Ẇ = Σṁhout − Σṁhin, with no kinetic or potential energy). The simulator builds those equations from a flowsheet: you place the devices, join them with streams, type the data of the problem statement and get the state of every stream, the work and heat of every device, the efficiency or COP and the step-by-step solution in the order it was solved.

Devices and their equations

Degrees of freedom

Each stream has three unknowns: P, h and ṁ (with P and h, the tables give T, s and the quality). Each device brings the equations of its model and each typed datum one more. In a closed loop the sum of all the mass balances is identically zero, so one is extra. If no flow, heat or power is given, the size of the flow is free: ṁ = 1 kg/s is taken on the stream of largest flow and the results come out per kg of it, as in the textbooks («per kg of steam through the boiler»). The panel says it live: «Complete», «N data missing» with concrete suggestions (which device or stream can take which datum) or «Data to spare», saying whether they agree or which one does not.

How it is solved

It always looks for an equation with a single unknown and solves it: first the pressures and flows that pass from one device to the next, then each state with the two properties that fix it, then each machine with its efficiency. When no equation has a single unknown, as in the balance of an open feedwater heater (two unknown flows), the equations that share unknowns are solved together as a system. At the end every equation left over and the energy balance of the whole cycle are checked. That order is the one of the step by step and of the detailed PDF solution.

Worked examples

  1. Rankine with an open feedwater heater: 15 MPa and 600 °C at the turbine, condenser at 10 kPa, extraction at 1.2 MPa. The heater delivers saturated liquid at 1.2 MPa (h3 = 798.33 kJ/kg), so the extracted fraction is y = (h3 − h2)/(h6 − h2) = 0.2271, and η = 46.3 % against 43.0 % without the heater.
  2. With a closed feedwater heater: the same data; the feedwater leaves at the saturation temperature of the extracted steam (187.96 °C) and the drain is throttled to the condenser. The fraction is y = 0.2903 and η = 44.5 %.
  3. A closed heater at 4 MPa and an open one at 0.5 MPa, with reheat at 4 MPa and 600 °C: extractions of 0.2090 and 0.0924 per kg of steam from the boiler, η = 48.5 %.
  4. Brayton with intercooling, reheat and an ideal regenerator: rp = 8 in two equal stages (intermediate pressure √(P1P2) = 282.84 kPa), 300 K and 1300 K with the air table: η = 69.6 % and a back work ratio of 30.4 %.
  5. Two-stage refrigeration with a flash chamber (R-134a, 0.8, 0.32 and 0.14 MPa): the fraction that flashes in the chamber is 0.2049 and the COP comes out 4.48, against 3.97 in a single stage.
  6. Cascade of CO2 and ammonia for 50 kW at −40 °C: 0.2022 kg/s of CO2, 0.05513 kg/s of ammonia, 22.08 kW in the compressors and COP = 2.26.
  7. Combined cycle of 100 MW: gas turbine with rp = 8, 80 % compressor, 85 % turbine and 1100 °C; heat-recovery steam generator down to 180 °C in the exhaust; steam at 8 MPa and 450 °C. The result is 249.5 kg/s of air, 39.17 kg/s of steam and η = 45.5 %.

All of them are in «Examples», together with the simple Rankine, the real one, the one with reheat, the Brayton with regenerator, ideal and real refrigeration (with the compressor efficiency computed from the states) and the heat pump, and the Otto, Diesel and dual (Sabathé) piston engines, built with the «Piston engine» blocks (processes of one air charge). From «Thermodynamic cycles» any Rankine, Brayton, refrigeration, Otto, Diesel or dual cycle can be opened in this simulator.

How to use the simulator

  1. Choose a device in the palette and click the canvas to place it.
  2. Join an outlet (filled dot) to an inlet (hollow dot) by dragging, or by tapping one and then the other.
  3. Choose the fluid of each loop: water, refrigerants and the other real fluids of the tables, air with variable specific heats or an ideal gas with constant cp and k.
  4. Tap each device or stream and type what the problem says. Watch the degrees-of-freedom box until it says «Complete».
  5. Read the cards, the stream table, the device table, the T-s and P-h diagrams and the step by step; download the detailed PDF solution.

Common mistakes

Further reading

The chapters on vapor and gas power cycles, combined cycles and refrigeration of any engineering thermodynamics textbook. The properties of water and the refrigerants 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, from the ideal-gas air table. Simuveliq is not affiliated with the CoolProp project. For one of the classic cycles with its formulas, use thermodynamic cycles.

More tools

Versión en español

© 2026 Simuveliq. All rights reserved.