Examples#
Here are a series of examples using MAPDL with ansysmapdlcore
.
Full Examples Using PyMAPDL#
These examples demonstrate full examples using the PyMAPDL module.
MAPDL 2D Plane Stress Concentration Analysis
3D Stress Concentration Analysis for a Notched Plate
Basic Thermal Analysis with pyMAPDL
Thermalstructural analysis of exhaust manifold
Structural Analysis of a Lathe Cutter
Path Operations within pyMAPDL and MAPDL
Example Thermal Transient Analysis
PyMAPDL Math Examples#
These examples demonstrate using APDL Math from the PyMAPDL library.
PyMAPDL APDLMath Basic Operations
Using APDLMath to solve Eigenproblems
Compute Eigenvalues using MAPDL or SciPy
APDLMath Sparse Matrices and SciPy Sparse Matrices
Use APDLMath to Solve a Dense Matrix Linear System
Performing Sparse Factorization and Solve Operations
Manipulate APDLMath vectors or dense matrices as NumPy Arrays
Geometry Examples#
These examples demonstrate using PyMAPDL to create basic geometry.
Miscellaneous Examples#
These examples demonstrate miscellaneous tips and tricks for using PyMAPDL.
MAPDL Element Size Transition Example
Using Inline Functions (Query)
Generating and Extracting Rotational Displacement
Academic Finite Element Examples#
These examples demonstrate finite element method as applicable to Python and MAPDL while emphasising Python libaries such as matplotlib
Verification Manual Examples#
This section demonstrates a range of Mechanical APDL elements and capabilities in straightforward problems which have “classical” or readilyobtainable theoretical solutions using PyMAPDL.
These problems may then serve as the basis for additional validation and qualification of Mechanical APDL capabilities for specific applications that may be of interest.
Statically Indeterminate Reaction Force Analysis
Thermally Loaded Support Structure
Deflection of a Hinged Support
Statically Indeterminate Reaction Force Analysis
Plastic Compression of a Pipe Assembly
Large Lateral Deflection of Unequal Stiffness Springs
Gallery generated by SphinxGallery
Technology Showcase Manual Examples#
This section demonstrates the broad simulation capabilities of Ansys Mechanical APDL. The problems demonstrate how to use PyMAPDL to effectively and accurately solve interdisciplinary problems from a variety of industries and engineering fields.
These examples are a workinprogress and will be extended during the life of this project.
Name 
Description 
Technology showcase demonstration example 01: Brake Squeal Analysis. 

Technology showcase demonstration example 20: Dynamic simulation of a printed circuit board assembly 

Technology showcase demonstration example 28: Friction Stir Welding (FSW) Simulation 
Extended Examples#
These extended examples aim to explain other concepts such as interoperability with other programs, libraries, and features in development.
These examples are a workinprogress and will be extended during the life of this project.
Name 
Description 
Demonstrates a reinforcement machine learning example using MAPDL through PyMAPDL. 

Demonstrates the interoperability between PyMAPDL and the gmsh meshing library. 

Demonstrates the interoperability between 
Download Example Files#
Each example should contain all the necessary resources to run the example. However in some cases, external files are needed. A link to those files is available at each example page. These links refers to the following GitHub repository where you can find all of them:
GitHub Example Data Repository
If you find out a missing or broken link, please open an issue in Github (PyMAPDL Issues) or email us at PyAnsys Support.