summaryrefslogtreecommitdiff
path: root/494/CH3/EX3.6.a
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /494/CH3/EX3.6.a
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 '494/CH3/EX3.6.a')
-rwxr-xr-x494/CH3/EX3.6.a/3_6_a.sce17
1 files changed, 17 insertions, 0 deletions
diff --git a/494/CH3/EX3.6.a/3_6_a.sce b/494/CH3/EX3.6.a/3_6_a.sce
new file mode 100755
index 000000000..b3a1d4c60
--- /dev/null
+++ b/494/CH3/EX3.6.a/3_6_a.sce
@@ -0,0 +1,17 @@
+//all the quantities are expressed in SI units
+
+V2 = 100*1609/3600; //test section flow velocity converted from miles per hour to meters per second
+p_atm = 101000; //atmospheric pressure
+p2 = p_atm; //pressure of the test section which is vented to atmosphere
+rho = 1.23; //air density at sea level
+ratio = 10; //contraction ratio of the nozzle
+
+//the pressure difference in the wind tunnel can be calculated as
+delta_p = rho/2*(V2^2)*(1-(1/ratio^2));
+
+//thus the reservoir pressure can be given as
+p1 = p2 + delta_p;
+
+p1_atm = p1/p_atm; //reservoir pressure expressed in units of atm
+
+printf("\nRESULTS\n--------\nThe reservoir pressure is\n p1 = %1.2f atm",p1_atm) \ No newline at end of file