How are magnets used?

Give me everything on magnets, what do they do, how are they used, are they electronic, or just a hunk of metal lol...

I know nothing of how they are used in RRs except somehow uncoupling cars
 
Top