Explore the theoretical framework of hydraulic engineering in civil engineering. Discuss fundamental concepts such as fluid mechanics, open channel flow, pipe flow, hydraulic structures, and the design of water distribution and drainage systems, considering factors such as flow regime, energy dissipation, and sediment transport.