ansys / pymapdl

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

result object for distributed computing #268

Closed Roehrich closed 4 years ago

Roehrich commented 4 years ago

Hi,

I just wanted to highlight that the binary interface to the result file only works with the additonal switch "-smp" (enables shared-memory parallelism) for the mapdl object. Without, distributed computing (dmp) is performed which seems not to be supported by the \INQUIRE apdl command which is used in the inquire function of mapdl in order to get the rstfile(s).

Perhaps this can be fixed or handled differently in some future release.

Best Regards

akaszynski commented 4 years ago

Quite true. Actually, the way these files are divided up is fairly straightforward. Can you provide me with a set of files (ideally 2-4) that are quite small? Any basic example will do, and I'll add to the result reader.

Alex

Roehrich commented 4 years ago

Please find attached a little script which is running. By changing comments in line 15/16 you will get the two different behaviours. Best Regards test.zip

akaszynski commented 4 years ago

Great example!

Turns out there was few problems with reading this in beyond it being distributed. It's working now and I'm going to put the finishing touches on the branch before pushing another release.

image

akaszynski commented 4 years ago

Added this feature in pyansys==0.44.0.

Roehrich commented 4 years ago

Perfect - Thanks for you effort!