# Magnetic attraction/repulsion with motor/generator and similar systems?

With generators and motors, is there a form of magnetic attraction or repulsion between the conductive element(rotor/solenoid) and the magnet's magnetic fields? If so, what formula would be best to calculate the magnetic forces given each element's magnetic field and distances?

I'm somewhat confused, because when a motor's conductor experiences a Lorentz force(ILxB) simultanously the conductor is being attracted/repelled to the electromagnet due to the magnetic fields? Likewise with a generator,aside from the Lorentz force opposing the input mechanical energy, there is a magnetic force as well?