When there is a high voltage potential between two points (the contacts of your switch in this case), a plasma channel forms in the air. A plasma channel provides a low resistance path, pretty much like a wire.
So before your switch contacts physically touch, all of the electricity has probably been discharged from the capacitor.
Typically people will use SCRs, but it has to be a huge-ass SCR for a real coilgun, perhaps less for yours.
The other is a spark gap. There are several solutions. One is to have two balls with a stiff spacing, just past the arc distance. However, once the arc is triggered current will flow. It can be triggered by a spark, such as one generated by a zenon tube trigger transformer. Any high voltage particularly with a high dv/dt rate can trigger the ionization. And simply mechanically connecting them works too, like dropping a metal ball through a tube, or if you're foolhardy, a screwdriver with an insulated handle. Or you can make the contacts slap into each other too.
The thing is, those contacts on the cap won't hold up to those surges, each one makes a little pit, soon it looks like the moon.
Coilgun projects are fairly common fodder around the web,
sadly only two really stand out..
Sam Baros over at Powerlabs for the real
homebrew heavy artillery and Evgenij Vasiljev at this addy **broken link removed**
Coilgun projects are fairly common fodder around the web,
sadly only three really stand out..
Sam Baros over at Powerlabs for the real
homebrew heavy artillery, Evgenij Vasiljev at this addy **broken link removed**
and Another Coilgun Site at this addy https://www.anothercoilgunsite.com