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/CH4/EX4.2 | |
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/CH4/EX4.2')
-rwxr-xr-x | 2015/CH4/EX4.2/4_2.sce | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/2015/CH4/EX4.2/4_2.sce b/2015/CH4/EX4.2/4_2.sce new file mode 100755 index 000000000..f20514219 --- /dev/null +++ b/2015/CH4/EX4.2/4_2.sce @@ -0,0 +1,18 @@ +clc
+//initialisation of variables
+v=0.1008*10^-2
+p1=40 //pressure in bar
+p2=0.08 //pressure in bar
+wt=903.8 //kj/kg
+wp=4.02 //kj/kg
+h1=2801 //kj/kg
+h3=174 //kj/kg
+//CALCULATIONS
+pw=v*(p1-p2)
+wn=wt-wp
+qs=h1-(h3+wp)
+reff=wn/qs
+wr=wn/wt
+//RESULTS
+printf('heat supplied is %2f',qs)
+printf('\nrankine efficiency and work ratio is %2f and %2f',reff,wr)
|