Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Write a MATLAB Program that can solve for the flow rate distribution in a network of pipes using Hardy Cross Method. The program has to
Write a MATLAB Program that can solve for the flow rate distribution in a network of pipes using Hardy Cross Method. The program has to use Darcy Equation to take account head losses and handle maximum ten loops with a maximum of five lines in each loop Part 1: Verify that your program works with the test case shown below. Table 1 outlines the input data to be read into the program. Table 2 outlines the final solution for the flow rate distribution and head distribution with total head of 120 feet at node B. Delta Z across the system assumed zero. How many iterations does it take to arrive to the solution and what is the max percentage error of solution? Part 2: solve the water flow rate distribution on the bottom with all pipes at the same elevation. Find the pressure distribution throughout the network with 1000 kPa at node A. 2.4 cfs 2.1 cfs 1.6 1.0 1.4 cfs Cast Iron Pipe o E = 0.00085 pt 2 = 1.082x10-5 Loop! 4.04 Loep 3 ops O B 10.8 cfs 1.4 cts 2 =10 3.0 O S-12 +1 = 3 O 11.. Loos 2 3.5 select: 1. cfs = -40 Rs +2.1cfs QEH = -1.5 cts A typical three-loop network, TABLE 2 TABLE 1 Loop Line Length Diameter Q(O) No. No. (ft) (in.) (cfs) Loop Node Line Swamee-Jain No. No. Q H (cfs) 1 1 2 3 4 10560 15840 10560 15840 16 12 14 16 1 3.0 1.5 -1.6 -4.0 B E B 1 2 3 4 3.780 1.508 -1.640 -4.040 120.000 102.902 84.085 90.816 120.000 2 1 2 3 4 2 15840 13200 10560 10560 16 14 12 16 3.8 1.7 0.3 -3.0 B D E B 1 2 3 4 2.980 0.880 -0.520 -3.780 120.000 103.823 101.244 102.902 120.000 12 10 1.8 3 1 2 3 4 15840 15840 15840 15840 3 E F G H E 0.4 -1.0 -1.5 1 2 3 4 1.753 0.353 -1.047 -1.508 102.902 77.730 74.734 84.085 102.902 12 12 15.5 ft/s 0 2 B 1.5 Pipe Data All pipes Schedule 40 Length Size Pipe no. (ft) (in) 1 1500 16 2 1500 16 3 2000 18 4 2000 12 5 2000 16 E 4 ftis 6 7 8 9 10 1500 1500 4000 4000 4000 16 12 14 12 8 11 12 1500 1500 12 8 3fts 3 is 3 ft/s Write a MATLAB Program that can solve for the flow rate distribution in a network of pipes using Hardy Cross Method. The program has to use Darcy Equation to take account head losses and handle maximum ten loops with a maximum of five lines in each loop Part 1: Verify that your program works with the test case shown below. Table 1 outlines the input data to be read into the program. Table 2 outlines the final solution for the flow rate distribution and head distribution with total head of 120 feet at node B. Delta Z across the system assumed zero. How many iterations does it take to arrive to the solution and what is the max percentage error of solution? Part 2: solve the water flow rate distribution on the bottom with all pipes at the same elevation. Find the pressure distribution throughout the network with 1000 kPa at node A. 2.4 cfs 2.1 cfs 1.6 1.0 1.4 cfs Cast Iron Pipe o E = 0.00085 pt 2 = 1.082x10-5 Loop! 4.04 Loep 3 ops O B 10.8 cfs 1.4 cts 2 =10 3.0 O S-12 +1 = 3 O 11.. Loos 2 3.5 select: 1. cfs = -40 Rs +2.1cfs QEH = -1.5 cts A typical three-loop network, TABLE 2 TABLE 1 Loop Line Length Diameter Q(O) No. No. (ft) (in.) (cfs) Loop Node Line Swamee-Jain No. No. Q H (cfs) 1 1 2 3 4 10560 15840 10560 15840 16 12 14 16 1 3.0 1.5 -1.6 -4.0 B E B 1 2 3 4 3.780 1.508 -1.640 -4.040 120.000 102.902 84.085 90.816 120.000 2 1 2 3 4 2 15840 13200 10560 10560 16 14 12 16 3.8 1.7 0.3 -3.0 B D E B 1 2 3 4 2.980 0.880 -0.520 -3.780 120.000 103.823 101.244 102.902 120.000 12 10 1.8 3 1 2 3 4 15840 15840 15840 15840 3 E F G H E 0.4 -1.0 -1.5 1 2 3 4 1.753 0.353 -1.047 -1.508 102.902 77.730 74.734 84.085 102.902 12 12 15.5 ft/s 0 2 B 1.5 Pipe Data All pipes Schedule 40 Length Size Pipe no. (ft) (in) 1 1500 16 2 1500 16 3 2000 18 4 2000 12 5 2000 16 E 4 ftis 6 7 8 9 10 1500 1500 4000 4000 4000 16 12 14 12 8 11 12 1500 1500 12 8 3fts 3 is 3 ft/s
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started