18 Getting started with PyFluent
Install sequentially the following packages as described here:
pip install ansys-fluent-core
pip install ansys-fluent-parametric
pip install ansys-fluent-visualization
Note: ansys-fluent-parametric requires an outdated version of NumPy (<2.0), so you probably need to consider working in a virtual environment.
18.1 Journaling
(api-start-python-journal "journal.py")18.2 First steps
import ansys.fluent.core as pyfluentconfig = dict(
ui_mode = "gui",
precision = "double",
dimension = 3,
processor_count = 1,
)
session = pyfluent.launch_fluent(mode = "solver", **config)session.exit()