Examine the principles of fluid mechanics as they pertain to hydraulic engineering, focusing on the analysis of flow behavior in open channels and pipelines, and its relevance for the design and management of water distribution systems and drainage networks.