.. _ref_examples:

Examples
========

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

.. grid:: 2

   .. grid-item-card:: Embedding Examples
      :link: https://embedding.examples.mechanical.docs.pyansys.com/index.html
      :text-align: center
      :margin: 2 2 0 0

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

   .. grid-item-card:: Remote Session Examples
      :link: https://examples.mechanical.docs.pyansys.com/index.html
      :text-align: center
      :margin: 2 2 0 0

      Uses PyMechanical as a client to a remote Mechanical instance.

.. grid:: 1

   .. grid-item-card:: Embedding Instance & Remote Session Example
      :link: gallery_examples/embedding_n_remote/embedding_remote.html
      :text-align: center
      :margin: 2 2 0 0

      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.