Mathematical analysis of the acoustic diffraction by a muffler containing perforated ducts