What is the largest capacitor ever made and what was its purpose?

The Dresden High Magnetic Field Laboratory houses the world’s largest capacitor bank. A beast that stores fifty megajoules. They built it for one reason: to create magnetic fields that…