summaryrefslogtreecommitdiff
path: root/1808/CH4/EX4.7/Chapter4_Example7.sce
diff options
context:
space:
mode:
authorprashantsinalkar2017-10-10 12:27:19 +0530
committerprashantsinalkar2017-10-10 12:27:19 +0530
commit7f60ea012dd2524dae921a2a35adbf7ef21f2bb6 (patch)
treedbb9e3ddb5fc829e7c5c7e6be99b2c4ba356132c /1808/CH4/EX4.7/Chapter4_Example7.sce
parentb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (diff)
downloadScilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.tar.gz
Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.tar.bz2
Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.zip
initial commit / add all books
Diffstat (limited to '1808/CH4/EX4.7/Chapter4_Example7.sce')
-rw-r--r--1808/CH4/EX4.7/Chapter4_Example7.sce34
1 files changed, 34 insertions, 0 deletions
diff --git a/1808/CH4/EX4.7/Chapter4_Example7.sce b/1808/CH4/EX4.7/Chapter4_Example7.sce
new file mode 100644
index 000000000..05967e0af
--- /dev/null
+++ b/1808/CH4/EX4.7/Chapter4_Example7.sce
@@ -0,0 +1,34 @@
+clc
+clear
+//INPUT DATA
+pb=25;//Saturated vapour in bar
+pc=0.2;//Saturated liquid in bar
+T111=300;//Temperature in degree C
+h1=2800.9;//Enthalpy in kJ/kg
+hb=962;//Enthalpy in kJ/kg
+h5=2609.9;//Enthalpy in kJ/kg
+h3=251.5;//Enthalpy in kJ/kg
+S5=7.9094;//Entropy in kJ/kg.K
+S3=0.8321;//Entropy in kJ/kg.K
+Sb=2.5543;//Entropy in kJ/kg.K
+S1=6.2536;//Entropy in kJ/kg.K
+x1=0.8;////Quality of steam
+h111=3008.9;//Enthalpy in kJ/kg
+S111=6.644;////Entropy in kJ/kg.K
+
+
+//CALCULATIONS
+h11=(hb+x1*(h1-hb));//Enthalpy in kJ/kg
+S11=(Sb+x1*(S1-Sb));//Enthalpy in kJ/kg
+x21=((S11-S3)/(S5-S3));//quality of steam
+h21=(h3+(x21*(h5-h3)));//Enthalpy in kJ/kg
+nRi=(((h11-h21)/(h11-h3))*100);//Rankine cycle efficiency in percentage
+x2=((S1-S3)/(S5-S3));//quality of steam
+h2=h3+x2*(h5-h3);//Enthalpy in kJ/kg
+nRi2=(((h1-h2)/(h1-h3))*100);//Rankine cycle efficiency in percentage
+x211=((S111-S3)/(S5-S3));//quality of steam
+h211=(h3+(x211*(h5-h3)));//Enthalpy in kJ/kg
+nRi1=(((h111-h211)/(h111-h3))*100);//Rankine cycle efficiency in percentage
+
+//OUTPUT
+printf('(i) The Rankine cycle efficiency when steam is dry at turbine inlet is %3.2f percent \n(ii) The Rankine cycle efficiency when steam is saturated is %3.2f percentage \n(iii)The Rankine cycle efficiency when steam is superheated is %3.2f percent ',nRi,nRi2,nRi1)