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

Fix/plot mesh as linear #915

Merged
merged 31 commits into from
Apr 27, 2023
Merged

Fix/plot mesh as linear #915

merged 31 commits into from
Apr 27, 2023

Conversation

PProfizi
Copy link
Contributor

@PProfizi PProfizi commented Apr 24, 2023

  • fixes first node coordinates being set to np.nan when semi-parabolic elements are present, even when as_linear=True
  • actually changes the element type when as_linear=True
  • fixes "as_linear=False" with semi-parabolic elements

The combination of these changes should make it possible to resolve #892
Should also solve #766

@PProfizi PProfizi added the bug Something isn't working label Apr 24, 2023
@PProfizi PProfizi self-assigned this Apr 24, 2023
@PProfizi PProfizi mentioned this pull request Apr 24, 2023
2 tasks
@codecov
Copy link

codecov bot commented Apr 25, 2023

Codecov Report

Merging #915 (8edde82) into master (29a6014) will decrease coverage by 1.87%.
The diff coverage is 61.11%.

@@            Coverage Diff             @@
##           master     #915      +/-   ##
==========================================
- Coverage   88.51%   86.64%   -1.87%     
==========================================
  Files          73       73              
  Lines        8296     8327      +31     
==========================================
- Hits         7343     7215     -128     
- Misses        953     1112     +159     

# insert_ind_quad8 += np.arange(insert_ind_quad8.size)
mask[insert_ind_quad8 + 5] = False
mask[insert_ind_quad8 + 6] = False
mask[insert_ind_quad8 + 7] = False
Copy link
Contributor

Choose a reason for hiding this comment

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

@PProfizi as part of the development in TFS for the mesh_to_pyvista, I handled all quadrratic eltypes, not only quads and shells. Thus, a hex20 will be plotted as a hex8, a wedge15 as a wedge6 and so on and so forth. This indeed makes the cells structure very light for solid meshes. Do you consider handling it in Python as well?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@rafacanton you are right, I should add those. I did limit myself to fixing what was already dealt with.

Copy link
Contributor

Choose a reason for hiding this comment

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

@PProfizi We can cover it in a different PR, if you think that's better

@rafacanton rafacanton self-requested a review April 27, 2023 14:56
@PProfizi PProfizi merged commit aef98e7 into master Apr 27, 2023
@PProfizi PProfizi deleted the fix/plot_as_linear branch April 27, 2023 15:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Plane183 Element - Cell type mismatch between mesh and grid
2 participants