diff options
Diffstat (limited to '2417/CH6/EX6.25')
-rwxr-xr-x | 2417/CH6/EX6.25/Ex6_25.sce | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/2417/CH6/EX6.25/Ex6_25.sce b/2417/CH6/EX6.25/Ex6_25.sce new file mode 100755 index 000000000..805cfff20 --- /dev/null +++ b/2417/CH6/EX6.25/Ex6_25.sce @@ -0,0 +1,17 @@ +clear;
+clc;
+printf("\t\t\tProblem Number 6.25\n\n\n");
+// Chapter 6: The Ideal Gas
+// Problem 6.25 (page no. 268)
+// Solution
+
+//data given
+T2=500+273; //Celsius temperature converted to Kelvin //final temperature
+T1=20+273; //Celsius temperature converted to Kelvin //initial temperature
+cp=1.0062; //specific heat at constant pressure //kJ/kg*K
+//From the energy equation for the constant-pressure process,the heat transferred is deltah.Therefore,
+//q=deltah=cp*(T2-T1)
+deltah=cp*(T2-T1); //heat transferred //kJ/kg //into system
+printf("The heat transferred is per kilogram of air %f kJ/kg\n",deltah);
+deltas=cp*log(T2/T1); //increase in entropy //kJ/kg*K
+printf("The increase in entropy per kilogram of air is %f kJ/kg*K\n",deltas);
|