I built this during a research internship at Bandung Institute of Technology, advised by Dr. Zaki Su'ud. Thorium is a possible nuclear fuel with a catch: it cannot run a reactor on its own. It has to be converted first. A thorium atom that absorbs a loose neutron becomes protactinium, which decays into uranium-233 — and uranium-233 does split and release energy, which keeps the chain reaction going. I wrote a simulation of that conversion happening inside a small sample of reactor fuel.
The code follows how much of every element is present as the fuel burns, and checks at each step whether the sample is still producing enough neutrons to keep itself going. It follows a second chain that makes plutonium, and includes the two materials reactors use to soak up spare neutrons and hold the reaction steady.
Three results came out of it. The sample burns more fuel than it creates, so it cannot restock itself; left alone, it runs down. There is a point partway through where the reaction picks up again, and the obvious explanation is the wrong one: it is not the thorium chain catching up, it is those neutron-absorbing materials being used up, which takes the brakes off. And the sample stops being able to keep itself going after 634 days — a number that is softer than it looks, since changing one assumption by a fifth moves it anywhere between 500 and 802 days.
That softness is why the rest of the project exists. I wrote thirteen checks on the model. Some confirm that nothing goes missing: every atom has to still be somewhere at the end of a run, and no amount may come out negative. Some compare the simulation against a formula I can work out by hand for a simplified case. The rest re-run everything with one uncertain input changed — the neutron flux, how much absorber is loaded, which published set of reaction data I use — and report how far the answer moves.
Every table in the paper is produced by running the code rather than typed in, so the write-up cannot quietly drift away from what the model does. It is a teaching model rather than a design study: it predicts nothing about a real reactor.