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.
scite is a Brooklyn-based organization that helps researchers better discover and understand research articles through Smart Citations–citations that display the context of the citation and describe whether the article provides supporting or contrasting evidence. scite is used by students and researchers from around the world and is funded in part by the National Science Foundation and the National Institute on Drug Abuse of the National Institutes of Health.
customersupport@researchsolutions.com
10624 S. Eastern Ave., Ste. A-614
Henderson, NV 89052, USA
Copyright © 2024 scite LLC. All rights reserved.
Made with 💙 for researchers
Part of the Research Solutions Family.