Applications of magnetic fields in high energy density plasmas