get_default_ansys#

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

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

Returns:
ansys_pathstr

Full path to ANSYS executable.

versionfloat

Version float. For example, 21.1 corresponds to 2021R1.

Examples

Within Windows

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

Within Linux

>>> get_default_ansys()
(/usr/ansys_inc/v211/ansys/bin/ansys211, 21.1)