ansys / pymapdl

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

when i read the ansys result file,i get the error #312

Closed ArvinShaffer closed 3 years ago

ArvinShaffer commented 3 years ago

when i read a *.rst file, use the code , i got a error of the below, ---> 49 header['mainver'] = int(version[:2]) ValueError: invalid literal for int() with base 10: '2.' then i have see the version value, its 2.91, and i also see the value of header['file format'], it should be 12, but i got 201326592,

i use the ansys Mechanical APDL Product Launcher 2020 R2, and i select ANSYS Multiphysics/LS-DYNA

akaszynski commented 3 years ago

Hello @ArvinShaffer, sorry, I've been buried with work as of late. I'm going to patch this and then push a new release shortly. If possible, can you zip the result file and send it my way? If not, I'll submit a "catch all" that is more forgiving when parsing the result file.

akaszynski commented 3 years ago

Looked into this a bit more. It's possible that LS-DYNA is using a non-standard result file format. I might be able to work with this result file if I can get a copy of it. If you'd like, you can zip a toy example here or contact me at alexander.kaszynski@ansys.com

akaszynski commented 3 years ago

Closing due to inactivity.