diff options
author | prashantsinalkar | 2017-10-10 12:27:19 +0530 |
---|---|---|
committer | prashantsinalkar | 2017-10-10 12:27:19 +0530 |
commit | 7f60ea012dd2524dae921a2a35adbf7ef21f2bb6 (patch) | |
tree | dbb9e3ddb5fc829e7c5c7e6be99b2c4ba356132c /3765/CH3/EX3.13 | |
parent | b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (diff) | |
download | Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.tar.gz Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.tar.bz2 Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.zip |
initial commit / add all books
Diffstat (limited to '3765/CH3/EX3.13')
-rw-r--r-- | 3765/CH3/EX3.13/Ex3_13.sce | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/3765/CH3/EX3.13/Ex3_13.sce b/3765/CH3/EX3.13/Ex3_13.sce new file mode 100644 index 000000000..f4d3590d0 --- /dev/null +++ b/3765/CH3/EX3.13/Ex3_13.sce @@ -0,0 +1,18 @@ +clc +// Example 3.13.py +// In example 3.12, what is the length of the duct required to choke the flow// + + +// Variable declaration from example 3.12 +M1 = 3.0 // mach number +C1 = 0.5222 // C1 = 4*f*L1star/D +f = 0.005 // friction coefficient +D = 0.4 // diameter of pipe (in ft) + +// Calculations +L1star = 0.5222 * D/4.0/f + + +// Result +printf("\n Length required to choke the flow is %.2f ft", L1star) + |