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 /1922/CH4/EX4.8/4_8.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 '1922/CH4/EX4.8/4_8.sce')
-rwxr-xr-x | 1922/CH4/EX4.8/4_8.sce | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/1922/CH4/EX4.8/4_8.sce b/1922/CH4/EX4.8/4_8.sce new file mode 100755 index 000000000..c36e97bc1 --- /dev/null +++ b/1922/CH4/EX4.8/4_8.sce @@ -0,0 +1,17 @@ +clc
+clear
+//Initialization of variables
+m=5000 ///kg/h
+cp=3.2 //kJ/kg K
+Ts=30+273.1 //K
+t1=220 //C
+t2=40 //C
+Q=2.88*10^6 //kJ
+//calculations
+Q=m*cp*(t2-t1)
+dss=m*cp*log((t2+273.1)/(t1+273.1))
+Wlost=Ts*dss-Q
+eff=Ts*dss/Q
+//results
+printf("Lost work = %d kJ",Wlost)
+printf("\n Efficiency = %.3f",eff)
|