Advertisement
Guest User

Untitled

a guest
Sep 19th, 2019
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. def Weir(Q, C, b, p):
  2. yA = (Q / (C * b * 2 / 3 * (2 * g / 3) ** 0.5 )) ** (2/3) + p
  3. return yA
  4.  
  5.  
  6.  
  7.  
  8.  
  9. Yupstream2 = EulerMethod(100, LC, b, m, k, S0, Qupstream / 2, Weir(1.5, CA, bA, pA))
  10.  
  11. def crest(Q, C, b, y):
  12. h = y - (Q / (C * b * 2 / 3 * (2 * g / 3) ** 0.5)) ** (2/3)
  13. return h
  14.  
  15. print('The iterations of the height of the crest at C is', crest(1.5, CC, bC, Yupstream2))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement