get_available_ansys_installations#

ansys.mapdl.core.launcher.get_available_ansys_installations()#

Return a dictionary of available Ansys versions with their base paths.

Returns:
dict[int: str]

Return all installed Ansys paths in Windows.

Notes

On Windows, It uses the environment variable AWP_ROOTXXX.

The student versions are returned at the end of the dict and with negative value for the version.

Examples

>>> from ansys.mapdl.core import get_available_ansys_installations
>>> get_available_ansys_installations()
{222: 'C:\Program Files\ANSYS Inc\v222',
 212: 'C:\Program Files\ANSYS Inc\v212',
 -222: 'C:\Program Files\ANSYS Inc\ANSYS Student\v222'}

Return all installed Ansys paths in Linux.

>>> get_available_ansys_installations()
{194: '/usr/ansys_inc/v194',
 202: '/usr/ansys_inc/v202',
 211: '/usr/ansys_inc/v211'}