{"id":20092710,"url":"https://github.com/ansys/pymechanical","last_synced_at":"2026-01-30T23:07:24.072Z","repository":{"id":151488017,"uuid":"507920211","full_name":"ansys/pymechanical","owner":"ansys","description":"Pythonic interface to Ansys Mechanical ™","archived":false,"fork":false,"pushed_at":"2025-04-02T02:37:22.000Z","size":15472,"stargazers_count":45,"open_issues_count":68,"forks_count":22,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-04-02T13:11:54.078Z","etag":null,"topics":["ansys","ansys-mechanical","mechanical","python","simulation"],"latest_commit_sha":null,"homepage":"https://mechanical.docs.pyansys.com/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ansys.png","metadata":{"files":{"readme":"README.rst","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":"AUTHORS","dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-06-27T13:27:09.000Z","updated_at":"2025-04-02T02:24:16.000Z","dependencies_parsed_at":"2023-09-21T19:51:36.855Z","dependency_job_id":"52ee9a25-dff2-4520-b4da-ccb8facba511","html_url":"https://github.com/ansys/pymechanical","commit_stats":null,"previous_names":["pyansys/pymechanical"],"tags_count":35,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ansys%2Fpymechanical","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ansys%2Fpymechanical/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ansys%2Fpymechanical/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ansys%2Fpymechanical/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ansys","download_url":"https://codeload.github.com/ansys/pymechanical/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246819785,"owners_count":20839095,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ansys","ansys-mechanical","mechanical","python","simulation"],"created_at":"2024-11-13T16:44:26.131Z","updated_at":"2026-01-30T23:07:24.056Z","avatar_url":"https://github.com/ansys.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":".. image:: https://raw.githubusercontent.com/ansys/pymechanical/main/doc/source/_static/logo/pymechanical-logo.png\n   :alt: PyMechanical logo\n   :width: 580px\n\n\n|pyansys| |pypi| |python| |GH-CI| |codecov| |MIT| |ruff| |pre-commit| |deep-wiki|\n\n.. |pyansys| image:: https://img.shields.io/badge/Py-Ansys-ffc107.svg?logo=data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAIAAACQkWg2AAABDklEQVQ4jWNgoDfg5mD8vE7q/3bpVyskbW0sMRUwofHD7Dh5OBkZGBgW7/3W2tZpa2tLQEOyOzeEsfumlK2tbVpaGj4N6jIs1lpsDAwMJ278sveMY2BgCA0NFRISwqkhyQ1q/Nyd3zg4OBgYGNjZ2ePi4rB5loGBhZnhxTLJ/9ulv26Q4uVk1NXV/f///////69du4Zdg78lx//t0v+3S88rFISInD59GqIH2esIJ8G9O2/XVwhjzpw5EAam1xkkBJn/bJX+v1365hxxuCAfH9+3b9/+////48cPuNehNsS7cDEzMTAwMMzb+Q2u4dOnT2vWrMHu9ZtzxP9vl/69RVpCkBlZ3N7enoDXBwEAAA+YYitOilMVAAAAAElFTkSuQmCC\n   :target: https://docs.pyansys.com/\n   :alt: PyAnsys\n\n.. |pypi| image:: https://img.shields.io/pypi/v/ansys-mechanical-core.svg?logo=python\u0026logoColor=white\n   :target: https://pypi.org/project/ansys-mechanical-core\n   :alt: PyPI\n\n.. |python| image:: https://img.shields.io/pypi/pyversions/ansys-mechanical-core?logo=pypi\n   :target: https://pypi.org/project/ansys-mechanical-core\n   :alt: Python\n\n.. |codecov| image:: https://codecov.io/gh/ansys/pymechanical/branch/main/graph/badge.svg\n   :target: https://app.codecov.io/gh/ansys/pymechanical\n   :alt: Codecov\n\n.. |GH-CI| image:: https://github.com/ansys/pymechanical/actions/workflows/ci_cd.yml/badge.svg\n   :target: https://github.com/ansys/pymechanical/actions/workflows/ci_cd.yml\n   :alt: GH-CI\n\n.. |MIT| image:: https://img.shields.io/badge/License-MIT-yellow.svg\n   :target: https://opensource.org/licenses/MIT\n   :alt: MIT\n\n.. |ruff| image:: https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/ruff/main/assets/badge/v2.json\n   :target: https://github.com/astral-sh/ruff\n   :alt: Ruff\n\n.. |pre-commit| image:: https://results.pre-commit.ci/badge/github/ansys/pymechanical/main.svg?style=flat\n   :target: https://results.pre-commit.ci/latest/github/ansys/pymechanical/main\n   :alt: pre-commit\n\n.. |deep-wiki| image:: https://deepwiki.com/badge.svg\n   :target: https://deepwiki.com/ansys/pymechanical\n   :alt: Ask DeepWiki\n\nOverview\n--------\n\nPyMechanical is a Python interface for Ansys Mechanical, enabling automation and integration\nof complex simulation analysis workflows. It supports both remote sessions and embedded instances.\n\nInstallation\n------------\n\nInstall from PyPI::\n\n   pip install ansys-mechanical-core\n\n**Requirements:**\n\n* Licensed copy of `Ansys Mechanical \u003chttps://www.ansys.com/products/structures/ansys-mechanical\u003e`_ (2024 R1+ on Windows/Linux)\n* For embedded instances: Local Mechanical installation required\n* For remote sessions: Network access to a running Mechanical instance\n* Python 3.10 - 3.13\n\nQuick start\n-----------\n\n**Remote session:**\n\n.. code:: python\n\n   import ansys.mechanical.core as pymechanical\n\n   mechanical = pymechanical.launch_mechanical()\n   result = mechanical.run_python_script(\"2+3\")\n\n**Embedded instance:**\n\n.. code:: python\n\n   import ansys.mechanical.core as pymechanical\n\n   app = pymechanical.App()\n   app.update_globals(globals())\n   print(DataModel.Project.ProjectDirectory)\n\nDocumentation and support\n-------------------------\n\n* `Documentation \u003chttps://mechanical.docs.pyansys.com/\u003e`_\n* `Cheat sheet \u003chttps://cheatsheets.docs.pyansys.com/pymechanical_cheat_sheet.pdf\u003e`_\n* `Issues \u003chttps://github.com/ansys/pymechanical/issues\u003e`_ - report bugs or request features\n* `Discussions \u003chttps://github.com/ansys/pymechanical/discussions\u003e`_ - ask questions\n* `Contributing guide \u003chttps://mechanical.docs.pyansys.com/version/stable/contributing.html\u003e`_","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fansys%2Fpymechanical","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fansys%2Fpymechanical","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fansys%2Fpymechanical/lists"}