Hybrid Nitsche Mortaring on H1 space with non matching mesh


I’m trying to implement hybrid Nitsche Mortaring on a simple magnetostatic system (air with a magnet in the center as the source).
I don’t how to deal properly with the dof that are doubled on the interface.
Is there a way to define a Bspline that links the two parts of the mesh without having to mesh the gap ?
The file attached contains this model.
Thanks for your help !


Attachment: hybridNM.py