Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

I need to add a sprinkler head class to this code in order to calculate k for all the nodes/sprinklers using the equation k =

I need to add a sprinkler head class to this code in order to calculate k for all the nodes/sprinklers using the equation k = q / (p ^ 0.5) as well as printing out the values of k for each sprinkler

k = nozzle discharge coeffecient

q = flowrate

p = pressure(head loss for the node)

i will attach the diagram of the sprinkler system and and base codeimage text in transcribed

the code is written in python

https://pastebin.pl/view/00fb3c4f

^^^^ base code

just needs the sprinkler_head class

as well as calculate and prink all values of k for the given nodes

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_p1/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. 60 L/s 10 L/S 300 mm 65 m a b 200 mm A 200 mm 100 m 200 mm 20 L/s 200 mm + d e 150 mm B 150 mm 100 m 150 mm 250 mm 8 250 mm h 125 m 125 m 15 L/s 715 L/s

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Driven Web Sites

Authors: Mike Morrison, Joline Morrison

1st Edition

061901556X, 978-0619015565

More Books

Students also viewed these Databases questions