summaryrefslogtreecommitdiff
path: root/3785/CH12/EX12.10/Ex12_10.sce
diff options
context:
space:
mode:
authorprashantsinalkar2017-10-10 12:27:19 +0530
committerprashantsinalkar2017-10-10 12:27:19 +0530
commit7f60ea012dd2524dae921a2a35adbf7ef21f2bb6 (patch)
treedbb9e3ddb5fc829e7c5c7e6be99b2c4ba356132c /3785/CH12/EX12.10/Ex12_10.sce
parentb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (diff)
downloadScilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.tar.gz
Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.tar.bz2
Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.zip
initial commit / add all books
Diffstat (limited to '3785/CH12/EX12.10/Ex12_10.sce')
-rw-r--r--3785/CH12/EX12.10/Ex12_10.sce14
1 files changed, 14 insertions, 0 deletions
diff --git a/3785/CH12/EX12.10/Ex12_10.sce b/3785/CH12/EX12.10/Ex12_10.sce
new file mode 100644
index 000000000..284179459
--- /dev/null
+++ b/3785/CH12/EX12.10/Ex12_10.sce
@@ -0,0 +1,14 @@
+// Example 12_10
+clc;funcprot(0);
+// Given data
+u_0=100;// The average speed in m/s
+r=1.31;// The specific heat ratio
+a_0=446.1;// m/s
+
+// Calculation
+// (a)
+u_out_1=((2/(r+1))*a_0)+(((r-1)/(r+1))*u_0);// The outflow speed of section 1 in m/s
+mfr_ratio_1=(u_out_1/a_0)^(2/(r-1))*(u_out_1/u_0);// The mass flow rate ratio of section 1
+u_out_2=-(((2/(r+1))*a_0)-(((r-1)/(r+1))*u_0));// The outflow speed of section 2 in m/s
+mfr_ratio_2=(-u_out_2/a_0)^(2/(r-1))*(-u_out_2/u_0);// The mass flow rate ratio of section 2
+printf("\n(a)The outflow speed of section 1,u_out=%3.1f m/s \n The outflow speed of section 1,u_out=%3.1f m/s \n(b)The mass flow rate ratio of section 1 is %1.3f \n The mass flow rate ratio of section 2 is %1.3f",u_out_1,u_out_2,mfr_ratio_1,mfr_ratio_2);