get_default_ansys_path#

ansys.mapdl.core.launcher.get_default_ansys_path()[source]#

Searches for ansys path within the standard install location and returns the path of the latest MAPDL version installed.

Returns:
str

Full path to ANSYS executable.

Examples

Within Windows

>>> from ansys.mapdl.core.launcher import get_default_ansys
>>> get_default_ansys_path()
'C:/Program Files/ANSYS Inc/v211/ANSYS/bin/winx64/ansys211.exe'

Within Linux

>>> get_default_ansys_path()
'/usr/ansys_inc/v211/ansys/bin/ansys211'