summaryrefslogtreecommitdiff
path: root/167/CH8/EX8.12/ex12.sce
diff options
context:
space:
mode:
Diffstat (limited to '167/CH8/EX8.12/ex12.sce')
-rwxr-xr-x167/CH8/EX8.12/ex12.sce13
1 files changed, 13 insertions, 0 deletions
diff --git a/167/CH8/EX8.12/ex12.sce b/167/CH8/EX8.12/ex12.sce
new file mode 100755
index 000000000..a1b8d6f5c
--- /dev/null
+++ b/167/CH8/EX8.12/ex12.sce
@@ -0,0 +1,13 @@
+//example 12
+//exergy destroyed during stirring of gas
+clear
+clc
+T0=530 //temperature of surrounding air in R
+m=2 //mass of air in insulated rigid tank in lbm
+cv=0.172 //in Btu/lbm-R
+T2=590 //initial temperature of air in R
+T1=530 //final temperature of air in R
+Xdestroyed=T0*m*cv*log(T2/T1) //exergy destroyed in Btu
+Wrevin=m*cv*(T2-T1)-Xdestroyed //minimum work input in Btu
+printf("\n Hence, the exergy destroyed is = %.1f Btu. \n",Xdestroyed);
+printf("\n Hence, the reversible work for this process is = %.1f Btu. \n",Wrevin);