I would like to solve 2D/3D scattering problems using fenics. For this I would need to use a perfectly matched layer, however, I have not yet found any example where PML has been considered so far with fenics. Therefore my short question: Is it easily possible to extend fenics with PML using a complex coordinate transformation or does one need to dig deeper into the code for this.