find_mapdl#
- ansys.tools.path.find_mapdl(version=None, 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'})#
Searches for Ansys MAPDL path within the standard install location and returns the path of the latest version.
- Parameters:
- version
int,float,optional Version of Ansys MAPDL to search for. If using
int, it should follow the conventionXXY, whereXXis the major version, andYis the minor. If usingfloat, it should follow the conventionXX.Y, whereXXis the major version, andYis the minor. IfNone, use latest available version on the machine.
- version
- Returns:
- Return type:
Examples
Within Windows
>>> from ansys.tools.path import find_mapdl >>> find_mapdl() 'C:/Program Files/ANSYS Inc/v251/ANSYS/bin/winx64/ansys251.exe', 25.1
Within Linux
>>> find_mapdl() (/usr/ansys_inc/v251/ansys/bin/ansys251, 25.1)