summaryrefslogtreecommitdiff
path: root/1775/CH2/EX2.7
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /1775/CH2/EX2.7
downloadScilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip
initial commit / add all books
Diffstat (limited to '1775/CH2/EX2.7')
-rwxr-xr-x1775/CH2/EX2.7/Chapter2_Example7.sce32
1 files changed, 32 insertions, 0 deletions
diff --git a/1775/CH2/EX2.7/Chapter2_Example7.sce b/1775/CH2/EX2.7/Chapter2_Example7.sce
new file mode 100755
index 000000000..628ef516e
--- /dev/null
+++ b/1775/CH2/EX2.7/Chapter2_Example7.sce
@@ -0,0 +1,32 @@
+//Chapter-2, Illustration 7, Page 62
+//Title: Gas Power Cycles
+//=============================================================================
+clc
+clear
+
+//INPUT DATA
+rv=16;//Compression ratio
+P1=0.1;//Pressure at point 1 in MPa
+T1=288;//Temperature at point 1 in K
+T3=1753;//Temperature at point 3 in K
+y=1.4;//Ratio of specific heats
+Cp=1.005;//Specific heat at constant pressure in kJ/kg-K
+R=0.287;//Universal gas constant in kJ/kg-K
+
+//CALCULATIONS
+T2=T1*(rv^(y-1));//Temperature at point 2 in K
+rc=T3/T2;//Cut-off ratio
+q1=Cp*(T3-T2);//Heat supplied in kJ/kg
+nth=(1-(((rc^y)-1)/((rv^(y-1))*y*(rc-1))))*100;//Cycle efficiency
+wnet=(q1*nth)/100;//Net work done in kJ/kg
+v1=(R*T1)/(P1*1000);//Speific volume at point 1 in (m^3)/kg
+v2=v1/rv;//Speific volume at point 2 in (m^3)/kg
+MEP=wnet/(v1-v2);//Mean effective pressure in kPa
+
+//OUTPUT
+mprintf('Cut-off ratio is %3.2f \n Heat supplied is %3.1f kJ/kg \n Cycle efficiency is %3.1f percent \n Mean effective pressure is %3.2f kPa',rc,q1,nth,MEP)
+
+
+
+
+//==============================END OF PROGRAM=================================