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

Export Tally Data to VTK capability #34

Merged
merged 22 commits into from
Jan 7, 2020

Conversation

pshriwise
Copy link
Collaborator

This PR adds functionality for exporting the current view of tally data to a VTK image file (.vti) for 3D visualization of tally results.

For tallies with mesh filters, the bounds and resolution of the VTK file is predetermined by the tool and cannot be altered by the user.

For spatial domain filters, the user will specify min/max bounds for x, y, and z as well as the resolution in each dimension for the image file.

If the vtk module is not installed, then this feature is disabled.

For large datasets (big meshes or a fine resolution specified by the userr), a progress dialog will appear so the user knows something is happening. Additionally, domain information (cell/material ids) can be exported along with the tally info.

Other updates:

  • Image generation functions for tally data have been moved into the plotmodel file. That way all image generation (for cell/material ids, temp/density info, and tally data) all live in the same module.

  • Selected filter bins, scores, and nuclides have now been added to the model so the dock doesn't need to query widgets for the selected values. This allows for better separation of the GUI info and model.

  • Another set of changes from FM to font_metric.

  • Updated format for global variables related to tally info (as suggested in Tally visualization #33)

@pshriwise pshriwise mentioned this pull request Dec 13, 2019
Copy link
Contributor

@paulromano paulromano left a comment

Choose a reason for hiding this comment

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

Export worked great for me. I checked with both mesh and cell filters and they behave as expected. One thing I was wondering about -- after I export the data, the dialog box still stays active. Is that intended? There doesn't seem to be any indication that the export was completely successfully.

tools.py Outdated Show resolved Hide resolved
tools.py Outdated Show resolved Hide resolved
docks.py Outdated Show resolved Hide resolved
docks.py Outdated Show resolved Hide resolved
docks.py Show resolved Hide resolved
tools.py Outdated Show resolved Hide resolved
tools.py Outdated Show resolved Hide resolved
tools.py Outdated Show resolved Hide resolved
tools.py Outdated Show resolved Hide resolved
tools.py Outdated Show resolved Hide resolved
@paulromano paulromano merged commit f6332fb into openmc-dev:master Jan 7, 2020
@pshriwise pshriwise deleted the export_data branch January 7, 2020 15:59
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