Cockroft Walton AC voltage full wave multiplier with a diode bridge output to provide high voltage DC.
Don't short the output in real life, you will more than likely die, this switch and resistor are just to show the amount of power flowing through the circuit.