summaryrefslogtreecommitdiff
path: root/2417/CH6/EX6.25
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /2417/CH6/EX6.25
downloadScilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip
initial commit / add all books
Diffstat (limited to '2417/CH6/EX6.25')
-rwxr-xr-x2417/CH6/EX6.25/Ex6_25.sce17
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);