Skip to main content

PyPrimeMesh is a Python client to Ansys Prime Server, which delivers core Ansys meshing technology.

Project description

PyPrimeMesh

pyansys PyPI - Version PyPI - Python Version GH-CI MIT black PyPI Downloads Ask DeepWiki

Overview

PyPrimeMesh is a Python client to Ansys Prime Server, which delivers core Ansys meshing technology.

Documentation and issues

Documentation for the latest stable release of PyPrimeMesh is hosted at PyPrimeMesh documentation.

In the upper right corner of the documentation's title bar, there is an option for switching from viewing the documentation for the latest stable release to viewing the documentation for the development version or previously released versions.

You can also view or download the PyPrimeMesh cheat sheet. This one-page reference provides syntax rules and commands for using PyPrimeMesh.

On the PyPrimeMesh Issues page, you can create issues to report bugs and request new features. On the PyPrimeMesh Discussions page or the Discussions page on the Ansys Developer portal, you can post questions, share ideas, and get community feedback.

To reach the project support team, email pyansys.core@ansys.com.

Installation

The ansys-meshing-prime package supports Python 3.10 to Python 3.13 on the Windows and Linux operating systems.

PyPrimeMesh can be installed with all dependencies directly from PyPi by running this command:

pip install ansys-meshing-prime[all]

Alternatively, you can clone this repository and install the client using these commands:

git clone https://github.com/ansys/pyprimemesh
cd pyprimemesh
pip install -e .[all]

The preceding commands install all functionality that is important to development. To install a basic version of the client, use this command instead:

pip install -e .

Dependencies

You must have Ansys 2023 R1 or later installed to have access to Ansys Prime Server. Optionally, CAD readers can be configured.

Ansys Prime Server requires one of the following licenses to run. The system checks out the first available license from the list in the following order:

  1. CFD PrepPost

  2. CFD PrepPost Pro

  3. Mechanical Enterprise PrepPost

  4. Mechanical Enterprise

  5. Mechanical Pro

  6. Mechanical Premium

  7. Ansys LS-DYNA

Get started

Launch PyPrimeMesh

To launch PyPrimeMesh, use this code:

import ansys.meshing.prime as prime

with prime.launch_prime() as prime_client:
    model = prime_client.model

Run tests

Run tests locally with this command:

    pytest

License and acknowledgments

PyPrimeMesh is licensed under the MIT license.

PyPrimeMesh makes no commercial claim over Ansys whatsoever. This library extends the functionality of Ansys Prime Server by adding a Python interface without changing the core behavior or license of the original software. The use of Ansys Prime Server requires a legally licensed copy of Ansys 2023 R1 or later.

Project details


Release history Release notifications | RSS feed

Download files

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

Source Distribution

ansys_meshing_prime-0.10.0.dev31.tar.gz (418.6 kB view details)

Uploaded Source

Built Distribution

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

ansys_meshing_prime-0.10.0.dev31-py3-none-any.whl (575.1 kB view details)

Uploaded Python 3

File details

Details for the file ansys_meshing_prime-0.10.0.dev31.tar.gz.

File metadata

File hashes

Hashes for ansys_meshing_prime-0.10.0.dev31.tar.gz
Algorithm Hash digest
SHA256 af3a2226f58d54a3fd7d4fe60eb94635b93a6afb1ef49e8e6a4ede5adbeeed7c
MD5 7b4f5018f7200f3e228fca918f879118
BLAKE2b-256 bec095b0b998fd4f2135548da0131b1e54ef4c34aa1838c479b5a508809094cf

See more details on using hashes here.

Provenance

The following attestation bundles were made for ansys_meshing_prime-0.10.0.dev31.tar.gz:

Publisher: ci_cd.yml on ansys/pyprimemesh

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_meshing_prime-0.10.0.dev31-py3-none-any.whl.

File metadata

File hashes

Hashes for ansys_meshing_prime-0.10.0.dev31-py3-none-any.whl
Algorithm Hash digest
SHA256 f80de9f5934ec8bfc8105dda328f2421ec751c771d687b48aa349a580889d5fa
MD5 ae92ed3d823607b8ef3de7ab2ae2a6e0
BLAKE2b-256 4b8c38001694e58973f26f70d46270822ef0bdb006b69f5353fd83229288989a

See more details on using hashes here.

Provenance

The following attestation bundles were made for ansys_meshing_prime-0.10.0.dev31-py3-none-any.whl:

Publisher: ci_cd.yml on ansys/pyprimemesh

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