A python wrapper for Ansys Fluent parametric workflows
Project description
Overview
PyFluent-Parametric provides Pythonic access to Ansys Fluent’s parametric workflows.
Documentation and issues
For comprehensive information on PyFluent-Parametric, see the latest release documentation.
On the PyFluent-Parametric Issues, you can create issues to submit questions, report bugs, and request new features. To reach the project support team, email pyansys.core@ansys.com.
Installation
The ansys-fluent-parametric package currently supports Python 3.8 through Python 3.11 on Windows and Linux.
Install the latest release from PyPI with:
pip install ansys-fluent-parametric
Alternatively, install the latest from GitHub with:
pip install git+https://github.com/ansys/pyfluent-parametric.git
If you plan on doing local development of PyFluent with Git, install with:
git clone https://github.com/ansys/pyfluent-parametric.git
cd pyfluent-parametric
pip install pip -U
pip install -e .
Dependencies
You must have a locally-installed, licensed copy of Ansys to run Fluent. The first supported version is 2022 R2.
Getting started
Basic usage
The following code assumes that a PyFluent session has already been created and a Fluent case with input parameters has been set up. For a full example, see Defining Parametric Workflows in the PyFluent-Parametric documentation.
import ansys.fluent.core as pyfluent
from ansys.fluent.parametric import ParametricStudy
solver_session = pyfluent.launch_fluent(mode="solver")
study = ParametricStudy(solver_session.parametric_studies).initialize()
input_parameters_update = study.design_points["Base DP"].input_parameters
input_parameters_update["inlet1_vel"] = 0.5
study.design_points["Base DP"].input_parameters = input_parameters_update
study.update_current_design_point()
print(study.design_points["Base DP"].output_parameters)
License and acknowledgments
PyFluent-Parametric is licensed under the MIT license.
PyFluent-Parametric makes no commercial claim over Ansys whatsoever. This library extends the functionality of Fluent by adding a Python interface to 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 Fluent.
For more information, see the Ansys Fluent <https://www.ansys.com/products/fluids/ansys-fluent> page on the Ansys website.
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
Hashes for ansys_fluent_parametric-0.8.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | c958079bf1e294322a6494cd1dac2c795de39636e59dea0f272cee4cd884f9a7 |
|
MD5 | 68a2d3b29de6eda530385408c0e18f5d |
|
BLAKE2b-256 | 28cb4c6da26a25048a02a863f07fb41c16b1ed72d9971e465d55bd46b99a83d1 |
Hashes for ansys_fluent_parametric-0.8.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 44934566c8e15470125530f5e02f5027b2a4dc2443445fe69e736d70d36f6ccf |
|
MD5 | f50300f8a37ab14bbbbaa6ca07962ce6 |
|
BLAKE2b-256 | 7b60511e772f2f62c2d6ed99902e967ce297bf905006496223c7ab4deaeae7f6 |