Robust Object Oriented Solver of Transport Equations in a Reactor
Home | Code architecture | Control
Tree of classes:
Reactor
├─ Control
├─ Solid
│  ├─ Structure[]
│  └─ FuelRod[]
│     ├─ Fuel[]
│     │  └─ FuelGrain[]
│     ├─ InnerGas
│     └─ Clad[]
├─ Fluid
└─ Core
   ├─ Isotope[]
   └─ Mix[]


The Solid class is a driver for the parts of the code that simulate thermal behaviour of reactor structures* (e.g. reactor vessel, diagrid, control rod drivelines) and thermal-mechanical performance of fuel rods*. The constructor of the Solid class creates the structure and fuelrod objects from the Structure and FuelRod classes as well as initializes the vector of unknowns from those built in the Structure and FuelRod classes.

The calculate_rhs(self, reactor, t) function is defined in the Solid class and called in the constructor of the Reactor class just to construct the right-hand side vector by calling structure.calculate_rhs(self, reactor, t) and fueldrod.calculate_rhs(self, reactor, t) functions calculating the right-hand sides of the corresponding parts of the whole system of ODEs.

*under development


Code supervisor:
Dr. Konstantin Mikityuk
Paul Scherrer Institute
Switzerland