If you want to go into it best way to use FEA programmes some are free and available to download as FEMM or similar. Although limited they powerful enough for simple tasks. Google and down load. To give you explanation is out of the frame of CR4 There are several ggod books on design of electromagnetic devices you find on amazon.