summaryrefslogtreecommitdiff
path: root/3831/CH3/EX3.7/Ex3_7.sce
diff options
context:
space:
mode:
authorprashantsinalkar2017-10-10 12:27:19 +0530
committerprashantsinalkar2017-10-10 12:27:19 +0530
commit7f60ea012dd2524dae921a2a35adbf7ef21f2bb6 (patch)
treedbb9e3ddb5fc829e7c5c7e6be99b2c4ba356132c /3831/CH3/EX3.7/Ex3_7.sce
parentb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (diff)
downloadScilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.tar.gz
Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.tar.bz2
Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.zip
initial commit / add all books
Diffstat (limited to '3831/CH3/EX3.7/Ex3_7.sce')
-rw-r--r--3831/CH3/EX3.7/Ex3_7.sce26
1 files changed, 26 insertions, 0 deletions
diff --git a/3831/CH3/EX3.7/Ex3_7.sce b/3831/CH3/EX3.7/Ex3_7.sce
new file mode 100644
index 000000000..b60011599
--- /dev/null
+++ b/3831/CH3/EX3.7/Ex3_7.sce
@@ -0,0 +1,26 @@
+// Example 3_7
+clc;funcprot(0);
+// Given data
+T_1=240;// °F
+T_2=80;// °F
+p_1=150;// psia
+p_2=14.7;// psia
+c_p=0.240;// Btu/lbm · R
+c_v=0.172;// Btu/lbm · R
+
+// Solution
+// (a)
+deltau=c_v*((T_2+459.67)-(T_1+459.67));// Btu/lbm
+deltah=c_p*(T_2-T_1);// Btu/lbm
+printf('\n(a)The change in specific internal energy,u_2-u_1=%2.1f Btu/lbm \n The change in specific enthalpy,h_2-h_1=%2.1f kJ/kg',deltau,deltah);
+// (b)
+// Values for u and h for variable specific heat air can be found in Table C.16.
+T_1=T_1+459.67;// R
+h_1=167.56;// Btu/lbm
+u_1=119.58;// Btu/lbm
+T_2=T_2+459.67;// R
+h_2=129.06;// Btu/lbm
+u_2=92.04;// Btu/lbm
+deltau=u_2-u_1;// Btu/lbm
+deltah=h_2-h_1;// Btu/lbm
+printf('\n(b)The change in specific internal energy,u_2-u_1=%2.1f Btu/lbm \n The change in specific enthalpy,h_2-h_1=%2.1f kJ/kg',deltau,deltah);