Modelling of hysteretic and anisotropic magnetic field problems