Skip to main content

A python wrapper for Ansys Fluent parametric workflows

Project description

PyAnsys PyPI GH-CI MIT Black

Overview

The PyFluent Parametric project provides Pythonic access to Ansys Fluent’s parametric workflows.

Documentation and Issues

Please see the latest release documentation page for more details.

Please feel free to post issues and other questions at PyFluent Parametric Issues. This is the best place to post questions and code.

Installation

The ansys-fluent-parametric package currently supports Python 3.7 through Python 3.10 on Windows and Linux.

Install the latest release from PyPI with:

pip install ansys-fluent-parametric

Alternatively, install the latest from pyfluent-parametric GitHub via:

pip install git+https://github.com/pyansys/pyfluent-parametric.git

If you plan on doing local “development” of PyFluent with Git, then install with:

git clone https://github.com/pyansys/pyfluent-parametric.git
cd pyfluent-parametric
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.parametric import ParametricStudy
study_1 = ParametricStudy(session.solver.root.parametric_studies).initialize()
input_parameters_update = study_1.design_points["Base DP"].input_parameters
input_parameters_update["inlet1_vel"] = 0.5
study_1.design_points["Base DP"].input_parameters = input_parameters_update
study_1.update_current_design_point()
print(study_1.design_points["Base DP"].output_parameters)

Above code assumes that a PyFluent session has already been created and a Fluent case with input parameters has been set up. The Defining Parametric Workflows in the user guide has a complete example.

License and Acknowledgments

PyFluent Parametric is licensed under the MIT license.

This module, ansys-fluent-parametric 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 Parametric 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-parametric-0.4.1.tar.gz (10.5 kB view hashes)

Uploaded Source

Built Distribution

ansys_fluent_parametric-0.4.1-py3-none-any.whl (8.5 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