ACT Python: resultReader.CreateMeshData() returns Warning "An exception has been throw.."

To get some things from the mesh data of a loaded RST file, I use the following code (simplified):
- analysis = Model.Analyses[0]
- resultReader = analysis.GetResultsData()
- resultReader.CreateMeshData()
- meshData = resultReader.MeshData
In the Extensions Log File, an orange colored warning is printed after the CreateMeshData() command: "An exception has been throw during the import of the geometry from the result file. Please, check carefully your results." What could that mean? I don't see it in every analysis...
Answers
-
@ThomasDD My two cents here, it could be linked to degenerated elements / defeatured geometry. I'd encourage you to use DPF to extract the results you need, instead of using the readers from the automation API.
0 -
Yes! We have degenerated elements at the crack tip of a meshed crack. If I use the mesh from the model with analyses.MeshData, I get wedge elements there with 6 (Solid185) or 15 (Solid 186) nodes. I have to convert the node list of each wedge element to the 8 resp. 20 node formulation (with duplicate node numbers at certain positions). But if I use the mesh from the RST with CreateMeshData(), then the degenerated (or wedge) elements already have the 8 or 20-node formulation I need.
For this project we are bound to Ansys 2021 R2, which has version 1.0 of the DPF interface. It seems the syntax have changed in the last 4 years. Most of the examples and tutorials don't work here. At the moment, the effort required to intervene is too great. The DPF interface will certainly be an alternative for future projects.
1