nemmen

From black holes to fusion capacitor banks

Much of the magnetohydrodynamics I learned studying plasma around black holes can be be applied to my work at Helion today. In my black hole simulations, much of the complexity came from the way magnetic fields threaded the accretion disk. At Helion, I still have to think about the magnetic field inside the plasma. I also need to think about what the plasma does to the circuit outside it.

Take the current in a coil during a pulse. As a ring of plasma moves through the machine, it changes the electrical load on the capacitor banks. The coil current responds, changing the magnetic field that acts on the plasma. To predict what a change to the circuit will do, we solve for the coil currents and the plasma’s magnetic field together.

Helion’s Fortran code has captured that interaction for a decade. When we set out to build its successor, the old code gave us a reference we could test against. I decided to put the entire time step on the GPU, which meant writing new solvers for physics we already knew well.

We spent three months documenting the old code, designing the new one – Aquila – and building physics tests. Then we put AI coding agents to work on the C++ and CUDA implementation. As each piece came together, we checked its results against the original. We had a first version running in eight days and spent another month tuning it and getting it ready for production.

A Polaris pulse that took 41 hours to simulate now takes three on a single workstation GPU. For me, the payoff is when an engineer looks at a result and asks, “What happens if we change the circuit?” Now, we can run that case the same afternoon.

I wrote up the full story on Helion’s blog.