Skip to content

Accessing Mesh and Result Data Directly Using PyAEDT #5091

Closed Answered by Samuelopez-ansys
chamanth-vct asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @chamanth-vct ,

You need to export the data, but once you have it you can use PyVista to get this data.

PyAEDT already has a method which is doing all the job for you:

mesh_data = post.plot_field(quantity="Mesh", assignment=["coil1"], show=False)

Then if you access the object you can get all the data: mesh_data.fields

This object is a PyAEDT object called "ModelPlotter", you can build it with the .case file, but you will need more steps:

https://aedt.docs.pyansys.com/version/stable/API/_autosummary/ansys.aedt.core.generic.plot.ModelPlotter.html#ansys.aedt.core.generic.plot.ModelPlotter

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@rmchurch
Comment options

Answer selected by Samuelopez-ansys
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants