Skip to content
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

Generalize mesh tally plotting #134

Merged
merged 10 commits into from
Feb 15, 2024
Merged

Conversation

paulromano
Copy link
Contributor

Right now the mesh tally plotting capability in the plotter only works with RegularMesh tallies. This PR generalizes the mesh tally capability to work for any mesh type by leveraging the new get_plot_bins method introduced in openmc-dev/openmc#2854. Here's an example showing a spherical mesh tally plotted:
image

Copy link
Collaborator

@pshriwise pshriwise left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is so great. Net total lines removed and now it's mesh-type agnostic! 🎊 📈

One comment on accounting for mesh filter translations, but other than that I'd say this is ready to go.

openmc_plotter/plotmodel.py Show resolved Hide resolved
@paulromano
Copy link
Contributor Author

@pshriwise Just added in the mesh filter translation. Here is an example of it in action:
image

@paulromano
Copy link
Contributor Author

@pshriwise I just updated this branch to add a volume normalization checkbox.

Copy link
Collaborator

@pshriwise pshriwise left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I hammered on this a bit today and it's working great! Really fast loading times 🏎️

Just one comment on tally unit labels when volume normalization is bein applied.

openmc_plotter/docks.py Show resolved Hide resolved
Copy link
Collaborator

@pshriwise pshriwise left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me @paulromano! Pretty sweet to have this capability 🤩

@pshriwise pshriwise merged commit a6c5fd5 into openmc-dev:develop Feb 15, 2024
1 check passed
@paulromano paulromano deleted the mesh-plotting branch February 15, 2024 16:08
@paulromano paulromano mentioned this pull request Jun 19, 2024
This was referenced Jul 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants