gavin@ridleygav.in:~/projects$ ls -la
Projects
Things I've built, roughly newest first. Class projects from MIT are at the bottom; they have their own pages.
GPU Monte Carlo neutron transport
Continuous-energy Monte Carlo is the reference method for reactor physics, and it is notoriously hostile to GPUs: every particle wants to do something different, and the cross-section data it chases through memory is enormous. I built a CUDA-based version of OpenMC using the event-based formulation originally developed for 1980s vector machines, then profiled it to find where the physics itself was the bottleneck.
Two pieces of the physics got reformulated:
- Resonance upscatter. The standard GPU approach tabulates relative-speed data per nuclide and temperature. I showed the whole thing is underpinned by one universal special function, which I named the incomplete Faddeeva function, and built a specialized root-finder to sample from it directly. No tables, no zero-kelvin cross sections, and a memory access pattern a GPU actually likes.
- Unresolved resonance region. Probability tables cost about 20% of GPU throughput. I gave what I believe is the first rigorous argument that URR modeling reduces to a one-dimensional probabilistic model plus a few conditional expectations, and showed via three asymptotic regimes that the normal inverse Gaussian distribution is the natural choice for the total cross section. It ended up faster than the infinite-dilute pointwise approach. Published in Nuclear Science and Engineering in 2026.
A related 2026 paper, also in Nuclear Science and Engineering, takes the same attitude to thermal scattering in liquids: sample the Egelstaff-Schofield scattering law directly instead of tabulating it.
URR paper (2026) liquid scattering paper (2026) thesis (pdf) defense slides (pptx, 69 MB) poster: Monte Carlo neutron transport on GPUs (2021) resonance scattering preprint
Topology-optimized reactor cores
Additive manufacturing means a reactor core no longer has to be made of rods and plates. So what shape does the physics actually want? We wrapped a gradient-based topology optimizer around a deterministic neutronics solver and let it move fuel around a domain subject to a criticality constraint. Starting from a uniform block, it rediscovers a lattice of fuel lumps, which is roughly what Fermi's pile looked like, and then keeps refining.
Material density field (alpha) over optimizer iterations. Dark is fuel.
OpenMC workshop
A hands-on workshop I ran on OpenMC, the open-source Monte Carlo code I spent my PhD inside of. Intro to the code, constructive solid geometry, and depletion.
open source
-
C++ · Python · CUDA
OpenMC
Contributor. GPU acceleration work, windowed multipole resonance scattering, assorted fixes.
-
MOOSE · C++
Moltres
Co-author of a MOOSE-based coupled neutronics and thermal-hydraulics code for molten salt reactors.
-
Python
serpentTools
Co-author of a Python package for parsing and analyzing Serpent Monte Carlo output.
-
C++
libMesh
Plumbing to make periodic boundary conditions work in MOOSE. The debugging was character-building.
MIT class projects
-
22.213 · reactor physics III
Horker++
High-order finite element spatial kinetics from scratch. Runtime-generated meshes, arbitrary-order tensor-product elements, one dependency (Eigen). Nails the LRA benchmark.
read →
-
2.29 · numerical fluid mechanics
Large eddy simulation in MOOSE
Smagorinsky and WALE subgrid models implemented as MOOSE kernels, with hand-derived Jacobians. The WALE Jacobian is a monster.
read →
-
22.212 · reactor physics II
Spectral expansion in MOC
Expanding the neutron energy spectrum in an arbitrary overlapping basis inside the method of characteristics, plus SVD to find a good basis.
read →
-
4.450 · computational structural design
Truss optimization
MPI-parallel differential evolution wrapped around Frame3DD. Watches a truss converge toward a Michell truss, slowly.
read →