summaryrefslogtreecommitdiff
path: root/2870/CH8/EX8.12/Ex8_12.sce
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /2870/CH8/EX8.12/Ex8_12.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/CH8/EX8.12/Ex8_12.sce')
-rwxr-xr-x2870/CH8/EX8.12/Ex8_12.sce19
1 files changed, 19 insertions, 0 deletions
diff --git a/2870/CH8/EX8.12/Ex8_12.sce b/2870/CH8/EX8.12/Ex8_12.sce
new file mode 100755
index 000000000..b4feb2437
--- /dev/null
+++ b/2870/CH8/EX8.12/Ex8_12.sce
@@ -0,0 +1,19 @@
+clc;clear;
+//Example 8.12
+
+//given data
+m=2;
+T0=70+460;//in R
+P1=20;
+T1=70+460;//in R
+T2=130+460;//in R
+
+//constants used
+Cv=0.172;//in Btu/lbm - F
+
+//calculations
+Xdestroyed=T0*m*Cv*log(T2/T1);
+disp(Xdestroyed,'exergy destroyed in Btu');
+Wrev=integrate('(1-T0/T)*m*Cv','T',T1,T2);
+Wrev=round(Wrev);
+disp(Wrev,'the reversible work in Btu')