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.1.tar.gz (23.5 kB view hashes)

Uploaded Source

Built Distribution

ansys_fluent_visualization-0.4.1-py3-none-any.whl (26.9 kB view hashes)

Uploaded Python 3

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