What is/are the thumb rules for determining an appropriate shape of an electromagnet? By appropriate I mean having a reasonable amount of attraction/repel strength towards metal pieces.
If I were to bend an existing electromagnet (made out of an iron core wound with appropriate wire) into, say, a heart shape, would it still function? Would different sections of it behave differently (distribution of poles across the heart shaped structure)?