Computer models help form new magnetic materials