diff options
author | prashantsinalkar | 2017-10-10 12:27:19 +0530 |
---|---|---|
committer | prashantsinalkar | 2017-10-10 12:27:19 +0530 |
commit | 7f60ea012dd2524dae921a2a35adbf7ef21f2bb6 (patch) | |
tree | dbb9e3ddb5fc829e7c5c7e6be99b2c4ba356132c /3831/CH18/EX18.8/Ex18_8.sce | |
parent | b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (diff) | |
download | Scilab-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/CH18/EX18.8/Ex18_8.sce')
-rw-r--r-- | 3831/CH18/EX18.8/Ex18_8.sce | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/3831/CH18/EX18.8/Ex18_8.sce b/3831/CH18/EX18.8/Ex18_8.sce new file mode 100644 index 000000000..499697759 --- /dev/null +++ b/3831/CH18/EX18.8/Ex18_8.sce @@ -0,0 +1,20 @@ +// Example 18_8
+clc;funcprot(0);
+// Given data
+m=3.50;// kg
+T_1=20.0+273.15;// K
+p_1=0.101325;// MPa
+p_2=10.0;// MPa
+R_u=8.3143;// kJ/kg.K
+W_12=-100;// kJ
+
+// Calculation
+// (a)
+M_krypton=83.80;
+R_krypton=R_u/M_krypton;// kJ/kg.K
+Q_12=0;// kJ
+T_2=T_1-((W_12/(3*m*R_krypton/2)));// K
+// (b)
+S_p12=m*R_krypton*log(((T_2/T_1)^(5/2))*(p_1/p_2));// kJ/kg.K
+printf("\n(a)The final temperature of the krypton gas after compression,T_2=%3.0f K \n(b)The entropy production of the compression process,1(S_p)2=%1.2f kJ/kg.K",T_2,S_p12);
+// The answer provided in the textbook is wrong
|