Magnetic Field for hollow core? Answered
I am working on a project in which I have to control a small setup at the end of a motor shaft using an electromagnet. The electromagnet needs to be around the shaft inbetween the setup and the motor. So I have used a metallic ferromagnetic spool(image attached) and wound 32 gauge wire on it to make it an electromagnet and put the shaft through it.
Since this core made out of spool is hollow, I'm not sure how the magnetic field will behave. I tried powering up the one I made and it' seems to be both attracting and repelling a magnet's pole (edges attract while centre somewhat repels). Anyone got any idea about this?