ENH Order of branches in BranchCollector #496
Labels
API - Incompatible
Incompatible changes to our API that require user actions
enhancement
good first issue
help wanted
Hi!
My branching in Serpent looks like:
coef 12 0.0 0.1 0.5 1.0 3.0 5.0 7.0 10.0 12.0 14.0 17.0 21.0
5 ro09 ro08 ro07 ro06 ro05
3 cb0 cb1000 cb2000
3 tf500 tf900 tf1800
2 no_spa zirc
1 no_cr
after reading the .coe file and collecting branches with the BranchCollector, the collected states look like:
collector.states
(('ro05', 'ro06', 'ro07', 'ro08', 'ro09'),
('cb0', 'cb1000', 'cb2000'),
('tf1800', 'tf500', 'tf900'),
('no_spa', 'zirc'),
('no_cr',))
As you see, the order is different from the Serpent input card, which is especially not convenient in the case of fuel temperature.
As far as I understand, the order in collector.states coincide with order in collector.xsTables. Those tables are later printed into XS-library for a diffusion code, and the order of values is important.
Describe the solution you'd like
Would it be possible to keep the original branching order as in Serpent input (and, correspondently, in a .coe file)?
The text was updated successfully, but these errors were encountered: