summaryrefslogtreecommitdiff
path: root/2015/CH5/EX5.6
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /2015/CH5/EX5.6
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 '2015/CH5/EX5.6')
-rwxr-xr-x2015/CH5/EX5.6/5_6.sce30
1 files changed, 30 insertions, 0 deletions
diff --git a/2015/CH5/EX5.6/5_6.sce b/2015/CH5/EX5.6/5_6.sce
new file mode 100755
index 000000000..3819dec5a
--- /dev/null
+++ b/2015/CH5/EX5.6/5_6.sce
@@ -0,0 +1,30 @@
+
+clc
+//initialisation of variables
+clear
+g=1.4 //gamma-const value
+p1=4.5 //pressure in bar
+p3=1.1 //pressure in bar
+cp=1.005 //kj/kgk
+rho4=0.5405 //density
+rho3=0.9725 //density
+t1=1023 //temparature in k
+t2=852.16 //temparature in k
+r=0.287 //cp-cv=const value
+m=0.5 //mass
+ieff=0.85 //isentropic efficiency
+R= 8.314
+//CALCULATIONS
+p2=0.528*p1
+t2=0.833*t1
+c2=44.72*(cp*(t1-t2))^(0.5)
+rho2=p2*100/(R*t2)
+a2=m/(rho3*c2)
+t3=t2*(p3/p2)^((g-1)/g)
+t4=t2-(ieff*(t2-t3))
+c3=44.72*(cp*(t1-t4))^(0.5)
+rho3=p2*100/(R*t4)
+a3=m/(rho4*c3)
+//RESULTS
+printf('throat area is %2fm*m',a2)
+printf('\nvelocity at exit,area at exit are %2fm/s and %2fm*m',c3,a3)