Hi Julien,
You can model permanent magnets through surface currents. You can learn more about this in the MATLAB Answer linked below: https://www.mathworks.com/matlabcentral/answers/420329-how-to-model-permanent-magnets-in-matlab-pde
Hope this helps!