Implement distribcell/mat algorithm in PyAPI
Created by: wbinventor
It would be very helpful to implement the distribcell/mat algorithm directly into the PyAPI for input preparation and tally data processing. For example, it would help automate the preparation of distribmat inputs for pin-wise depletion calculations with @cjosey's OpenDeplete framework.
Although I haven't given too much thought to this, I would initially propose the following new additions to the PyAPI:
material)- return path of
materialin the geometry
material)- return path of cell/universe/lattice IDs to reach a particular instance of a
material)- return an array of all paths of cell/universe/lattice IDs to reach all instances of a
These new "public-facing" methods might leverage several new "private" methods implemented on the
Lattice classes to recursively count instances and build the paths to each instance.