Dam with water release in mountain valley