Perfectly Matched Layers

Hi everyone!

I’m new to FreeFEM, but am liking it a lot so far.

I’m implementing a simple electrostatic problem similar to the wifi propagation example problem (Wifi Propagation).

In my implementation, I want an infinite boundary so there’s no reflection at the outer boundary. After some reading, it seems that implementing a perfectly matched layer (PML) would be the best way of doing this. However, I’m struggling with the implementation and wanted to know if there are any existing FreeFEM examples that do something similar. This seems like a common enough condition that I figured someone would have done it before me, but I haven’t been able to find anything. Appreciate any help!