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!
 PhysOrg.com physics news on PhysOrg.com >> A quantum simulator for magnetic materials>> Atomic-scale investigations solve key puzzle of LED efficiency>> Error sought & found: State-of-the-art measurement technique optimised
 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?

Force exterted on a ferromagnetic object in a magnetic field

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.
 Also, there may be a torque on a magnetic material given by: $$\vec{\tau} = \int{d\mathbf{x}' \, \left( \vec{M}(\mathbf{x}') \times \vec{B}(\mathbf{x}') \right)}$$ As for the source, of these formulas, these are simply summations of the formulas given here: http://en.wikipedia.org/wiki/Magneti...agnetic_moment but for a continuous distribution of magnetization $\vec{M}(\mathbf{x}')$.
 Mentor We do not discuss dangerous activities here on the PF. Thread closed.

 Tags ferromagnetism, magnetic field, magnetism, solenoid