hi guys, i’m newbie at openmc.
I have a question while studying openmc. what is difference between openmc.run() and openmc.depletion(). I don’t know the exact difference between the two methods. Also, I wonder if it is essential to designate a source through setting.source() to use above two methods.
I ask basic question because i’m not good at openmc, but i’ll appreciate it if yot answer.
1 Like
Hi @Donghun-Shin and welcome to the community. The openmc.run() function simply calls the openmc executable, which looks for the *.xml input files and then runs a simulation. Depletion simulations are a little bit different because they require multiple transport steps. Rather than running the plain openmc executable at each depletion timestep, the openmc.deplete module relies on OpenMC’s shared library to make calls directly to the C API, which helps prevent cross sections from having to be loaded at each timestep.
You do need to specify a starting source distribution in either case using settings.source.