Hydraulic and energy aspects in the operation of collective and farm irrigation systems