Answered step by step
Verified Expert Solution
Question
1 Approved Answer
please code in python, using any of the math, scipy, and numpy modules. The HW5 question mentioned at the start of the problem is not
please code in python, using any of the math, scipy, and numpy modules. The HW5 question mentioned at the start of the problem is not relevant to the question, just to be used for an example to create an object oriented program.
Part 1: An object oriented program (OOP) for problem a) of HW5 has been written and placed on Canvas for you to download and study. a. Create a class for a sprinkler head that includes the k value (i.e., Qsprinkler=k_p!2) for each sprinkler and find the k values for the sprinklers (nodes: b, d, f, h) for the modified pipe network shown below, where all the nodes are at the same elevation. Note: the minimum pressure head at a sprinkler is 2m of water. b. Modify any other classes (as needed) to calculate the flows in the pipes for the modified layout of the pipe network as shown below and print your results (flow rate in each pipe, confirmation of net node inflow and net loop pressure drop). Elevation of nodes: a=0, b=2.5m, (c,d,e)=(5m, 5m, 5m), (f.h)=(4m, 4m) g=4.5m 60 L/s 10 L/s 300 mm 65 m a b 200 mm 4 200 mm 100 m 200 mm 20 L/s 200 mm d 150 mm B 150 mm 150 mm 100 m f 18 h 250 mm 125 m 250 mm 125 m 15 L/s 15 L/s Part 1: An object oriented program (OOP) for problem a) of HW5 has been written and placed on Canvas for you to download and study. a. Create a class for a sprinkler head that includes the k value (i.e., Qsprinkler=k_p!2) for each sprinkler and find the k values for the sprinklers (nodes: b, d, f, h) for the modified pipe network shown below, where all the nodes are at the same elevation. Note: the minimum pressure head at a sprinkler is 2m of water. b. Modify any other classes (as needed) to calculate the flows in the pipes for the modified layout of the pipe network as shown below and print your results (flow rate in each pipe, confirmation of net node inflow and net loop pressure drop). Elevation of nodes: a=0, b=2.5m, (c,d,e)=(5m, 5m, 5m), (f.h)=(4m, 4m) g=4.5m 60 L/s 10 L/s 300 mm 65 m a b 200 mm 4 200 mm 100 m 200 mm 20 L/s 200 mm d 150 mm B 150 mm 150 mm 100 m f 18 h 250 mm 125 m 250 mm 125 m 15 L/s 15 L/sStep 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