summaryrefslogtreecommitdiff
path: root/2870/CH17/EX17.3/Ex17_3.sce
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /2870/CH17/EX17.3/Ex17_3.sce
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 '2870/CH17/EX17.3/Ex17_3.sce')
-rwxr-xr-x2870/CH17/EX17.3/Ex17_3.sce26
1 files changed, 26 insertions, 0 deletions
diff --git a/2870/CH17/EX17.3/Ex17_3.sce b/2870/CH17/EX17.3/Ex17_3.sce
new file mode 100755
index 000000000..3bcbe259d
--- /dev/null
+++ b/2870/CH17/EX17.3/Ex17_3.sce
@@ -0,0 +1,26 @@
+clc;clear;
+//Example 17.3
+
+//given data
+T0=200+273;//converted in K
+P0=1400;
+//stagnant temp. & pressure is same as inlet due to small inlet velocity
+P=1200;
+m=3;
+
+//from Table A-2a
+cp=0.846;//in kJ/kg-K
+R=0.1889;//in kJ/kg-K
+k=1.289;
+
+//calculations
+T=T0*(P/P0)^((k-1)/k);
+V=sqrt(2*cp*(T0-T)*1000);//factor of 1000 to convert kJ to J
+p=P/(R*T);
+A=m/(p*V);
+c=sqrt(k*R*T*1000);//factor of 1000 to convert kJ to J
+Ma=V/c;
+disp(V,'velocity in m/s');
+disp(p,'density in kg/m^3');
+disp((A*10000),'flow area in cm^2');
+disp(Ma,'Mach number');