Analysis of Transient Flow in Pipes With Expanding or Contracting Sections