I'm wondering about the energy/flow of water in a pipe. The continuity equation states that u1A1=u2A2. Say for instance, a turbine is placed in the pipe to extract energy from the flow; by the conservation of mass, neither the cross-sectional area or the velocity of the flow can change if the pipe diameter is constant both upstream and downstream of the turbine. However, surely the turbine must extract energy from the flow, such that it has less energy on the downstream side? How is this reflected in the flow, when the volumetric flow is unchanged?