Distinguishing Individual Objects in Exported Field Plot File #5334
Replies: 6 comments
-
Hi @chamanth-vct, Thanks for opening this discussion. I need to understand something first:
Thanks, Kind regards, Giulia |
Beta Was this translation helpful? Give feedback.
-
Hi @gmalinve Thank you for your response. This Discussion:
The Issue in #5317:
I hope this clarifies the distinction between the two topics. Let me know if you need further details. |
Beta Was this translation helpful? Give feedback.
-
Hi @chamanth-vct, based on what I know, the native APIs don’t seem to support what you're aiming to do. If your end goal is to work with PyVista, one option could be to split your field using the geometry exported from export_model_obj. Could you provide more details on what you're trying to accomplish? With a better understanding, we might be able to suggest alternative approaches. |
Beta Was this translation helpful? Give feedback.
-
@chamanth-vct I have an additional question, since PyAEDT supports the export of plots in two formats (.aedtplt and .case) and can also leverage PyVista for post-processing visualization, is there a specific reason for your to export in .case? is your goal to work with Ensight? |
Beta Was this translation helpful? Give feedback.
-
Hi @lorenzovecchietti and @gmalinve, Thank you for your insights and questions. Goal: My aim is to access the mesh and field result data of the objects (parts) within AEDT files for post-processing and further analysis using our custom scripts. Since I haven’t found a direct method in PyAEDT to retrieve this data, I’m currently exporting mesh and field results to use them downstream. Export Format and Limitations: I'm open to using either If there’s an approach that allows accessing mesh and field result data at the object level, I would be very interested to know more. I hope this clarifies my objective. Please let me know if you have further questions or need additional details. Thanks again for your support! |
Beta Was this translation helpful? Give feedback.
-
You cannot do this neither with pyAEDT neither with native APIs. The only option is exporting each object one by one. I agree this is not ideal and I opened an enhancement request. Do you need separated objects just for plotting purposes, or for something else? If it is for plotting purposes, I think that the only option is to work with pyVista functions and set a workflow like this:
This is just an idea I never tried myself, if you try it, let me know if it works! If you have a need other than plotting, please let us know, and maybe we can find some other workflows to suggest. |
Beta Was this translation helpful? Give feedback.
-
Hi
I am currently using PyAEDT to export field results from AEDT and have encountered an issue. Below is a summary of what I’m doing and the problem I am facing:
Process Overview:
To export field results, I use the following PyAEDT functionalities:
create_fieldplot_volume()
– Creates a field plot for specified objects.export_field_plot()
– Exports the created field plot to a file.One of the parameters in
create_fieldplot_volume()
isassignment
(refer to documentation link), where we specify a list of objects for which we want to generate the field results.Issue Description:
Single Object Export:
Multiple Objects Export:
I’ll further clarify the problem with the following example.
Code Example
In both cases (single or multiple objects), the exported .case files contain a single mesh. When multiple objects are assigned, I can’t distinguish individual objects within the exported file.
Download the sample file used in the code from this link.
Challenges:
At present, to get the field result for each individual object, I export the results separately for each object.
This approach works fine for small models with a few objects. However, it becomes time-consuming and inefficient for larger models with many parts.
Question:
I am looking for a way to optimize the export process by reducing the time taken for large models while retaining object-level information in the exported .case file.
Is there any feature or workaround that would allow me to export results for multiple objects at once while still distinguishing the individual objects in the output?
Any suggestions or guidance would be greatly appreciated!
Thank you!
Beta Was this translation helpful? Give feedback.
All reactions