summaryrefslogtreecommitdiff
path: root/2870/CH11/EX11.1/Ex11_1.sce
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /2870/CH11/EX11.1/Ex11_1.sce
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 '2870/CH11/EX11.1/Ex11_1.sce')
-rwxr-xr-x2870/CH11/EX11.1/Ex11_1.sce26
1 files changed, 26 insertions, 0 deletions
diff --git a/2870/CH11/EX11.1/Ex11_1.sce b/2870/CH11/EX11.1/Ex11_1.sce
new file mode 100755
index 000000000..3d43e271a
--- /dev/null
+++ b/2870/CH11/EX11.1/Ex11_1.sce
@@ -0,0 +1,26 @@
+clc;clear;
+//Example 11.1
+
+//given values
+P1=0.14;
+P2=0.8;
+m=0.05;
+
+//from refrigerant-134a tables
+h1=239.16;
+s1=0.94456;
+h2=275.39;
+h3=95.47;
+
+//calculation
+s2=s1;//isentropic process
+h4=h3;//throttling
+QL=(h1-h4)*m;
+Wm=m*(h2-h1);
+Qh=m*(h2-h3);
+Qh=ceil(Qh);
+COPR=QL/Wm;
+disp(QL,'the rate of heat removal from the refrigerated space in kW');
+disp(Wm,'the power input to the compressor in kW');
+disp(Qh,'the rate of heat rejection to the environment in kW');
+disp(COPR,'the COP of the refrigerator');