summaryrefslogtreecommitdiff
path: root/2126/CH4/EX4.12
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /2126/CH4/EX4.12
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 '2126/CH4/EX4.12')
-rwxr-xr-x2126/CH4/EX4.12/12.sce18
1 files changed, 18 insertions, 0 deletions
diff --git a/2126/CH4/EX4.12/12.sce b/2126/CH4/EX4.12/12.sce
new file mode 100755
index 000000000..8c15f5859
--- /dev/null
+++ b/2126/CH4/EX4.12/12.sce
@@ -0,0 +1,18 @@
+clc
+clear
+
+//input data
+t1=3 //Stagnation temperature ratio
+M2=0.8 //Mach number at exit
+
+//calculation
+t2=0.964 //Ratio of stagnation temperature at exit and critical state (Rayleigh,M2,k=1.4)
+p1=1.266 //Static Pressure ratio at exit from gas tables (Rayleigh,M2,k=1.4)
+t3=t2/t1 //Stagnation temperature ratio at critical state
+M1=0.29 //Mach number at entry from gas tables (Rayleigh,t3,k=1.4)
+p2=2.147 //Static pressure ratio at critical state from gas tables (Rayleigh,k=1.4,M1)
+p=p1/p2 //ratio of static pressures at exit and entry
+PL=(1-p)*100 //Percentage loss in static pressure in %
+
+//output
+printf('(A)Mach number at entry is %3.2f\n (B)Percentage loss in static pressure is %3i percent',M1,PL)