An optimization tool for designing  Kaplan and Francis turbines.