diff options
Diffstat (limited to '3765/CH3/EX3.13/Ex3_13.sce')
-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) + |