Project 2 - Rankine cycle Simulator
AIM:
Write a program in MATLAB for Rankine
cycle simulation.
RANKINE CYCLE
The Rankine cycle is a model used to predict the performance of systems.
It was also used to study the performance of reciprocating steam engines.
There are four processes in the Rankine cycle.
<!--[if !supportLists]-->·
<!--[endif]-->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 occur. In
other words, Process 3-4 is Isentropic expansion.
<!--[if !supportLists]-->·
<!--[endif]-->Process 2–3: The wet vapour then
enters a condenser, where it is
condensed at a constant pressure to become a liquid. In other words,
Process 4-1 is Constant pressure heat rejection in condenser.
<!--[if !supportLists]-->·
<!--[endif]-->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. In other words, Process
1-2 is Isentropic compression.
<!--[if !supportLists]-->· <!--[endif]-->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. In other words, Process 2-3 is Constant pressure heat addition in boiler.
FORMULA USE FOR THE CALCULATION
<!--[if !supportLists]-->1.
<!--[endif]-->Turbine work, Wt = H1-H2
<!--[if !supportLists]-->2.
<!--[endif]-->Pump work, Wp = H4-H3
<!--[if !supportLists]-->3.
<!--[endif]-->Heat addition Qin = H1-H4
<!--[if !supportLists]-->4.
<!--[endif]-->Heat rejection Qout = H3-H2
<!--[if !supportLists]-->5. <!--[endif]-->Efficiency
<math>
<!--[if gte msEquation 12]>
<!--[if !supportLists]-->6. <!--[endif]-->Back-work ratio
<math>
<!--[if gte msEquation 12]>
<!--[if !supportLists]-->7. <!--[endif]-->Specific steam consumption
<math>
STEP-WISE EXPLANATION OF CODE FOR FIND THE MAXIMA OF STALAGMITE FUNCTION:
- First, I will print the general information
regarding the Rankine cycle like process occurs in Rankine cycle.
- I take the inputs like turbine inlet pressure(P1)
and temperature(T1) and turbine outlet pressure(P2).
- Then we calculate the state point variable which
is specific enthalpy(H), specific entropy(S) at each point with the help of Xsteam
subfunction.
- For point 2, we calculate the dryness fraction
with this formula.<!--[if gte msEquation 12]>
<![endif]--><!--[if !msEquation]-->x = S 2 - S f 2 S g 2 - S f 2 <!--[endif]-->. - We have to plot the saturation curve for T-S
diagram so we use for loop to calculate the specific entropy at each
temperature range. (For water the critical temperature is 374̊ C)
- Then we plot line to connect the S1
and S2 point.
- Then we use IF command for the dryness fraction
greater than 1. So, if dryness fraction greater than 1 than we plot the right curve.
- We plot the line to connect the state point 2,3
and 4.
- To connect the state-point 4 and 1 we have to
use for loop because it is not connected by the straight line.so we calculate
the specific entropy at each temperature which is lies between T4
and T1. So, we get the complete T-S diagram.
- For plotting H-S diagram first we plot the
saturation curve for H-S diagram with help of for loop to calculate the
specific enthalpy at each temperature value.
- Then we plot the line to connect the state
points.
- We have to calculate turbine work, pump work,
heat addition and heat rejection to find efficiency of the cycle.
- We also calculate the back-work ration and specific steam consumption with help of formula.
- Then we print the variable at each point in command window and we also print the turbine work, pump work, efficiency, etc.
MAIN PROGRAM
I attached the main program file with this challenges.
OUTPUT OF PROGRAM
GRAPH
1.T-S Diagram 2.H-S Diagram