Analysis of Water Distribution Systems