diff options
author | priyanka | 2015-06-24 15:03:17 +0530 |
---|---|---|
committer | priyanka | 2015-06-24 15:03:17 +0530 |
commit | b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch) | |
tree | ab291cffc65280e58ac82470ba63fbcca7805165 /1775/CH2/EX2.9/Chapter2_Example9.sce | |
download | Scilab-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.9/Chapter2_Example9.sce')
-rwxr-xr-x | 1775/CH2/EX2.9/Chapter2_Example9.sce | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/1775/CH2/EX2.9/Chapter2_Example9.sce b/1775/CH2/EX2.9/Chapter2_Example9.sce new file mode 100755 index 000000000..0e5ece4f1 --- /dev/null +++ b/1775/CH2/EX2.9/Chapter2_Example9.sce @@ -0,0 +1,30 @@ +//Chapter-2, Illustration 9, Page 65
+//Title: Gas Power Cycles
+//=============================================================================
+clc
+clear
+
+//INPUT DATA
+e=7.5;//Expansion ratio
+c=15;//Compression ratio
+P1=98;//Pressure at point 1 in kN/(m^2)
+P4=258;//Pressure at point 4 in kN/(m^2)
+T1=317;//Temperature at point 1 in K
+y=1.4;//Ratio of specific heats
+
+//CALCULATIONS
+T4=T1*(P4/P1);//Temperature at point 4 in K
+T3=T4*(e^(y-1));//Temperature at point 3 in K
+t3=T3-273;//Temperature at point 3 in oC
+T2=T1*(c^(y-1));//Temperature at point 2 in K
+n=(1-((T4-T1)/(y*(T3-T2))))*100;//Thermal efficiency
+
+//OUTPUT
+mprintf('Maximum temperature attained during the cycle is %3.1f oC \n Thermal efficiency of the cycle is %3.1f percent',t3,n)
+
+
+
+
+
+
+//==============================END OF PROGRAM=================================
|