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 /2504/CH7/EX7.10/7_10.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 '2504/CH7/EX7.10/7_10.sce')
-rwxr-xr-x | 2504/CH7/EX7.10/7_10.sce | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/2504/CH7/EX7.10/7_10.sce b/2504/CH7/EX7.10/7_10.sce new file mode 100755 index 000000000..79f22c8de --- /dev/null +++ b/2504/CH7/EX7.10/7_10.sce @@ -0,0 +1,25 @@ +clc
+//initialisation of variables
+clear
+p2= 67.2 //lbf/in^2
+p1= 63 //lbf/in62
+r= 1.4
+n= 0.6
+T1= 870 //R
+ma1= 0.8 //ft/sec
+//CALCULATIONS
+dt= (p2/p1)^((r-1)/r)-1
+dt1= dt/n
+T2= T1*(1+dt1)
+Ts1= T1*(1+0.5*(r-1)*ma1^2)
+ps1= p1*(1+0.5*(r-1)*ma1^2)^(r/(r-1))
+ps2= p2*(Ts1/T2)^(r/(r-1))
+dp= ps1-ps2
+//RESULTS
+ printf ('dT = %.5f ',dt)
+ printf ('\n dT1 = %.5f ',dt1)
+ printf ('\n Temperature = %.f R',T2)
+ printf ('\n Temperature = %.1f R',Ts1)
+ printf ('\n Pressure = %.1f lbf/in^2',ps1)
+ printf ('\n Pressure = %.1f lbf/in^2',ps2)
+ printf ('\n pressure difference = %.1f lbf/in^2',dp)
|