-
Notifications
You must be signed in to change notification settings - Fork 8
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
Feature: Support Tallies #11
Comments
In GitLab by @tjlaboss on Jan 26, 2022, 14:17 The ability to check which tallies contain a cell will be valuable for MCCAFE development. Even just being able to say |
Yes that is the direction I was thinking of going. Should the |
In GitLab by @tjlaboss on Jan 27, 2022, 12:55 It should be a |
I figure before printing set sort it by cell number to be nice and legible. |
As for how to do the linking backwards to be able to say |
In GitLab by @tjlaboss on Jun 7, 2022, 11:02 Full tally support will be really complicated; but adding, removing, and renumbering cells is the low-hanging fruit that will be most useful for my needs. |
So support the |
In GitLab by @tjlaboss on Jun 7, 2022, 13:19 Yes |
What would be the priority for tally modifiers?
|
In GitLab by @tjlaboss on Jun 24, 2022, 13:08 Also |
Priority 3? |
Thoughts about priorities for MOAA needs? @cateal, @fairre? |
In GitLab by @tjlaboss on Jun 24, 2022, 15:13 Probably priority 1, for ATF. It's used fairly extensively in a lot of past models. |
In GitLab by @cateal on Jun 24, 2022, 17:22 I am all for FM cards and E cards, which are necessary in MOAA. I also agree with what has been said previously that tallies should know (via a set) which cells are handled |
Hot take much? |
Personally I've never used FS, and I agree with the FM/E priority. I don't want MCNPy to turn into a linter that yells at users for using a supported feature in MCNP. But I'm not sure if there is merit to de-prioritized |
So new question that I have been thinking about. Obviously tally will have a number. I also want to add First question should the Secondly should you be able to change the type by setting the number? Like say you want to change Thirdly should you be able to change the type and change the number automatically? |
In GitLab by @cateal on Jul 29, 2022, 12:28 My opinion on this is that the final digit should be treated as a type, then the number is the tally id / 10 (so 5 in your example) I do like the idea of being able to readily change type, but consider that when changing from 57 to 56, 56 may already be defined. |
But this will break things like |
I'm kind of split on this. My first thought is that changing the tally type by changing the number should be allowed by raise a warning. On the other hand say a user wants to change the tally type and tally number, should this really be a two step process? That can become kind of annoying. |
In GitLab by @tjlaboss on Aug 1, 2022, 12:12 My CAD$0.02 (worth less than USD$0.02): Each tally type (final digit) is conceptually its own class. Users should not be able to change a tally type by giving it a new number. Rather, it should be a conscious and explicit action. In other words, In terms of the MCNPy API, |
Very good point. You've convinced my on the fact that each tally type ought to be a unique class that is a subclass of |
See #55. |
This conversation has meandered quite a bit and the infrastructure has greatly improved in MCNPy that I'd like to summarize the design and behavior here based on input:
Support for I think if you want Questions:
|
unassigned @MicahGale |
@bascandr your thought on converting types might not be great. But what if we gave you a way to make a "copy" that is another class? |
In GitLab by @bascandr on Jan 5, 2024, 07:39 The ability to copy and re-class a tally as a single action could go a long way toward preventing many of the user error situations that I'm worried about here. I could also see this turning into the same function that changes the type of a tally simply by making a copy then deleting the original. |
So implement something like: tally.clone(new_type="F6") and tallies.convert_type(tally_number=1234, new_type="F7") |
In GitLab by @bascandr on Jan 5, 2024, 10:44 I think that should work. It makes it very clear to the user how to accomplish those tasks and should avoid most attempts to do it in more |
This no longer seems to be a good first issue! |
... RIP. Yeah I think I need funding to be able to put together a good implementation. |
MontePy needs to support tally objects.
I think there needs to be a tally object centered around "F" cards. This will then consume other describing data cards to create the hierarchy and description for the tally. This must be linked back to the cells and surfaces in the tallies. @bascandr has requested the ability in the cell object to tell what tallies that cell already has.
I'm a bit hesitant to implement doubly-linking pointers (i.e., tally -> cell, and cell -> tally) due to the complexity updating those links. Perhaps at the problem level the equivalent of a SQL view can be made to support this without the pointers being non-normalized (in Relational database sense), and avoiding delete and update anomalies.
The text was updated successfully, but these errors were encountered: