A python wrapper for ansys Fluent visualization
Project description
Overview
The PyFluent Visualization project provides post-processing and visualization capabilities for PyFluent using pyvista and matplotlib.
Documentation and Issues
Please see the latest release documentation page for more details.
Please feel free to post issues and other questions at PyFluent Visualization Issues. This is the best place to post questions and code.
Installation
The ansys-fluent-visualization package currently supports Python 3.7 through Python 3.10 on Windows and Linux.
If you’re using Python 3.10, install the vtk package from .whl file here in Windows or here in Linux.
Install the latest release from PyPI with:
pip install ansys-fluent-visualization
Alternatively, install the latest from pyfluent-visualization GitHub via:
pip install git+https://github.com/pyansys/pyfluent-visualization.git
If you plan on doing local “development” of PyFluent with Git, then install with:
git clone https://github.com/pyansys/pyfluent-visualization.git
cd pyfluent-visualization
pip install pip -U
pip install -e .
Dependencies
You will need a locally installed licensed copy of ANSYS to run Fluent, with the first supported version being Ansys 2022 R2.
Getting Started
Basic Usage
from ansys.fluent.visualization.pyvista import Graphics
graphics = Graphics(session=session)
temperature_contour = graphics.Contours["contour-temperature"]
temperature_contour.field = "temperature"
temperature_contour.surfaces_list = ["in1", "in2", "out1"]
temperature_contour.display("window-1")
Above code assumes that a PyFluent session has already been created and a Fluent case with input parameters has been set up. The Analyzing Your Results in the user guide has a complete example.
License and Acknowledgments
PyFluent Visualization is licensed under the MIT license.
This module, ansys-fluent-visualization makes no commercial claim over Ansys whatsoever. This tool extends the functionality of Fluent by adding a Python interface to the Fluent without changing the core behavior or license of the original software. The use of the interactive Fluent control of PyFluent Visualization requires a legally licensed local copy of Ansys.
To get a copy of Ansys, please visit Ansys.
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
Built Distribution
File details
Details for the file ansys-fluent-visualization-0.4.1.tar.gz
.
File metadata
- Download URL: ansys-fluent-visualization-0.4.1.tar.gz
- Upload date:
- Size: 23.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 64e4632ee4e62abcbd764647f0a4138de3959e962929ecee57c771dd4d76c28e |
|
MD5 | a0192c84d77a42260b33357a527ba2eb |
|
BLAKE2b-256 | b52cad50e1f73ea4f454a7b59c27e737e6c79173f9016eaa5f6b3458802ffd13 |
File details
Details for the file ansys_fluent_visualization-0.4.1-py3-none-any.whl
.
File metadata
- Download URL: ansys_fluent_visualization-0.4.1-py3-none-any.whl
- Upload date:
- Size: 26.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9065cca9375e74dfa5e39e1d35ddde3bf1b7cbf36dac143257eda60d1066e519 |
|
MD5 | 803c98f36667de20c34ce4c9e04f7d77 |
|
BLAKE2b-256 | d117a2260214c51048b74c6b1453df425c9539509dc16cdd306dad29d30e76e5 |