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
- Equipment: pump, compressor, turbine, valve, boiler, heater, combustor, evaporator, condenser, cooler, open feedwater heater, mixer, splitter, flash chamber, closed feedwater heater, regenerator and heat exchanger; and, for piston engines, compression and expansion in the cylinder, heat at constant volume and at constant pressure, and heat rejection at constant volume.
- Free data: pressures, temperatures, qualities, superheat or subcooling, isentropic efficiencies, extraction fractions, heats, powers or the net power. Leave an efficiency empty and it is computed from the states.
- Degrees of freedom as you type: «Complete», «N data missing» with suggestions of what to type, or «Extra data» with a check of whether they agree.
- One fluid per loop: water, refrigerants, real gases, organic liquids, air with variable specific heats or an ideal gas with constant cₚ and k; two loops joined by a heat exchanger (cascade refrigeration, combined cycle).
- Results: stream table (T, P, h, s, quality and flow), work and heat of each device, efficiency or COP with the Carnot value, energy balance, T-s and P-h diagrams of each loop (P-v and T-s for piston engines, with the mean effective pressure), step-by-step solution and a detailed PDF.
- From «Thermodynamic cycles», the button «Open in the cycle simulator» brings a Rankine, Brayton, refrigeration, Otto, Diesel or dual (Sabathé) cycle already built so you can extend it.
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
- Pump, compressor and turbine: the isentropic efficiency compares the real machine with the ideal one. In a pump or compressor, h2 = h1 + (h2s − h1)/η; in a turbine, h2 = h1 − η(h1 − h2s), with h2s at the outlet pressure and the inlet entropy. The outlet pressure is typed on the device, as a pressure ratio, or left to another device (the condenser, for example). If the efficiency is left empty, it is computed from the inlet and outlet states.
- Valve: throttling, hout = hin.
- Boiler, heater, combustion chamber and evaporator (take heat) and condenser and cooler (reject it): constant pressure except for the drop you type; their pressure or saturation temperature; the outlet condition (temperature, quality, saturated liquid or vapor, superheat or subcooling); and, if known, the heat.
- Open feedwater heater and mixer: all streams at the same pressure; mass and energy balances. If the outlet is saturated liquid, the balance fixes the extracted steam fraction.
- Splitter: a turbine extraction; all its outlets have the inlet state. The fraction can be typed or left unknown.
- Closed feedwater heater, regenerator and heat exchanger: two streams that do not mix, ṁh(hin − hout)hot = ṁc(hout − hin)cold, with one more datum: the terminal temperature difference (TTD = Tsat of the steam − water outlet T), the effectiveness or an outlet temperature. An exchanger separates two loops with different fluids (cascade, combined cycle).
- Flash chamber: splits a mixture into saturated vapor and saturated liquid at its pressure.
- Inlet and outlet: boundaries of an open cycle, such as the air entering the compressor of a gas turbine and the exhaust.
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
- 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.
- 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 %.
- 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 %.
- 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 %.
- 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.
- 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.
- 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
- Choose a device in the palette and click the canvas to place it.
- Join an outlet (filled dot) to an inlet (hollow dot) by dragging, or by tapping one and then the other.
- 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.
- Tap each device or stream and type what the problem says. Watch the degrees-of-freedom box until it says «Complete».
- 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
- Typing the same pressure twice (for example the outlet of the extraction turbine and the open heater pressure): it is an extra datum; if they do not match, the simulator says so.
- Giving the temperature of a saturated state instead of its quality: with P and T right at saturation the state may be liquid, vapor or a mixture; use x = 0 or x = 1.
- Forgetting the pump before the open heater: all streams of a mixer must arrive at the same pressure.
- Swapping the cold and hot sides of an exchanger: heat cannot flow from cold to hot, and the temperatures cannot cross.
- Mixing two fluids in one loop: each loop carries a single fluid; to pass heat from one fluid to another use a heat exchanger.
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
About Simuveliq · How we verify the calculations · Terms of use · Privacy policy · Contact