Chernobyl Simulation: Part 1

Screenshot 0
The worst nuclear disaster of the 20th century was the Chernobyl accident. Here's a simuation of the reactor.

Simulation 1: Normal running of the reactor.

List of things in the simulation:

PartFunction Controls
ReactorThis contains fissionable materials that generate neutrons. The neutrons are shown by blue sparks. A side effect of the reaction is that the reactor heats up when running.
Control Rods: Manual These are rods made of a material that absorbs neutrons. When inserted, they slow or stop the reaction. "rod 0" --- take the control rods all the way out.
"rod 0.56" --- control rods 56% in.
"rod 1" --- control rods all the way in.
Control Rods: Automatic Some of the rods are automatic. They are moved up or down to target a certain power. "target 300" --- The rods will move to try to achieve 300 MW. However, they can only affect the reaction so much: Once they're out of the reactor, they can't further increase the power. Likewise, once they're fully inserted, they can't further decrease power.
Cooling System The reactor needs water. Water cools the reactor, and it also absorbs some neutrons, helping to control the reaction. Without enough cool water, steam builds up in the reactor, increasing the reaction. "cool 0" --- reduce cooling flow to zero.
"cool 1" --- maximum cooling.
Steam Separator A big tank receives steam and water from the reactor. Steam is sent to the generator. It comes back as cooler water. Excess water is then sent back to the reactor as coolant.
Generator and Coolant Steam is used to drive the turbine, before being cooled and pumped back into the steam separator. It might seem weird to use the high pressure steam to drive a generator, and then pump it back, but because the steam has a lot more volume than the colder water, this process generates energy. cold 0 --- stop the pump that pumps cold water back to the steam separator.
cold 1 --- restart it.
Emergency Core Cooling System There's a large reservoir of water that can be pumped into the reactor if the need arises. In this simulation, the ECCS pump is used to regulate the reactor pressure. I think in the real reactor, pressure regulation is done using different systems. "eccs on" --- switch the ECCS system on.
"eccs off" --- switch it off.
"extra 0" --- switch the pump off. If the ECCS is on, this will reduce the pressure of the reactor.

The simulation

The reactor is running at about 500MW at the moment. Type things in to the console below the simulation to control the simulation. Press enter to submit command.

You can progress to the next step once you've manage to keep the reactor producing between 3400 MW and 3600 MW for 10 seconds.



By the way, here are some limitations of the simulation: If you have any suggestions or question, please leave it in the comments section. If there's anything glaringly wrong about the simulation, comment!

If you want to see the code for the simulation, it's here: ch.js. Feel free to use for personal use / modify / play around with it. Contact me for anything commercial, please.

Part 2

This is just the first part of the simulation.

To go to part 2, complete the challenge above, or go here if you want to cheat.


Other Articles:

Simulation of flooding in New Orleans

A not-very-accurate simulation of the flooding in New Orleans.

Physics Algorithms Book

This is a work in progress to write a book on physics algorithms. At the moment, it is about 1/3 finished though, but the latest version can be downloaded for free.




© Hugo2015. Session @sessionNumber