magnetic dynamics