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

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.12 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 aknowledgments

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


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.7.0.dev20.tar.gz (384.0 kB view details)

Uploaded Source

Built Distribution

ansys_meshing_prime-0.7.0.dev20-py3-none-any.whl (532.9 kB view details)

Uploaded Python 3

File details

Details for the file ansys_meshing_prime-0.7.0.dev20.tar.gz.

File metadata

File hashes

Hashes for ansys_meshing_prime-0.7.0.dev20.tar.gz
Algorithm Hash digest
SHA256 0154a0ffc0df28ddc7a50665db15da86908a3df6a9d811fffa74259456e47af0
MD5 4881344420f0ccc4aee299a91b5b206a
BLAKE2b-256 1c8d744ead9ad220b64531f33b8b2754c59a799ec1877d9e0f858431a5e80721

See more details on using hashes here.

File details

Details for the file ansys_meshing_prime-0.7.0.dev20-py3-none-any.whl.

File metadata

File hashes

Hashes for ansys_meshing_prime-0.7.0.dev20-py3-none-any.whl
Algorithm Hash digest
SHA256 8a614fd0c00ee3c22e8c5c99406e589a12a673f4ab0bcd52714da2ecc8b31d53
MD5 eb6c7613b1b4da753047e68935fea0bf
BLAKE2b-256 c1a1589c11d244d44a005cfe6bdd7b9f74643d167592ce4932e541766ae2f950

See more details on using hashes here.

Supported by

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