Multiphysics Simulations Of Magnetic Nanostructures