summaryrefslogtreecommitdiff
path: root/2870/CH8/EX8.8/Ex8_8.sce
diff options
context:
space:
mode:
Diffstat (limited to '2870/CH8/EX8.8/Ex8_8.sce')
-rwxr-xr-x2870/CH8/EX8.8/Ex8_8.sce22
1 files changed, 22 insertions, 0 deletions
diff --git a/2870/CH8/EX8.8/Ex8_8.sce b/2870/CH8/EX8.8/Ex8_8.sce
new file mode 100755
index 000000000..3a69d0ee7
--- /dev/null
+++ b/2870/CH8/EX8.8/Ex8_8.sce
@@ -0,0 +1,22 @@
+clc;clear;
+//Example 8.8
+
+//given data
+T0=20+273;//in K
+P1=0.14;
+T1=-10;
+P2=0.8;
+T2=50;
+
+//the properties of refrigerant
+//at inlet
+h1=246.36;
+s1=0.9724;
+//at outlet
+h2=286.69;
+s2=0.9802;
+dO=h2-h1-T0*(s2-s1);// O refers to exergy
+dO=round(dO);
+disp(dO,'the exergy change of the refrigerant in kJ/kg')
+wmin=dO;
+disp(wmin,'the minimum work input that needs to be supplied is in kJ/kg')