Skip to main content

A python wrapper for Ansys TurboGrid

Project description

PyAnsys Python PyPI GH-CI Codecov MIT Black

PyTurboGrid is a Python wrapper for Ansys TurboGrid, a high-quality turbomachinery meshing software app. To run PyTurboGrid, you must have access to a licensed local copy of TurboGrid. PyTurboGrid supports Ansys TurboGrid 2023 R2 and later.

TurboGrid

Installation

The ansys-turbogrid-core package supports Python 3.9, 3.10, 3.11 and 3.12 on Windows and Linux. Two modes of installation are available:

  • User installation

  • Developer installation

User installation

To use PyTurboGrid, you must install the ansys-turbogrid-core package from PyPI.

  1. To ensure that you have the latest version of pip, run this command:

    python -m pip install -U pip
  2. To install PyTurboGrid, run this command:

    python -m pip install ansys-turbogrid-core

Developer installation

A developer installation consists of cloning the pyturbogrid repository and installing the project in editable mode. When you install PyTurboGrid from source code, you can modify and enhance the code.

Overall guidance on contributing to a PyAnsys library appears in the Contributing topic in the PyAnsys Developer’s Guide. Ensure that you are thoroughly familiar with this guide before attempting to contribute to PyTurboGrid.

  1. Clone the pyturbogrid repository:

    git clone https://github.com/ansys/pyturbogrid.git
  2. To avoid incompatibilites in requirements when working in multiple Python projects, create and activate a virtual environment. For more information, see Virtual environments in the PyAnsys Developer’s Guide.

  3. To ensure that you have the latest version of pip, run this command:

    python -m pip install -U pip
  4. Assuming that your current working directory is the top-level directory of your locally cloned pyturbogrid repository, install PyTurboGrid from this local repository in editable mode by running these commands in the root directory:

    python -m pip install poetry
    python -m pip poetry lock
    python -m pip poetry install --with doc,test
    python -m pip poetry shell

Requirements

You must have a licensed local installation of Ansys TurboGrid 2023 R2 or later.

The AWP_ROOTxxx environment variable, where xxx is the three-digit Ansys version, allows PyTurboGrid to find your local TurboGrid installation.

A Windows installation automatically sets this root environment variable. For example, if you install Ansys 2023 R2 in the default directory, the installer sets the AWP_ROOT232 environment variable to C:\Program Files\ANSYS Inc\v232.

A Linux installation does not automatically set this root environment variable. For example, if you install Ansys 2023 R2 in the default directory, you must manually set the AWP_ROOT232 environment variable to /usr/ansys_inc/v232.

License and acknowledgments

PyTurboGrid is licensed under the MIT license.

PyTurboGrid makes no commercial claim over Ansys whatsoever. This library extends the functionality of Ansys TurboGrid by adding a Python interface to TurboGrid without changing the core behavior or license of the original software. The use of the interactive control of PyTurboGrid requires a legally licensed local copy of TurboGrid.

For more information on TurboGrid, see the Ansys TurboGrid page on the Ansys website.

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_turbogrid_core-0.9.1.tar.gz (37.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_turbogrid_core-0.9.1-py3-none-any.whl (48.4 kB view details)

Uploaded Python 3

File details

Details for the file ansys_turbogrid_core-0.9.1.tar.gz.

File metadata

  • Download URL: ansys_turbogrid_core-0.9.1.tar.gz
  • Upload date:
  • Size: 37.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.15

File hashes

Hashes for ansys_turbogrid_core-0.9.1.tar.gz
Algorithm Hash digest
SHA256 854a9a5ecd9031a9dfe6f36dcc6ad6322b7b85df1c189206a434a3c2ce90fad3
MD5 68d8ea87a0afa94d724bf87512fba2a3
BLAKE2b-256 2e895f013ae76e14e1fece301d55a2518ee215604bb129eda18c91cf6a057ed4

See more details on using hashes here.

File details

Details for the file ansys_turbogrid_core-0.9.1-py3-none-any.whl.

File metadata

File hashes

Hashes for ansys_turbogrid_core-0.9.1-py3-none-any.whl
Algorithm Hash digest
SHA256 b72152538ab7d3b82dafcac7a40c9ed7e40c06e492665f82bd920af30d12ddf4
MD5 82fb8deb942356954a60361a4fa3037f
BLAKE2b-256 b967788c5a6d41c3ce401c979e93fdaa3e1e03a179bb0a58ad84cfc1ca5f9446

See more details on using hashes here.

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