Algorithm of dynamic operation process of hydraulic automatically operated canals with constant-downstream level gates