-
After running static structural finite element analysis I am plotting my geometry with self-defined scalars. I am using VTK grid to plot the mesh with new scalar data. I found an example on PyAnsys.com under 'Examples' called 'Plotting and Mesh Access'. The following line of code plots my scalars which is an array (my_scalar) the same length as the number of nodes with the mesh:
This works and I get a pop-up window of exactly what I want. My question is - is it possible to not get a pop-up window and just have file saved to the path location? The problem is that I have to manually close the window for code to continue running after that point. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
@ememe123 Try the argument saveifg=path instead of screenshot. Mike |
Beta Was this translation helpful? Give feedback.
-
Found the answer, argument off_screen=True with the screenshot=path works good and doesn't open pop-up window. |
Beta Was this translation helpful? Give feedback.
Found the answer, argument off_screen=True with the screenshot=path works good and doesn't open pop-up window.