summaryrefslogtreecommitdiff
path: root/2417/CH6/EX6.33
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.33
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.33')
-rwxr-xr-x2417/CH6/EX6.33/Ex6_33.sce20
1 files changed, 20 insertions, 0 deletions
diff --git a/2417/CH6/EX6.33/Ex6_33.sce b/2417/CH6/EX6.33/Ex6_33.sce
new file mode 100755
index 000000000..1a173ea77
--- /dev/null
+++ b/2417/CH6/EX6.33/Ex6_33.sce
@@ -0,0 +1,20 @@
+clear;
+clc;
+printf("\t\t\tProblem Number 6.33\n\n\n");
+// Chapter 6: The Ideal Gas
+// Problem 6.33 (page no. 279)
+// Solution
+
+//data given in problem 6.32,
+n=1.3; //p*v^1.3=constant
+k=1.4; //k=cp/cv //ratio of specific heats
+cp=0.24; //specific heat at constant pressure //Btu/lbm*R
+T2=600; //absolute final temperature //unit:R
+T1=1500; //absolute initial temperature //unir:R
+R=53.3; //Unit:ft*lbf/lbm*R //constant of proportionality
+J=778; //conversion factor
+//Equation,
+// T1/T2=((p1/p2)^((n-1)/n));
+//rearranging,
+p1byp2=exp(log(T1/T2)/((n-1)/n)); //The ratio of inlet to outlet pressure
+printf("The ratio of inlet to outlet pressure is %f\n",p1byp2);