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 /1460/CH13/EX13.3/13_3.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 '1460/CH13/EX13.3/13_3.sce')
-rwxr-xr-x | 1460/CH13/EX13.3/13_3.sce | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/1460/CH13/EX13.3/13_3.sce b/1460/CH13/EX13.3/13_3.sce new file mode 100755 index 000000000..df59b0cd5 --- /dev/null +++ b/1460/CH13/EX13.3/13_3.sce @@ -0,0 +1,21 @@ +clc
+//initialization of variables
+Mn=3
+Mni=0.2
+w=10 //lbm/sec
+g=1.4
+P=200 //lb/in^2
+T=400+460 //R
+//calculations
+Astar=w*sqrt(53.3*T) *((g+1)/2)^3 /(P*sqrt(g*32.2))
+A1ratio=(2/(g+1) + (g-1)*Mni^2 /(g+1))^3 /Mni
+A1=A1ratio*Astar
+A2ratio=(2/(g+1) + (g-1)*Mn^2 /(g+1))^3 /Mn
+A2=A2ratio*Astar
+Pexit=P/(1+ Mni*Mn^2)^(g/(g-1))
+//results
+printf("Throat Area = %.2f in^2",Astar)
+printf("\n Inlet Area = %.2f in^2",A1)
+printf("\n Exit Area = %.2f in^2",A2)
+printf("\n Exit pressure = %.2f lb/in^2",Pexit)
+//There is a printing mistake in the textbook for the formula of Exit area
|