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 /2126/CH8/EX8.5.21 | |
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 '2126/CH8/EX8.5.21')
-rwxr-xr-x | 2126/CH8/EX8.5.21/8_5_21.sce | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/2126/CH8/EX8.5.21/8_5_21.sce b/2126/CH8/EX8.5.21/8_5_21.sce new file mode 100755 index 000000000..5f219053c --- /dev/null +++ b/2126/CH8/EX8.5.21/8_5_21.sce @@ -0,0 +1,17 @@ +clc
+clear
+
+//Input data
+Px=45 //Static pressure in kPa
+T=-20+273 //Static temperature in K
+Poy=395 //Stagnation pressure in kPa
+k=1.4 //Adiabatic constant
+R=287 //Specific gas constant in J/kg-K
+
+//Calculation
+p1=Poy/Px //Pressure ratio
+Mx=2.536 //Mach number from normal shock gas tables @p1
+Cx=Mx*sqrt(k*R*T) //Air velocity in m/s
+
+//Output
+printf('Mach number is %3.3f\n Air velocity is %3i m/s',Mx,Cx)
|