Dumbledore said:
Nope. One thing that confuses me about Domenicaccio's explanation, do you mean co-directional currents repeling and counter-directional currents attracting? Opposites attract do they not?
Don't get confused, just because opposite ELECTRICAL CHARGES attrach each other, that doesn't mean anything else in the universe attract when opposite...
Indeed, 2 currents going in the same directions attract, and 2 currents going in opposite directions repel.
To verify that, you can for instance
1) think of a single straight wire with current I, and visualize the lines of force of the magnetic field B generated by such wire (if you draw the wire as a vertical line on a paper thus dividing the paper in 2 halves, with I going upward, B "enters" the plane of the paper on the right half and "exits" the paper on the left half)
2) imagine a second wire parallel to the first with current I' in same direction; the second wire is immersed in the B generated by the first and therefore subject to a Lorentz force directed as "I' x B" which is always towards the 1st wire
3) if you invert the sign of I', obviously the force is directed away from the other wire
If you have the possibility of getting a big wire with a huge current in it, you can see it for yourself by for example hanging the wire in the air at one point (e.g. a hook on the wall), and place the two halves of the wire (one half going to the hook and other coming back) so that they are parallel and fairly close to each other. Then SWITCH ON the current all at once, and you'll see the two half-wires KICK each other away for a second.
-----
I am not sure about this last note, but I think that the repulsion can also be explained in terms of the usual tendency of physical systems to seek for the minimum energy configuration.
Think of a closed circuit made with flexible wire, so that you can shape it.
- Initially shape it thin and long so that the area is minimal.
- Place it on a frictionless surface (i.e. ice).
- Turn on the current.
You should see the wire spontaneously rearrange its shape until it becomes a circle.
I believe this has something to do with minimizing the magnetic energy density in the space around, but I hope someone else can demonstrate it...