I recently read a nice paper about implementing magnetism into rigid body simulations and I guess FEM based simulations(including DMM) would make a nice base for a system like the one showed in that paper.
Just my general idea I got no idea how feasable writing something like that would be but would be a nice feature.