Magnetic field analysis by finite element method using effective anisotropic field