Numerical analysis of the impact of variable porosity on trailing-edge noise