diff options
Diffstat (limited to '2417/CH6/EX6.21/Ex6_21.sce')
-rwxr-xr-x | 2417/CH6/EX6.21/Ex6_21.sce | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/2417/CH6/EX6.21/Ex6_21.sce b/2417/CH6/EX6.21/Ex6_21.sce new file mode 100755 index 000000000..61d26a3c2 --- /dev/null +++ b/2417/CH6/EX6.21/Ex6_21.sce @@ -0,0 +1,16 @@ +clear;
+clc;
+printf("\t\t\tProblem Number 6.21\n\n\n");
+// Chapter 6: The Ideal Gas
+// Problem 6.21 (page no. 264)
+// Solution
+
+//data
+T2=100+273; //Celsius temperature converted to Kelvin //final temperature
+T1=20+273; //Celsius temperature converted to Kelvin //initial temperature
+cv=0.7186; //specific heat at constant volume //kJ/kg*K
+//Now,
+deltas=cv*log(T2/T1); //change in entropy //Unit:kJ/kg*K
+//For 0.2 kg,
+deltaS=(0.2)*deltas; //The change in enthalpy in kJ/K
+printf("For 0.2 kg of air,The change in enthalpy is %f kJ/K\n",deltaS);
|