diff options
Diffstat (limited to '2870/CH17/EX17.2/Ex17_2.sce')
-rwxr-xr-x | 2870/CH17/EX17.2/Ex17_2.sce | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/2870/CH17/EX17.2/Ex17_2.sce b/2870/CH17/EX17.2/Ex17_2.sce new file mode 100755 index 000000000..adb616759 --- /dev/null +++ b/2870/CH17/EX17.2/Ex17_2.sce @@ -0,0 +1,17 @@ +clc;clear;
+//Example 17.2
+
+//given data
+V=200;
+T=30+273;//converted in K
+
+//from Table A-2a
+R=0.287;//in kJ/kg-K
+k=1.4;
+
+//calculations
+c=sqrt(k*R*T*1000);//factor of 1000 to convert kJ to J
+c=ceil(c);
+disp(c,'the speed of sound in m/s');
+Ma=V/c;
+disp(Ma,'the Mach number at the diffuser inlet')
|