Here are examples using Mechanical with the ansys-mechanical-core library through an embedded instance or remote session.

Embedding Examples

Uses PyMechanical to embed an instance of Mechanical directly within Python as a Python object.

Remote Session Examples

Uses PyMechanical as a client to a remote Mechanical instance.

Embedding Instance & Remote Session Example

Demonstrates the same model setup in both an embedded instance and remote session, as well as examples using a combination of embedded instances and remote sessions.