Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Python code file please In this assignment, you must use variables, loops, if statements, your own function definitions and function calls to write the required
Python code file please
In this assignment, you must use variables, loops, if statements, your own function definitions and function calls to write the required functions. For now, you may not use any of the powerful functions available in python modules, with a few exceptions: You may import functions from the math, copy, matplotlib.plot, numpy and scipy. a.) Write a program that uses FSOLVEO 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 = 1000 kg/m, viscosity = 0.00089 N s/mand pipe roughness = 0.00025 m. Your program should print the flow in each segment of pipe, nicely formatted, similar to: The flow in segment a-b is -0.0052 m^3/s The flow in segment a-c is 0.0272 m3/s The flow in segment d-g is -0.0142 m^3/s etc. Note: for each pipe segment, positive flow is directed from the lower letter to the higher letter. Ex. in segment d-g, positive direction flow is from noded to node g. Negative flow is from node g to node. 60 L/s 300 mm 200 mm 200 mm 100 m 30 L/s 200 mm 200 mm d 150 mm 150 mm B 100 m f 8 250 mm 125 m- 150 mm 250 mm h 125 m 157 In this assignment, you must use variables, loops, if statements, your own function definitions and function calls to write the required functions. For now, you may not use any of the powerful functions available in python modules, with a few exceptions: You may import functions from the math, copy, matplotlib.plot, numpy and scipy. a.) Write a program that uses FSOLVEO 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 = 1000 kg/m, viscosity = 0.00089 N s/mand pipe roughness = 0.00025 m. Your program should print the flow in each segment of pipe, nicely formatted, similar to: The flow in segment a-b is -0.0052 m^3/s The flow in segment a-c is 0.0272 m3/s The flow in segment d-g is -0.0142 m^3/s etc. Note: for each pipe segment, positive flow is directed from the lower letter to the higher letter. Ex. in segment d-g, positive direction flow is from noded to node g. Negative flow is from node g to node. 60 L/s 300 mm 200 mm 200 mm 100 m 30 L/s 200 mm 200 mm d 150 mm 150 mm B 100 m f 8 250 mm 125 m- 150 mm 250 mm h 125 m 157Step 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