Question: please code using Python b) Write a program that uses FSOLVE() to solve for the volumetric flow rate (m3/s) in each segment of the pipe

please code using Python
b) Write a program that uses FSOLVE() to solve for the volumetric flow rate (m3/s) in each segment of the pipe flow network given below. Use the following properties for water: density = 997 kg/m^3, viscosity = 0.000890573 kg/(ms). Your program should print the flow in each segment of pipe, nicely formatted, similar to: The flow in segment 1 is -128 L/s The flow in segment 2 is 43 L/s The flow in segment 3 is -96 L/s etc. (note that these are NOT the correct answers) Note: for each pipe segment, positive flow is defined as shown in the figure. In the correct solution, some flows might be negative. Hint: this problem can be solved exactly the same way as the Jake Flow problem presented in class. Pipe 300 Ips 1 5 50 lps 1 300 2 3 5 6 2 3 Length Diameter e/D m m 0.30 0.00087 2501 0.251 0.00104 350 0.20 0.00130 125 0.20 0.00130 350) 0.20 0.00130 125 0.201 0.00130 300 0.201 0.00130 125 0.15 0.001731 350 0.20 0.00130 125 0.15 0.001731 8 6 10 100 lps 7 4 9 4 150 Ips 009 b) Write a program that uses FSOLVE() to solve for the volumetric flow rate (m3/s) in each segment of the pipe flow network given below. Use the following properties for water: density = 997 kg/m^3, viscosity = 0.000890573 kg/(ms). Your program should print the flow in each segment of pipe, nicely formatted, similar to: The flow in segment 1 is -128 L/s The flow in segment 2 is 43 L/s The flow in segment 3 is -96 L/s etc. (note that these are NOT the correct answers) Note: for each pipe segment, positive flow is defined as shown in the figure. In the correct solution, some flows might be negative. Hint: this problem can be solved exactly the same way as the Jake Flow problem presented in class. Pipe 300 Ips 1 5 50 lps 1 300 2 3 5 6 2 3 Length Diameter e/D m m 0.30 0.00087 2501 0.251 0.00104 350 0.20 0.00130 125 0.20 0.00130 350) 0.20 0.00130 125 0.201 0.00130 300 0.201 0.00130 125 0.15 0.001731 350 0.20 0.00130 125 0.15 0.001731 8 6 10 100 lps 7 4 9 4 150 Ips 009
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
