Skip to content

Add support for curvilinear elements when exporting cylindrical and spherical meshes to VTK - #2533

Merged
paulromano merged 16 commits into
openmc-dev:developfrom
pshriwise:curvilinear
Jun 16, 2023
Merged

paulromano merged 16 commits into
openmc-dev:developfrom
pshriwise:curvilinear

Conversation

@pshriwise

Copy link
Copy Markdown
Contributor

This changeset provides the option to export cylindrical and spherical meshes (with optional datasets) to VTK with vtkQuadraticHex elements. While the equations of the element surface don't match the cylindrical/spherical boundaries exactly, they can make a big difference in visualization for coarse meshes.

Below is a visualization of a cylindrical mesh with some dummy data applied. On the left is the linear element representation. The right shows the mesh exported with the curvilinear element option.

Screenshot from 2023-05-24 11-14-27

This capability won't have any effect on how Regular/RectilinearMesh's are exported.

@paulromano

Copy link
Copy Markdown
Contributor

@pshriwise Looks like there are some conflicts on this branch that need to be resolved

@pshriwise

Copy link
Copy Markdown
Contributor Author

@pshriwise Looks like there are some conflicts on this branch that need to be resolved

Thanks! Just took care of those.

@paulromano paulromano left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Nicely done with this! I only have a few minor comments and suggestions:

Comment thread openmc/mesh.py
Comment thread openmc/mesh.py Outdated
Comment thread openmc/mesh.py Outdated
Comment thread openmc/mesh.py Outdated
Comment thread openmc/mesh.py Outdated
Comment thread openmc/mesh.py
Comment thread openmc/mesh.py
Comment thread openmc/mesh.py
Comment thread openmc/mesh.py
Comment thread tests/unit_tests/mesh_to_vtk/test.py Outdated
@paulromano
paulromano merged commit 0fcb174 into openmc-dev:develop Jun 16, 2023
apingegno pushed a commit to apingegno/openmc that referenced this pull request May 7, 2026
…pherical meshes to VTK (openmc-dev#2533)

Co-authored-by: Paul Romano <paul.k.romano@gmail.com>
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