get_available_ansys_installations#

ansys.tools.path.get_available_ansys_installations(supported_versions={191: '19.1', 192: '19.2', 193: '19.3', 194: '19.4', 195: '19.5', 201: '2020R1', 202: '2020R2', 211: '2021R1', 212: '2021R2', 221: '2022R1', 222: '2022R2', 231: '2023R1', 232: '2023R2', 241: '2024R1', 242: '2024R2', 251: '2025R1', 252: '2025R2', 261: '2026R1'})#

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

Returns:
dict[int: str]

Return all Ansys unified installations paths in Windows.

Return type:

Dict[int, str]

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.tools.path import get_available_ansys_installations
>>> get_available_ansys_installations()
{251: 'C:\Program Files\ANSYS Inc\v251',
 242: 'C:\Program Files\ANSYS Inc\v242',
 -242: 'C:\Program Files\ANSYS Inc\ANSYS Student\v242'}

Return all installed Ansys paths in Linux.

>>> get_available_ansys_installations()
{251: '/usr/ansys_inc/v251',
 242: '/usr/ansys_inc/v242',
 241: '/usr/ansys_inc/v241'}