This project is a Python-based automation tool for running complete Ansys Fluent simulations, designed using object-oriented programming principles. It automates the full pipeline — from geometry import and meshing to solver setup and post-processing — with minimal manual input.
This project was developed and tested with the following software versions:
- ANSYS Fluent: 2025 R1 (Student Edition)
- PyFluent:
ansys-fluent-core==0.30.3
- Python: 3.11.3
- Operating System: Windows 11
Traditional simulation workflows in Ansys Fluent are GUI-driven and time-consuming. This tool replaces repetitive tasks with clean, modular Python code that improves:
- Productivity through full automation
- Reproducibility by eliminating manual clicks
- Code quality via object-oriented structure and separation of concerns
It reflects a strong combination of engineering domain knowledge and modern software development practices.
- Geometry import using PyFluent API
- Automated watertight meshing workflow
- Solver setup with fluid properties, inlet conditions, and gravity
- Post-processing automation: contour plots, vector plots, and plane slices
- Clean OOP structure with reusable, readable classes
It is recommended to use a Python virtual environment to keep dependencies isolated and organized.
Open a terminal (Command Prompt or PowerShell) and run:
python -m venv pyfluent-env
Open a terminal (Command Prompt or PowerShell) and run:
python -m venv pyfluent-env
.\pyfluent-env\Scripts\activate
You should see the environment name ((pyfluent-env)) appear at the beginning of your terminal prompt.
Make sure you have a working Fluent installation and Python environment with ansys.fluent.core
:
pip install ansys-fluent-core
fluent-automation-tool/
- geometry/
- Static Mixer geometry.dsco
- velocity.png
- temperature.png
- ...
- main.py
- README.md
Inside your virtual environment:
py .\fluent_automation.py