No project description provided
Project description
PyTurboGrid
This Python package contains the PyTurboGrid back end. It is a private repo.
Installation Steps:
-
From a clean python install (not a venv) (in vscode, do this in a terminal): a. pip install poetry b. poetry lock c. poetry install --with doc,test
-
Access and set up autocomplete for your environment: a. poetry shell (you will now be in your environment) b. (vscode) In the bottom left when viewing a py file, select the python version then on the top of the screen, navigate to the venv poetry created. On a windows machine it's: "C:\Users[USER]\AppData\Local\pypoetry\Cache\virtualenvs\ansys-turbogrid-api-_-E_GTd6-py3.10" (Pin virtualenvs to the quick access to make this step easier for other repos.)
-
Running examples: a. Env var "AWP_ROOT" + turbogrid_version must be set ("AWP_ROOT251") b. (vscode) in the terminal, you can put the relative path of a py file preceded by "python". Relative paths can be had by right clicking a file in the explorer or quick access bar on top.
-
Tests: a. Direct (python launches and owns TGEngine.exe process) - python -u -m pytest -vs -m [TG | TGCAD] --execution_mode=DIRECT --local_cfxtg_path="c:/Program Files/ANSYS Inc/v242/TurboGrid/bin/cfxtg" --client_log_level=INFO -n 16 b. Remote (conftest launches TG) - python -u -m pytest -vs -m [TG | TGCAD] --execution_mode=REMOTE --remote_command="c:/Program Files/ANSYS Inc/v241/TurboGrid/bin/cfxtg" --client_log_level=INFO c. Containerized. Accessing the container requires logging into the ghcr with your PAT with ansys-internal enabled (ghp_ key) - pull ghcr.io/ansys/ansys-api-turbogrid/tglin_reduced (point-data only) or ghcr.io/ansys/ansys-api-turbogrid/tglin_reduced_ndf (for all CAD) - python -u -m pytest -vs -m [TG | TGCAD] --execution_mode=CONTAINERIZED --license_file=watartifactory.win.ansys.com:8080 --image_name=[tglin_reduced | tglin_reduced_ndf]:241 --cfxtg_command_name=cfxtgpynoviewer --ssh_key_filename="[path-to-git-source]/ansys-api-turbogrid/image_files/tg_container_key" --cfx_version=241 --client_log_level=DEBUG -n 1
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 Distributions
Built Distributions
Hashes for ansys_turbogrid_api-0.4.2-py312-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 39488a9c3f686abde26940fbd202f26213c6e6a4fea0bcec1d38dfdb2f2a29c6 |
|
MD5 | c79d37b388d2b82b0a01929c7f810929 |
|
BLAKE2b-256 | 2ffe6a90f39aad86e991f3e6b04ecc9da1fb29a9cf92464a6995ba1cc8bf8301 |
Hashes for ansys_turbogrid_api-0.4.2-py311-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e4c368338928d3788ca7510b775105e7186fb26dc1956d57c5d1bee6397f27f4 |
|
MD5 | fdbf8d7bbac62b6519c114035d1fe13d |
|
BLAKE2b-256 | 559268c1f8c94f1d8e87d08cd14459ce5b861e9e7607400e9b03b63eb7f2d33c |
Hashes for ansys_turbogrid_api-0.4.2-py310-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f74ec56260def4b341c94e30624f5badb276c14cdc71e6e2de5796b99aa8746b |
|
MD5 | 61fcfb82de2c97d8e0cb79a854893ae8 |
|
BLAKE2b-256 | abf8a3c0bffab54cec3cbf9c85247dd6c6833905c2cb5f6db21a0468647feaca |
Hashes for ansys_turbogrid_api-0.4.2-py39-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 26c67403db2d7c619892f844101400153f6da7c04680ca5469bb86c21d2a7e4f |
|
MD5 | 83cb0ba3c5614b7d9db37cacf07d7697 |
|
BLAKE2b-256 | f5e27ada85e85af16227864ad4125562c917430e316861b1a05754ec12e01f1f |