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.9 | |
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.9')
-rwxr-xr-x | 2504/CH7/EX7.9/7_9.sce | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/2504/CH7/EX7.9/7_9.sce b/2504/CH7/EX7.9/7_9.sce new file mode 100755 index 000000000..9dfa64453 --- /dev/null +++ b/2504/CH7/EX7.9/7_9.sce @@ -0,0 +1,21 @@ +clc
+//initialisation of variables
+clear
+r= 1.4
+R= 53.3 //ft lbf/lbm R
+g= 32.2 //ft/sec^2
+T1= 410 //R
+v= 2500 //ft/sec
+P1= 628 //lbf/in^2
+//CALCULATIONS
+v1= sqrt(r*g*R*T1)
+Ma1= v/v1
+Ts1= T1*(1+0.5*(r-1)*Ma1^2)
+Ps1= P1*(1+0.5*(r-1)*Ma1^2)^(r/(r-1))
+Ps2= Ps1*((r+1)/(2*r*Ma1^2-r+1))^(1/(r-1))*(0.5*(r+1)*Ma1^2/(1+0.5*(r-1)*Ma1^2))^(r/(r-1))
+//RESULTS
+printf ('acoustic velocity = %.f ft/sec',v1)
+printf ('\n Match number = %.2f ',Ma1)
+printf ('\n Stagnition temperature = %.f R',Ts1)
+printf ('\n Stagnition pressure = %.f lbf/ft^2',Ps1)
+printf ('\n Stagnition pressure = %.f lbf/ft^2',Ps2)
|