Examples#

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.

https://embedding.examples.mechanical.docs.pyansys.com/examples/index.html
Remote Session Examples

Uses PyMechanical as a client to a remote Mechanical instance.

https://examples.mechanical.docs.pyansys.com/examples/index.html
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.

gallery_examples/embedding_n_remote/embedding_remote.html