get_default_ansys#

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

Search for ansys path within the standard install location.

Returns the path and version of the latest MAPDL version installed.

Returns:
ansys_pathstr

Full path to the ANSYS executable.

versionfloat

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

Return type:

Union[Tuple[str, float], Tuple[Literal[''], Literal['']]]

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)