find_ansys

ansys.mapdl.core.find_ansys()

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

Returns

  • ansys_path (str) – Full path to ANSYS executable.

  • version (float) – Version float. For example, 21.1 corresponds to 2021R1.

Examples

Within Windows

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

Within Linux

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