Skip to main content

A python wrapper for ansys Fluent visualization

Project description

PyAnsys PyPI GH-CI MIT Black

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


Download files

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

Source Distribution

ansys-fluent-visualization-0.4.0.tar.gz (23.5 kB view details)

Uploaded Source

Built Distribution

File details

Details for the file ansys-fluent-visualization-0.4.0.tar.gz.

File metadata

File hashes

Hashes for ansys-fluent-visualization-0.4.0.tar.gz
Algorithm Hash digest
SHA256 d06bd55123fc44a237481aeb811a68805aaab75d3b77453e152cdc29fb5de49e
MD5 84a345d29b9781b6d9fbf67afef3f8cd
BLAKE2b-256 f8b9af95b4ce373f8bcb16cd307cf8c6b76063fddb586592a9b3528ae6019556

See more details on using hashes here.

File details

Details for the file ansys_fluent_visualization-0.4.0-py3-none-any.whl.

File metadata

File hashes

Hashes for ansys_fluent_visualization-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 bce49460f5bd8510d7f4e577ca3c5f5433ec59232f4dd6cafec031edf04909b4
MD5 0ceee7b65442cd7428d3c92469c61fd8
BLAKE2b-256 909751ca008ee72322424f1650a11366b3a6065a966da986b01f6fc315612467

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