I am making a CANDU simulation for online refueling so I have decided to discretize the core into individual fuel cells, but the process is very tedious, especially for the fuel region as I need to be able to adjust this region after depletion, therefore requiring it to be easily assessible to switch only the material.
I define my CANDU bundle using the above code. At the moment my only thought is I would have to duplicate the material in the material section, and then repeat the above code for each of the duplicated fuel materials. This feels tedious, and would also be very messy in the code. I was wondering if there was an easy way to duplicate this code but swap out the material with a new one, while naming the material. I know I could place the universe into a cell and then use the duplicate cell function, but that doesn’t allow me to easily adjust the material between depletion runs as far as I am aware. Thank you in advance for the assistance.