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 /3685/CH10/EX10.7 | |
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 '3685/CH10/EX10.7')
-rw-r--r-- | 3685/CH10/EX10.7/Ex10_7.sce | 19 | ||||
-rw-r--r-- | 3685/CH10/EX10.7/Ex10_7.txt | 5 |
2 files changed, 24 insertions, 0 deletions
diff --git a/3685/CH10/EX10.7/Ex10_7.sce b/3685/CH10/EX10.7/Ex10_7.sce new file mode 100644 index 000000000..45b16133b --- /dev/null +++ b/3685/CH10/EX10.7/Ex10_7.sce @@ -0,0 +1,19 @@ +clc
+P1 = 300 // Initial gas pressure in kPa
+V1 = 0.07 // Initial volume of gas in m^3
+m = 0.25 // Mass of gas in kg
+T1 = 80 // Initial temperature of gas in degree Celsius
+R = (P1*V1)/(m*(T1+273)) // constant
+P2 = P1 // process condition
+V2 = 0.1 // Final volume in m^3
+T2 = (P2*V2)/(m*R) // Final temperature in K
+W = -25 //Work done in kJ
+cv = -W/(m*(T2-T1-273)) // Constant volume heat capacity in kJ/kg
+cp = R+cv //Constant pressure heat capacity in kJ/kg
+S21 = m*cp*log(V2/V1) // Entropy change
+printf("\n Example 10.7")
+printf("\n Cv of the gas is %f kJ/kg K",cv)
+printf("\n Cp of the gas is %f kJ/kg K",cp)
+printf("\n Increase in the entropy of the gas is %f kJ/kg K",S21)
+//The answers vary due to round off error
+
diff --git a/3685/CH10/EX10.7/Ex10_7.txt b/3685/CH10/EX10.7/Ex10_7.txt new file mode 100644 index 000000000..0c45f70bf --- /dev/null +++ b/3685/CH10/EX10.7/Ex10_7.txt @@ -0,0 +1,5 @@ +
+ Example 10.7
+ Cv of the gas is 0.661001 kJ/kg K
+ Cp of the gas is 0.898961 kJ/kg K
+ Increase in the entropy of the gas is 0.080159 kJ/kg K
\ No newline at end of file |