Modeling of the flow in a water turbine of a hydroelectric generator