Magnetic hysteresis loop for ferromagnetic materials