ansys / pymechanical

Pythonic interface to Ansys Mechanical ™
https://mechanical.docs.pyansys.com/
MIT License
36 stars 18 forks source link

ansys-mechanical doesn't work on linux for 241 #497

Closed dipinknair closed 9 months ago

dipinknair commented 10 months ago

after running

save-ansys-path --name mechanical /path/to/.workbench

running ansys-mechanical console script ansys-mechanical -r 241 --exit -i test.py

gives the following error:

ValueError: invalid literal for int() with base 10: ''

This is because we always use find_mechanical, which looks for mechanical in default locations. If the user saved the location using ansys.tools.path, it should use get_mechanical_path()

dipinknair commented 10 months ago

we can extend ATP to look for ansys_inc under the home drive