The path package#

Summary#

applications

Application plugin for the Ansys path tool.

path

Module for installation path retrieval.

save

Convenience CLI to save the path for an Ansys application in the configuration.

change_default_ansys_path

Deprecated. Use change_default_mapdl_path instead.

change_default_dyna_path

Change your default Ansys LS-DYNA path.

change_default_mapdl_path

Change your default Ansys MAPDL path.

change_default_mechanical_path

Change your default Mechanical path.

clear_configuration

Clear the entry of the specified product in the configuration file.

find_ansys

Obsolete method. Use find_mapdl instead.

find_dyna

Search for the Ansys LS-DYNA path within the standard install location.

find_mapdl

Search for the Ansys MAPDL path within the standard install location.

find_mechanical

Search for the Ansys Mechanical path in the standard installation location.

get_ansys_path

Deprecated. Use get_mapdl_path instead.

get_available_ansys_installations

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

get_dyna_path

Acquires the Ansys LS-DYNA path from a cached file or user input.

get_latest_ansys_installation

Return a tuple with the latest Ansys installation version and its path.

get_mapdl_path

Acquires the Ansys MAPDL path.

get_mechanical_path

Acquires the Ansys Mechanical path.

get_saved_application_path

Get the saved path for a specific application from the configuration file.

save_ansys_path

Deprecated. Use save_mapdl_path instead.

save_dyna_path

Find Ansys LS-DYNA’s path or query the user.

save_mapdl_path

Find the Ansys MAPDL’s path or query the user.

save_mechanical_path

Find the Mechanical path or query the user.

version_from_path

Extract the product version from a path.

Description#

Tools to find or cache installed Ansys products.

Warning

This is not concurrent-safe. (Multiple Python processes might race on this data.)

Module detail#