get_default_ansys_version#

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

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

Returns:
float

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

Examples

Within Windows

>>> from ansys.mapdl.core.launcher import get_default_ansys
>>> get_default_ansys_version()
21.1

Within Linux

>>> get_default_ansys_version()
21.1