code: def headloss_exp_general(Vel, KMinor):
      
      #Checking input validity
      ut.check_range([Vel, ">0", "Velocity"], [KMinor, '>=0', 'K minor'])
      return KMinor * Vel**2 / (2*gravity.magnitude)
docs: Return the minor head loss due to expansion in the general case.
  
      This equation applies to both laminar and turbulent flows.