Explain the principles of fluid mechanics and their applications in civil engineering. Discuss the fundamental equations governing fluid flow, the behavior of fluids in porous media, and the design of hydraulic structures such as dams and channels.