Getting started#

For information on getting a licensed copy of Ansys Mechanical APDL, visit the Ansys web site.

Installation#

For users#

The ansys.math.core package currently supports Python 3.10 through Python 3.12 on Windows, Mac OS, and Linux.

Install the latest package for use with this command:

pip install ansys-math-core

Alternatively, install the latest PyAnsys Math GitHub package with this command:

pip install git+https://github.com/ansys/pyansys-math.git

For developers#

For a local development version, install the latest package with:

git clone https://github.com/ansys/pyansys-math.git
cd pyansys-math
pip install -e .

Installing the development version allows you to edit the ansys-math-core package locally. The changes that you make are reflected in your setup after restarting the Python kernel.

Verify your installation#

Check that you can start PyAnsys Math from Python by running this code:

import ansys.math.core.math as pymath

# Start PyAnsys Math.
mm = pymath.AnsMath()
print(mm)

If you see a response from the server, you can start using PyAnsys Math as a service.

Ansys software requirements#

You must have a copy of Ansys 2021 R1 or later installed locally.

Note

The latest versions of Ansys provide significantly better support and features. PyAnsys Math is not supported on Ansys versions earlier than 2021 R1.