Question: Can you please write the code that answers example 3, using the code given in picture 3. It should =3.98 Example #3 An 8-ft wide

Can you please write the code that answers example 3, using thecode given in picture 3. It should =3.98 Example \#3 An 8-ftwide rectangular channel has a bed slope of 0.0004ft/ft. The Manning roughnessCan you please write the code that answers example 3, using the code given in picture 3. It should =3.98

Example \#3 An 8-ft wide rectangular channel has a bed slope of 0.0004ft/ft. The Manning roughness coefficient is n=0.015. Determine the normal depth (for uniform flow) if the channel has a flow rate of 100 cfs. Example \#3 Solution: Qj=n1.49So1/2(Bw+2yj)2/3(Bwyj)5/3=0.0151.49(0.0004)1/2(8+2yj)2/3(8yj)5/3=1.987(8+2yj)2/3(8yj)5/3 Using a numerical method, the normal depth is 3.98ft. ] import numpy as np import matplotlib.pyplot as plt omatplotlib inline y= np.linspace (0,100,10000) def calc_Q (y): return 1.987(8y)(5/3)/((8+2y)(2/3)) Q = calc_Q (y) plt.axhline (100) plt.plot (y,Q,k)) plt.show () \#slide 13 get the 3.98

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!