code: def headloss_weir(FlowRate, Width):
      
      #Checking input validity
      ut.check_range([FlowRate, ">0", "Flow rate"], [Width, ">0", "Width"])
      return (((3/2) * FlowRate
               / (con.VC_ORIFICE_RATIO * np.sqrt(2 * gravity.magnitude) * Width)
               ) ** (2/3))
docs: Return the headloss of a weir.