ansys / pymapdl

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

When requesting nodal stresses kernel dies + windows fatal exception with access violation #217

Closed jer8rt closed 4 years ago

jer8rt commented 4 years ago

Hi all,

I was having some trouble post processing some results (writing to text files) with APDL (simulation time without postpro around 10 min, and with postpro 50 min), and I decided to give it a try and access the Ansys binary result file using pyansys. Before going hard core with my original model (around 0,5 million elements), I implemented the code for a smaller model, and everything went great. Hats off with the job done in developing pyansys!!!

The problem arrived when I tried the code with the original "big" model. First time I tried, the kernel in Spyder died and I got a huge message with "Windows fatal exception: access violation". After that I restarted the kernel manually and tried again, and this time the kernel died, and tried restarting by itself many times without success.

At first, I thought the problem was the amount of variables I've defined in my code. But when I just load the .rst file and try calling the nodal_stress() function, it crashes like before with the Windows fatal exception: access violation.

I have no idea where the problem may be. Any ideas? Many thanks in advance.

PS: I tried adding screen shots of the error, but unsuccessfully.

akaszynski commented 4 years ago

Hello,

I'm guessing that this is the same issue as #216, which was recently patched in pyansys=0.40.0. Could you please let me know what version you're running with:

import scooby
scooby.Report('pyansys')
jer8rt commented 4 years ago

Hi there,

Thank you very much for the fast reply. That was indeed the problem. After I updated to pyansys 0.40.0 the problem vanished.

Again congrats on the great job with pyansys!

akaszynski commented 4 years ago

Thanks!