Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Please help with this python problem! b) Write a program that uses FSOLVE() to solve for the volumetric flow rate (m/s) in each segment of
Please help with this python problem!
b) Write a program that uses FSOLVE() to solve for the volumetric flow rate (m/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 Length Diameter e/D m m 300 Ips 1 5 50 Ips 1 3 7 2 5 3 6 2 300 250 350 125 350 125 300 125 8 100 lps 10 6 7 0.30 0.25) 0.20 0.20 0.20 0.20 0.200 0.15 0.20 0.15 0.00087 0.00104 0.00130 0.00130 0.00130 0.00130 0.00130 0.00173 0.00130 0.00173 4 9 150 Ips 4 600 350 125 b) Write a program that uses FSOLVE() to solve for the volumetric flow rate (m/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 Length Diameter e/D m m 300 Ips 1 5 50 Ips 1 3 7 2 5 3 6 2 300 250 350 125 350 125 300 125 8 100 lps 10 6 7 0.30 0.25) 0.20 0.20 0.20 0.20 0.200 0.15 0.20 0.15 0.00087 0.00104 0.00130 0.00130 0.00130 0.00130 0.00130 0.00173 0.00130 0.00173 4 9 150 Ips 4 600 350 125Step 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