Analysis of wave generators and absorbers in basins