# Force exterted on a ferromagnetic object in a magnetic field

Hello,

I'm building a coilgun and I'm confused. I understand that within a solenoid, the magnetic field is homogeneous. I've also read that a ferromagnetic projectile in a coilgun is sucked to the center of the coil. If the magnetic field is the same everywhere through the coil, what is special about the center of the coil? What is it that determines the force felt by the ferromagnetic projectile?

Thanks!

The magnetic field is not homogeneous in a solenoid with finite length and spacing between the turns.

Hm, so in an ideal solenoid (of infinite length and with no spacing between the coils), a ferromagnetic object would feel no force, correct?

So I probably want to keep my coil length pretty short in order to avoid wasting energy creating a relatively homogeneous (and therefore relatively worthless) magnetic field, huh...

That makes some sense. Thanks! I'm still wondering: what exactly determines the force that is exerted on a ferromagnetic object by a magnetic field? Is there a simple formula that answers that question?

The formula is the following:
$$\vec{F} = \int_{V}{d\mathbf{x}' \, \left(\vec{M}(\mathbf{x}') \cdot \nabla' \right) \vec{B}(\mathbf{x}')}$$

Can you quote a source for this equation please?
It would be good to have the terms defined for those needing help and guidance.

berkeman
Mentor
We do not discuss dangerous activities here on the PF. Thread closed.