Right then. Getting back to intent of OP re coil gun. A 'serious' coil gun will actually be a rail-gun and won't be using magnetic media but typically capacitor discharge through a net single-turn circuit. Quite some years back I got talking to a lecturer at a local Uni who had been asked by a government funded rail-gun researcher whether to use the standard Biot-Savart expression, or a long discarded alternative owing to variously Weber and Ampere and Neumann being championed at the time by a Peter Graneau & co.Nice wrap up, Q-reus. Not every electrical engineer needs so specialized a knowledge of magnetism. All an audio engineer needed to know for instance was to occasionally degauss the magnetic tape heads, and align the azimuths with respect to the moving tape. If I seemed to make any claim other than knowing what a magnet is, or was used for, this was not intended.
Digital recording did away with such nonsense, and good riddance. It certainly took forever and three days for an industry so hamstrung in copyright protection to allow us to do that simple thing unencumbered. Digital Audio Tape was just a really unnecessary hassle. Technological junkyard fodder.
All I meant to suggest was, if there were a means to pre- align magnetic domains to the desired orientations and lock them there before transitioning, that would certainly be a useful means for producing unnaturally strong MRI class permanent magnets.
As far as I am aware, no one understands how magnetars achieve such impressive field strengths. You couldn't orbit one in anything other than in a plastic spacecraft. Even then, it would attract all manner of iron-laden space debris.
I was surprised there was any real uncertainty. Pointed out that Weber/Ampere/Neumann formula that predicted longitudinal stresses in a current carrying wire was easily discounted just on a simple scaling argument. Not sure if that ever got back to the researcher, or whether that particular project ever went anywhere useful. Apparently courtesy of BAE the US navy now has a useful 'killer' version.