ansys / pymapdl

Pythonic interface to MAPDL
https://mapdl.docs.pyansys.com
MIT License
424 stars 120 forks source link

Principal stresses extraction #191

Closed Sorhyn closed 4 years ago

Sorhyn commented 4 years ago

Hello,

I tried to extract principal stresses data from a .rst file using PyAnsys, following the procedure you gave.

For some reasons, from node 697, the results are different from ANSYS manually extracted results (see image).

I also tried using APDL command to extract my stresses in a .txt, and i've got the same issue (not suprizing since APDL seems to also be reading the .rst file).

Do you have any idea why data are missing?

Thanks a lot.

forum

akaszynski commented 4 years ago

Would it be possible for you to post the file here?

Sorhyn commented 4 years ago

Hello akaszynski,

I found the solution with the help of an ANSYS support team member.

The problem is that those nodes are midside nodes which do not have data in the .rst file. While manually extracting the results from Ansys, you get interpolated values at these nodes.

I also found another way to extract my data which seems to be efficient (multiple object export extension).

Thanks for the quick answer anyway, i'm closing this thread.

dodu94 commented 4 years ago

Hi, is there a workaround for that? I'm trying to use pyansis to postprocess solutions and then plot them back into ansys through design assessment. In order to do so I must assign values to the mid-nodes or they will be considered zeros. I guess one way could be to do the same kind of interpolation that ansys does, but is there a chance that this can be implemented in the code? maybe when you are recovering the results you already are working with the mesh topology and it is easier to that.