Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

3. Modify the python program provided, to analyze the pipe network below and output a nicely formatted report for the: Notes: i) flow rate

imageimage

3. Modify the python program provided, to analyze the pipe network below and output a nicely formatted report for the: Notes: i) flow rate and direction in each pipe, ii) the head loss in each pipe (in inches of water) iii) the pressure at each node in psi with the knowledge that the node h pressure is 80 psi. 1. The 12" and 16" pipes are cast iron (roughness = 0.00085 ft) while the 18" and 24" pipes are concrete (roughness = 0.003 ft). 2. Minor losses may be ignored. 3. cfs stands for cubic feet per second. 4. Room temperature water is the fluid (u=20.5010-6 lbs/ft, y=62.3 lb/ft). 5. You must use object orient programming to accomplish the requirements of this problem. 10 cfs cts 1000 ft 500 ft 500 ft a 18 in b 18 in c 18 in d B C 16 in 800 ft 16 in 16 in 24 in A h 24 in 3 cfs 18 in e 12 in 12 in g 5 cfs D 18 in 800 ft 24 in My output looks like: The flow in segment a-b is 3.57 (cfs) and Re=286475.8 The flow in segment a-h is -3.57 (cfs) and Re=214856.8 The flow in segment b-c is 2.57 (cfs) and Re=205762.6 The flow in segment b-e is 1.01 (cfs) and Re=90802.3 The flow in segment c-d is 0.53 (cfs) and Re=42434.3 The flow in segment c-f is 2.04 (cfs) and Re=183744.4 The flow in segment d-g is -1.47 (cfs) and Re=132658.6 The flow in segment e-f is 1.46 (cfs) and Re=175422.0 The flow in segment e-i is -3.45 (cfs) and Re-276764.5 The flow in segment f-g is -1.50 (cfs) and Re=180909.5 The flow in segment g-j is -2.97 (cfs) and Re=238525.1 The flow in segment h-i is 6.43 (cfs) and Re=386467.2 The flow in segment j-j is 2.97 (cfs) and Re=178893.9 Check node flows: net flow into node a is 0.00 (cfs) net flow into node b is 0.00 (cfs) net flow into node h is 0.00 (cfs) net flow into node c is -0.00 (cfs) net flow into node e is 0.00 (cfs) net flow into node d is -0.00 (cfs) net flow into node f is 0.00 (cfs) net flow into node g is 0.00 (cfs) net flow into node i is -0.00 (cfs) net flow into node j is 0.00 (cfs) Check loop head loss: head loss for loop A is 0.00 (psi) head loss for loop B is -0.00 (psi) head loss for loop C is 0.00 (psi) head loss for loop D is -0.00 (psi) head loss in pipe a-b (L=1000.00 in, d=18.00 in) is 12.22 in of water head loss in pipe a-h (L=1600.00 in, d=24.00 in) is 4.39 in of water head loss in pipe b-c (L-500.00 in, d=18.00 in) is 3.18 in of water head loss in pipe b-e (L-800.00 in, d=16.00 in) is 1.23 in of water head loss in pipe c-d (L=500.00 in, d=18.00 in) is 0.15 in of water head loss in pipe c-f (L=800.00 in, d=16.00 in) is 4.67 in of water head loss in pipe d-g (L=800.00 in, d=16.00 in) is 2.51 in of water head loss in pipe e-f (L=500.00 in, d=12.00 in) is 6.63 in of water head loss in pipe e- (L=800.00 in, d=18.00 in) is 9.13 in of water head loss in pipe f-g (L=500.00 in, d=12.00 in) is 7.03 in of water head loss in pipe g-j (L=800.00 in, d=18.00 in) is 6.81 in of water head loss in pipe h-i (L=1000.00 in, d=24.00 in) is 8.70 in of water head loss in pipe j-j (L-1000.00 in, d=24.00 in) is 1.92 in of water Pressure at node a = 79.84 psi Pressure at node b = 79.40 psi Pressure at node h = 80.00 psi Pressure at node c = 79.29 psi Pressure at node e = 79.36 psi Pressure at node d = 79.28 psi Pressure at node f = 79.12 psi Pressure at node g = 79.37 psi Pressure at node = 79.69 psi Pressure at node j = 79.62 psi

Step by Step Solution

There are 3 Steps involved in it

Step: 1

Define classes Pipe A pipe segment with characteristics such as diameter length roughness and flow r... 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

Elements Of Chemical Reaction Engineering

Authors: H. Fogler

6th Edition

013548622X, 978-0135486221

More Books

Students also viewed these Mechanical Engineering questions

Question

What are the APPROACHES TO HRM?

Answered: 1 week ago

Question

What do you mean by dual mode operation?

Answered: 1 week ago

Question

Explain the difference between `==` and `===` in JavaScript.

Answered: 1 week ago

Question

(b) Are you happy with your conclusion? Why or why not?

Answered: 1 week ago