Project 2 - Rankine cycle Simulator
AIM:-
To create a MATLAB Program that calculate that state points of the Rankine Cycle.
OBJECTIVE:-
- To create a Rankine Cycle Simulator using MATLAB.
- To determine its state points including Net work output & Back work ratio.
- Plot its T-S and h-S diagram from the given data.
- Explain its working.
THEORY:-
The Rankine Cycle is an idealized thermodynamic cycle describing the process by which certain heat engines,such as steam turbine or reciprocating steam engines, allow mechanical work to be extracted from a fluid as it moves between a heat source and heat sink.
LAYOUT OF THE RANKINE CYCLE:-
- Turbine
- Condenser
- Pump
- Boiler
In the Rankine cycle, the following processes take place:-
PROCESS 1-2 :-
The dry saturated vapour expands through a turbine, generating power. This decreases the temperature and pressure of the vapour and some condensation may occure.
Process 1-2 is isentropic expansion in the turbine.
PROCESS 2-3 :-
The wet vapour then enters a condenser, Where it is condensed at a constant pressure to become a saturated liquid. Process 2-3 is constant pressure heat rejection or isobaric heat rejection by the condenser.
PROCESS 3-4 :-
The working fluid is pumped from low to high pressure. As the fluid is a liquid at this stage, the pump requires little input energy. Process 3-4 is isentropic compression in the pump.
PROCESS 4-1 :-
The high-pressure liquid enters a boiler, Where it is heated at constant pressure by an external heat source to become a dry saturated vapour. Process 4-1 is constant pressure heat addition or isobaric heat transfer addition or isobaric heat transfer by the boiler.
GIVEN INPUTS :-
Turbine inlet pressure = 30 bars
Turbine inlet temperature = 400 C
Turbine outlet pressure or Condenser inlet pressure = 0.05 bars.
MATLAB CODE :-
The MATLAB code of Rankine Cycle as below,
MATLAB CODE EXPLANATION :-
- Program start with the writing comments
- Then add clear all, close all and clc.
- After that put Inputs like Turbine inlet pressure, Turbine inlet temperature and Turbine outlet pressure which take from Xsteam file.
- Defining the spacific heat for the values for liquid and vapour using the Xsteam table
- Then define the saturation temperature Tsat using Xsteam.
- After that properties specific enthalpy and entropy at state ,1,2,3,4 using the Xsteam table
- Then calculate the turbine work,pump work, net work, thermal efficiency, specific fuel consumpation.
- Then plot the saturation dome along with the rankine cycle process curve in T-S diagram.
- Then plot the saturation dome along with the rankine cycle process curves in H-S diagram.
- After that display the result in command window.
ERROR FACING :-
Facing the error while program as below,


The error occure if we do not properly define the correct variable, It can be corrected by writing in proper way.
RESULT:-
From above results, we can see that thr given problem statement is executed by calculating the thermodynamic properties and plotting the curves of all the species.
Specific enthalpy and entropy values are calculated for different states are calculated for different states and T-S and H-S diagram are plotted.
Result of code as below,

1-Net work done = 1117.87 kJ/kg
2-Thermal Efficiency = 36.17%
3-Back work ratio = 0.002674