Examples#

Here is a series of examples using Mechanical with the ansys-mechanical-core library.

Simulation Examples#

These examples show how you can use Mechanical capabilities from Python to perform Mechanical simulations. This includes importing the geometry, meshing, setting up and running the solver, and reviewing the results.

Static structural analysis

Static structural analysis

Capture images after a solve

Capture images after a solve

Display properties for an object

Display properties for an object

Miscellaneous examples#

These examples demonstrate miscellaneous tips and tricks for using PyMechanical.

Output to different formats

Output to different formats

Test variable and function scope

Test variable and function scope

Gallery generated by Sphinx-Gallery