ISSN 2658–5782
DOI 10.21662
Electronic Scientific Journal


© Институт механики
им. Р.Р. Мавлютова
УФИЦ РАН


Abdulov I.A., Yakovlev O.V. Mesh generation approaches for fluid dynamics simulation in a T-junction pipe using OpenFOAM. Multiphase Systems. 2025;20(2):89–97 (in Russian).
2025. Vol. 20. Issue 2, Pp. 89–97
URL: http://mfs.uimech.org/mfs2025.2.013
DOI: 10.21662/mfs2025.2.013
Mesh generation approaches for fluid dynamics simulation in a T-junction pipe using OpenFOAM
I.A. Abdulov🖂, O.V. Yakovlev
Ufa University of Science and Technology, Ufa, Russia

Abstract

In the petrochemical industry, catalytic cracking is used to process heavy petroleum products into lighter fuels. This process is carried out in catalytic cracking reactors and the result of the process is greatly influenced by the distribution of reagents within the unit, as well as a number of hydrodynamic parameters such as pressure and temperature. Therefore, computational fluid dynamics methods are used to model such processes. The paper presents a comparative analysis of various approaches to constructing finite-difference meshes for modeling fluid flow in a T-shaped joint of cylindrical pipes using the OpenFOAM package. Both structured meshes created using blockMesh and unstructured hexahedral meshes generated by the snappyHexMesh tool are considered. The conducted assessment of the main quality parameters (non-orthogonality, skewness, cell volume) showed that the structured grid constructed using the improved block connection scheme provides better orthogonality and skewness indicators compared to the unstructured grid, which has a positive effect on the accuracy and stability of numerical modeling. The results of numerical simulation using different turbulence models (k – ε, k – ω, LES) confirmed that the choice and quality of the grid have a significant impact on the distribution of stability of the calculation during simulation. It is shown that the structured grid constructed using blockMesh has better convergence and calculation time for the considered trial problem compared to the unstructured grid constructed using snappyHexMesh. The obtained results can be used to select the optimal approach to constructing computational grids when simulating flows in engineering problems using OpenFOAM.

Keywords

fluid dynamics,
turbulence,
T-junction,
computational fluid dynamics,
3D mesh,
OpenFOAM

Article outline

In the petrochemical industry, catalytic cracking is used to process heavy petroleum products into lighter fuel. This process is carried out in catalytic cracking reactors and the result of the process is greatly affected by the distribution of reagents inside the unit, as well as a number of hydrodynamic parameters, such as pressure and temperature. Therefore, computational fluid dynamics methods are used to model such processes. In addition, modeling hydrodynamic flows requires the creation of a high-quality computational grid, especially in the presence of complex geometry, such as cylindrical pipe connections. Within the framework of using the OpenFOAM package, a popular open-source tool for numerical modeling of hydro- and aerodynamics problems, there are several ways to construct a hexahedral (hexagonal) computational grid. For this purpose, the package uses the blockMesh and snappyHexMesh programs, each of which uses different methods for constructing a finite difference grid. In addition, third-party software solutions (Ansys, Salome, FlowVision) can be used to generate grids with subsequent export to the OpenFOAM format.The article examines methods for constructing finite-difference grids for the numerical simulation of turbulent incompressible fluid flow in a T-junction of cylindrical pipes using the OpenFOAM software package. A comparative analysis is carried out between structured grids created with the blockMesh utility and unstructured hexahedral grids generated using snappyHexMesh.

There are different types of computational grids: structured and unstructured. When constructing an unstructured difference grid, the space is divided into irregularly located discrete areas. With such a division, it is impossible to analytically link the grid cell number and its position in space, which allows constructing difference grids for areas of complex shape, but at the same time slows down the calculation when using such grids. In a structured grid, on the contrary, the computational domain is divided into ordered cells. This allows analytically calculating the cell position by its number, which allows more accurate approximation of derivatives; the use of a structured grid leads to acceleration of the computational process with a fixed number of nodal points; a structured grid reduces the amount of computer RAM required for calculations, simplifies the process of spatial decomposition of the computational domain when parallelizing calculations; an orthogonal structured grid reduces the computational error. However, for objects with complex geometry, it is problematic to construct a structured grid, therefore, in practice, unstructured grids are often used in calculations.

The article considers methods for constructing finite-difference meshes for numerical simulation of turbulent incompressible fluid flow in a T-junction of cylindrical pipes using the OpenFOAM software package. A comparative analysis of structured meshes constructed using the blockMesh utility and unstructured hexahedral meshes obtained using snappyHexMesh is carried out. Geometric approaches to constructing meshes for complex intersection areas of pipes of different diameters are studied. An analysis of mesh quality parameters, such as non-orthogonality, skewness and cell volume, as well as the influence of these parameters on the stability and accuracy of the numerical solution are carried out. For verification, the RANS (k – ε, k – ω) and LES (Smagorinsky) turbulence models implemented in OpenFOAM are used.

Evaluation of the main quality parameters (non-orthogonality, skewness, cell volume) showed that the structured grid constructed using the improved block connection scheme provides better orthogonality and skewness indices compared to the unstructured grid, which has a positive effect on the accuracy and stability of numerical simulation. The results of numerical simulation using various turbulence models (k – ε, k – ω, LES) confirmed that the choice and quality of the grid have a significant effect on the distribution and stability of the calculation during simulation. It is shown that the structured grid constructed using blockMesh has better convergence indices and calculation time for the considered trial problem compared to the unstructured grid constructed using snappyHexMesh.

The obtained results allow us to conclude that it is appropriate to choose a grid generation method depending on the features of the problem geometry and the turbulence models used. The work is of interest to specialists in the field of computational fluid dynamics and engineers using OpenFOAM to model flows in complex pipeline systems.

References

  1. Chang SL, Zhou C. Simulation of FCC riser flow with multiphase heat transfer and cracking reactions. Computational Mechanics. 2003;31(6):519–532. DOI: 10.1007/s00466-003-0459-7
  2. Theologos K, Markatos N. Advanced modeling of fluid catalytic cracking riser-type reactors. AIChE Journal. 1993;39(6):1007–1017. DOI: 10.1002/aic.690390610
  3. Novia N, Ray MS, Pareek V. Three-dimensional hydrodynamics and reaction kinetics analysis in FCC riser reactors. Chemical product and process modeling. 2007;2(2). DOI: 10.2202/1934–2659.1068
  4. Козлова АЮ, Михайленко КИ. Эйлер–Эйлерова модель динамики дисперсной среды в нижней части лифт-реактора. Многофазные системы. 2024;19(1s):60–62.
    Kozlova AYu, Multiphase Systems. 2024;19(1s):60–62 (in Russian). DOI: 10.21662/mfs2024.1s
  5. Аксенов АА, Александрова НА, Будников АВ, Жестков МН, Сазонова МЛ, Кочетков МА. Моделирование LES-подходом в ПК FlowVision турбулентного перемешивания разнотемпературных потоков в T-образном трубопроводе. Компьютерные исследования и моделирование. 2023;15(4):827–843.
    Aksenov AA, Alexandrova NA, Budnikov AV, Zhestkov MN, Sazonova ML, Kochetkov MA. Simulation of multi-temperature flows turbulent mixing in a T-junctions by the LES approach in FlowVision software package. Computer research and modeling. 2023;15(4):827–843 (in Russian). DOI: 10.20537/2076-7633-2023-15-4-827-843
  6. The Open Source ComputationalFluid Dynamics (CFD) Toolbox. [online] {URL: http://www.openfoam.com/} (Accessed 24.05.2025).
  7. Ansys | Engineering Simulation Software. [online] {URL: https://ansys.com/} (Accessed 24.05.2025).
  8. SALOME PLATFORM - The open-source platform for numerical simulation. [online] {URL: https://www.salome-platform.org} (Accessed 24.05.2025).
  9. FlowVision CFD. [online] {URL: https://flowvision.ru/ru/} (Accessed 24.05.2025).
  10. Седов ЛИ. Механика сплошной среды. Том 1. М.: Недра; 1970. 492 c.
    Sedov LI. Continuum mechanics. Vol 1. M.: Nedra; 1970. 492 p.
  11. Охотников ДИ. Прямое численное моделирование ламинарно-турбулентного перехода на сетках с локальным сгущением. Ученые записки Казанского университета Серия Физико-математические науки. 2017;159(2):216–230.
    Okhotnikov DI. Direct numerical modeling of laminar-turbulent transition on grids with local thickening. Scientific notes of Kazan University. Series Physical and mathematical sciences. 2017;159(2):216–230 (in Russian). EDN: zqnuuf
  12. Коркодинов ЯА. Обзор семейства k–$\varepsilon$ моделей для моделирования турбулентности. Вестник Пермского национального исследовательского политехнического университета. Машиностроение, материаловедение. 2013;15(2):5–16. Korkodinov IaA. The review of set of k–$\varepsilon$ models for modeling turbulence. Bulletin PNRPU. Mechanical engineering, materials science. 2013;15(2):5–16 (in Russian). EDN: qyxpqp
  13. Launder B, Spalding DB. The numerical computation of turbulent flows. Comput Methods Appl Mech Eng. 1974;3(2):269-289. 10.1016/0045-7825(74)90029-2
  14. Михайленко КИ. К моделированию вихревой трубы: подготовка гексагональной сетки для вычислительных экспериментов в среде OpenFOAM. Труды Института механики им. Р.Р. Мавлютова Уфимского научного центра РАН. 2016;11(1):112-118.
    Mikhaylenko CI. Simulation of the vortex tube: design of a hexagonal mesh for computational experiments in OpenFOAM. Proceedings of the Mavlyutov Institute of Mechanics. 2016;11(1):112–118. DOI: 10.21662/uim2016.1.017
  15. Polansky J. Pipeline mesh generator based on blockMesh version 2.5. Physikalisch-Technische Bundesanstalt; 2021. 83 p. DOI: 10.7795/530.20230512
  16. Ferziger JH, Peri{\'c} M. Computational methods for fluid dynamics. Springer Science \& Business Media; 2002. 364 p. DOI: 10.1007/978-3-642-56026-2