pyAEDT, Icepak and pyVista #5350
lorenzovecchietti
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
After a discussion with @Leunamedaking on the possibilities of exporting data from (py)AEDT and handling everything in pyVista, I explored a few possibilities for Icepak. An important note is that due to native APIs limitation, this is quite slow and inefficient, especially when dealing with multiple quantities on large volumes.
(py)AEDT
Export data
First, we need to export the fields we are interested in and the model geometry from AEDT. To export the plot, it needs to be active.
Then we can work entirely on pyvista.
pyVista
Temperature on an Object (PCB)
Temperature cutplane
Streamlines
Here the code is slightly more complex, as we need to read the different ensight case files (and every time we reload the mesh, even if it's the same - see the warning at the beginning of the post), merge the data together and then proceed to plotting.
Streamlines (animated)
Volumetric Render
This is the slowest plot.
Beta Was this translation helpful? Give feedback.
All reactions