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 /2015/CH8/EX8.4/8_4.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 '2015/CH8/EX8.4/8_4.sce')
-rwxr-xr-x | 2015/CH8/EX8.4/8_4.sce | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/2015/CH8/EX8.4/8_4.sce b/2015/CH8/EX8.4/8_4.sce new file mode 100755 index 000000000..d3395d14f --- /dev/null +++ b/2015/CH8/EX8.4/8_4.sce @@ -0,0 +1,24 @@ + +clc
+//initialisation of variables
+t1=261 //temp in k
+t3=310 //temp in k
+cp=1.005 //kj/kg
+r=5
+//CALCULATIONS
+t2=(t1*(r)^((g-1)/g))
+t4=(t3/(r)^((g-1)/g))
+re=cp*(t1-t4)
+ma=(3.5164*3600)/re
+woc=cp*(t2-t1)
+woe=cp*(t3-t4)
+nw=woc-woe
+cop1=re/nw
+cop2=t1/(t3-t1)
+reff=cop1/cop2
+//RESULTS
+printf('temparature at states 2 and 4 are %2fk and %2fk',t2,t4)
+printf('\nmass of air per hour is %2fkg/h',ma)
+printf('\nnet work required is %2fkj/kg',nw)
+printf('\ncoefficient of perfoemance is %2f',cop1)
+printf('\nrelative efficiency is %2f',reff)
|