Skip to main content
This is a quick-reference guide for PyMAPDL. You can jump to a section of your choosing by using these links: Launching PyMAPDL | PyMAPDL Language | MAPDL Class | Mesh Class | Post-Processing Class | Plotting Class

Launching PyMAPDL

To launch a PyMAPDL instance locally and exit it
To specify a job name, number of processors, and working directory
To connect to an existing instance of MAPDL at IP 192.168.1.30 and port 50001.
To create and exit a pool of instances

PyMAPDL Language

PyMAPDL commands are Python statements that act as a wrapper for APDL commands. For instance, ESEL, s, type, 1 is translated as:
Commands that start with ” * ” or ” / ” have those characters removed.
In cases where removing ” * ” or ” / ” will cause conflict with other commands, a prefix “slash” or “star” is added.
Converting an existing APDL script to PyMAPDL format

MAPDL Class

Load a table from Python to MAPDL
To access from or write parameters to MAPDL database
To access information using *GET and *VGET directly to NumPy arrays

Mech Class

Store the finite element mesh as a VTK UnstrucuredGrid data object.
Save element & node numbers to Python arrays.

Post-Processing Class

This class is used for plotting and saving results to NumPy arrays.

Plotting Class

Plotting is interpolated with PyVista by saving the resulting stress and storing within the underlying UnstructureGrid

Reference from PyMAPDL Documentation