CFD-modeling of fluid flow in Ansys Fluent using Python-based code for automation of repeating calculations

Численное моделирование течения жидкости в ANSYS Fluent с использованием Python-кода для автоматизации повторяющихся расчетов
Dmitry Pashchenko, V. S. Papkov, Nikita Shadymov
2023-01-12

CFD modeling in Ansys FluentNACA0018 airfoilPython-based automationcomputational time savingspacked bed heat transfer
CFD-modeling for numerical investigation is used in a wide range of applied tasks, e.g. in fluid mechanics. To better understand the effect of operational parameters on the final results, some tasks are associated with carrying out monotonous, repetitive calculations for a wide range of operational parameters such as velocity, flow direction and temperature. In this paper, a Python-based code for automation of the repeating calculations in CFD-modeling was developed and described. The automation code was tested for CFD-modeling in Ansys Fluent for two flow dynamic tasks: a simple 2D-geometry — NACA0018 airfoil, and a complex 3D-geometry — packed bed with heat transfer. Three different computers with various computational power were used for the comparison. The results of CFD-modeling were compared with the experimental data. The efficiency of using Python-based code was evaluated through comparison with the results of manual (without automation) calculation. It was established that the application of the Python-based code does not affect the accuracy of numerical results. At the same time, utilization of the Python-based code can save up to 25% of computation time for the simple 2D-geometries with a moderately low number of elements in the mesh, and up to 15% for the complex 3D-geometries with a number of elements in several millions. The compiled Python-based code is attached as supplementary material to this paper.
1
A Python-based automation code for repeating CFD calculations in Ansys Fluent was developed and described.
2
Automation code was tested on two cases: 2D NACA0018 airfoil and 3D packed bed with heat transfer.
3
Python automation reduced computation time by up to 15% for complex 3D geometries with mesh sizes of several millions of elements.
4
Python automation reduced computation time by up to 25% for simple 2D geometries with moderately low mesh element counts.
5
The Python-based code was evaluated across three computers with different computational power and compared against experimental data.
6
The compiled Python-based code is provided as supplementary material to the paper.
7
Using the Python-based code does not affect the accuracy of numerical CFD results compared to manual runs.

CFD simulations in Ansys Fluent for two test geometries (2D NACA0018 airfoil and 3D packed bed with heat transfer) automated by a Python-based code

Effectiveness and impact of a Python-based automation code on repetitive CFD calculations: computational time savings, preservation of numerical accuracy, and performance across different hardware and geometry complexity

Publication Details
Publication Date
2023-01-12
Journal
Publisher
ISSN
Cited by
16
Access Type
Author Information
Authors
Dmitry Pashchenko
V. S. Papkov
Nikita Shadymov
Explore further
Open the scid.ai AI chat with a ready-made request: it will find papers on a similar topic and help build a literature review.
Find similar papers in the chat
Make a presentation
100%