Skip to main content

A python wrapper for Ansys Mechanical

Project description

PyMechanical logo

PyAnsys PyPI Python GH-CI Codecov MIT Ruff pre-commit Ask DeepWiki

Overview

PyMechanical is a Python interface for Ansys Mechanical, enabling automation and integration of complex simulation analysis workflows. It supports both remote sessions and embedded instances.

Installation

Install from PyPI:

pip install ansys-mechanical-core

Requirements:

  • Licensed copy of Ansys Mechanical (2024 R1+ on Windows/Linux)

  • For embedded instances: Local Mechanical installation required

  • For remote sessions: Network access to a running Mechanical instance

  • Python 3.10 - 3.13

Quick start

Remote session:

import ansys.mechanical.core as pymechanical

mechanical = pymechanical.launch_mechanical()
result = mechanical.run_python_script("2+3")

Embedded instance:

import ansys.mechanical.core as pymechanical

app = pymechanical.App()
app.update_globals(globals())
print(DataModel.Project.ProjectDirectory)

Documentation and support

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ansys_mechanical_core-0.12.2.tar.gz (98.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ansys_mechanical_core-0.12.2-py3-none-any.whl (154.2 kB view details)

Uploaded Python 3

File details

Details for the file ansys_mechanical_core-0.12.2.tar.gz.

File metadata

  • Download URL: ansys_mechanical_core-0.12.2.tar.gz
  • Upload date:
  • Size: 98.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for ansys_mechanical_core-0.12.2.tar.gz
Algorithm Hash digest
SHA256 ea49c50874ec91f0f87f0995f3c5de2686c776bd634e613e908ca6d8a0384269
MD5 a0cb00e6c044ca332320364c62298126
BLAKE2b-256 e06524ba1e9c767e993295b955ceccaa6cb18a38940d7a91fd6177c41ccdb444

See more details on using hashes here.

Provenance

The following attestation bundles were made for ansys_mechanical_core-0.12.2.tar.gz:

Publisher: ci_cd.yml on ansys/pymechanical

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file ansys_mechanical_core-0.12.2-py3-none-any.whl.

File metadata

File hashes

Hashes for ansys_mechanical_core-0.12.2-py3-none-any.whl
Algorithm Hash digest
SHA256 3e726b0922149f02d5ca3b0517063c28ac036389c97fe1462ee995d84c9f9738
MD5 90db68a6fa7e96526da2d8cb71a92bef
BLAKE2b-256 bdb1f0429c657b177fa02dbbc64c01ce110d6a8237809bbd24fa349154b7dd20

See more details on using hashes here.

Provenance

The following attestation bundles were made for ansys_mechanical_core-0.12.2-py3-none-any.whl:

Publisher: ci_cd.yml on ansys/pymechanical

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page