diff options
Diffstat (limited to '2126/CH8/EX8.5.21/8_5_21.sce')
-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)
|