summaryrefslogtreecommitdiff
path: root/2417/CH6/EX6.21/Ex6_21.sce
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.21/Ex6_21.sce
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.21/Ex6_21.sce')
-rwxr-xr-x2417/CH6/EX6.21/Ex6_21.sce16
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);