-
Notifications
You must be signed in to change notification settings - Fork 90
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Incorrect pitch for tips up sub-block pin grid #1284
Comments
In digging around to find out if this is a bug or not, I was reminded of #252 where the "undocumented" way to define a pitch for a hexagonal sub-assembly lattice is to use the x/y pitches lattice pitch:
x: 1.2 which still feels weird. Would it be worth making a separate issue for supporting a scalar for "regular" hex or cartesian grids? lattice pitch: 1.2 feels a lot easier to explain to new users |
Thank you for posting this. I think that this is clearly a bug, and needs to be fixed. As you can probably tell, this orientation of hex grid is not used as much, so we appreciate the bug reports. I do not know of any reason that such a scalar |
Bump on this nice to have feature |
Order of Operations:
|
I think there may be a little confusion here. The distances defined by armi/armi/reactor/grids/hexagonal.py Lines 110 to 111 in 6163e94
This exactly explains your numerical problem above:
And that factor ( I think this is not a bug, but just a misunderstanding. I would normally just close this ticket, but perhaps @drewj-usnctech could tell me where better to put this information so it would have been visible to him from the get-go? I don't want other people to run into the same problem, of course. And that docstring is apparently too hidden. I do think it's awkward that the "lattice map" has "x" and "y", but for |
The actual pitch of the grid that is formed by But, the property armi/armi/reactor/grids/hexagonal.py Lines 152 to 161 in 6163e94
That definition is a shortcut that only works for flats up. But it is easy enough to calculate the pitch for any orientation of a hex block: |
In the same vein of #1278, the pin pitch seems to be off. The following grid definitions
produce two different pitches. For the normal "flats up" hexagon, the pitch is correct:
b.spatialGrid.pitch=1.2
. But for the "tips up" grid, the pitch is off:b.spatialGrid.pitch=1.0392304845413265
usingMy current workaround is to look at the
_unitSteps
attribute, which feels not ideal (using private attribute)If I understand these right, the
_unitSteps[0, 0]
is the change in x for changing ring. So each new ring nets us a full new x-site, since they're all neighbors.The text was updated successfully, but these errors were encountered: