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

Include an option on plot method to plot results only on named selections, so the rest of the structures is not shown #501

Open
jviqueg opened this issue Sep 25, 2023 · 2 comments
Labels
enhancement New feature or request

Comments

@jviqueg
Copy link

jviqueg commented Sep 25, 2023

Description of the feature

Currently, when user makes a plot on a named selection, the rest of the structure is kept in grey. Looking at plot method, plot(mesh=True, constructed_geometries=True, loads=True, boundary_conditions=True), mesh can only be True or False. There is another option, which is using plot_contour, but here again the obtained figure depends on the support. There is a workaound using pyvista options, but I would suggest including a simple option that allows user to plot only on a specific named selection, something like:

bar1_tot_displacement = simulation.displacement(named_selections=["BAR_1"], norm=True)
bar1_tot_displacement.plot(only_on_ns=True)

Steps for implementing the feature

No response

Useful links and references

No response

@jviqueg jviqueg added the enhancement New feature or request label Sep 25, 2023
@aukselis-c1connections
Copy link

There is a workaound using pyvista options

Could you share perhaps the workaround?

@jviqueg
Copy link
Author

jviqueg commented Jan 4, 2024

Please see post in DevForum. I would recommend last option given in comments.
https://discuss.ansys.com/discussion/2538/how-can-i-plot-in-pydpf-post-results-on-a-mesh-part-linked-to-a-named-selection#latest

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants