A dam as an energy source and fresh water resource