diff options
author | priyanka | 2015-06-24 15:03:17 +0530 |
---|---|---|
committer | priyanka | 2015-06-24 15:03:17 +0530 |
commit | b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch) | |
tree | ab291cffc65280e58ac82470ba63fbcca7805165 /2015/CH5/EX5.5/5_5.sce | |
download | Scilab-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.5/5_5.sce')
-rwxr-xr-x | 2015/CH5/EX5.5/5_5.sce | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/2015/CH5/EX5.5/5_5.sce b/2015/CH5/EX5.5/5_5.sce new file mode 100755 index 000000000..1bb97e14b --- /dev/null +++ b/2015/CH5/EX5.5/5_5.sce @@ -0,0 +1,25 @@ +
+clc
+//initialisation of variables
+clear
+t1=593 //temparature in k
+p2=1.05 //pressure in bar
+p1=7 //pressure in bar
+cp=1.005
+p3=3.696 //pressure in bar
+r=0.287 //kj/kgk
+a=6.25*10^-4
+g= 32.2 //ft/sec^2
+R= 8.314
+//CALCULATIONS
+t2=t1*(p2/p1)^((g-1)/g)
+c2=44.72*(cp*(t1-t2))^(0.5)
+rho2=p2*100/(r*t2)
+m2=rho2*c2*a
+t3=t1*(p3/p1)^((g-1)/g)
+c3=44.72*(cp*(t1-t3))^(0.5)
+rho3=p3*100/(R*t3)
+a3=m2/(rho3*c3)
+//RESULTS
+printf('exit velocity and mass flow rate are %2fm/s and %2fkg/s',c2,m2)
+printf('\nthroat area is %2fm*m',a3)
|