I currently have a set of XML files that run properly. Is it possible to run a depletion calculation by specifying settings in an XML file. If not, is it possible to load existing XML files into a python script, so that only the depletion portion has to be written in Python?
Yes, it is indeed possible to do this. The Model
class has a from_xml
method that can be used to recreate the model from a set of XML files. The model can then be passed into the depletion Operator
:
model = openmc.Model.from_xml() # <-- run in directory with .xml files
op = openmc.deplete.Operator(model, ...)
...
3 Likes