Question: 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

Python code file please In this assignment, you must use variables, loops,

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 157

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!