Научная статья на тему 'The development of free Engineering software package for numerical simulation of hydrodynamics, heat transfer, and chemical reaction processes'

The development of free Engineering software package for numerical simulation of hydrodynamics, heat transfer, and chemical reaction processes Текст научной статьи по специальности «Физика»

CC BY
184
22
i Надоели баннеры? Вы всегда можете отключить рекламу.
Ключевые слова
NUMERICAL SIMULATION / COMPUTATIONAL FLUID DYNAMICS / SOFTWARE PACKAGE / ЧИСЛЕННОЕ МОДЕЛИРОВАНИЕ / ВЫЧИСЛИТЕЛЬНАЯ ГИДРОДИНАМИКА / ПРОГРАММНЫЙ КОМПЛЕКС

Аннотация научной статьи по физике, автор научной работы — Dekterev A.A., Litvintsev K.Yu., Gavrilov A.A., Kharlamov E.B., Filimonov S.A.

Krasnoyarsk Subsidiary of Kutateladze Institute of Thermophysics SB RAS and the Department of Thermophysics of the Siberian Federal University are developing a freely distributable "SigmaFW" software package for numerical simulation of the hydrodynamics, heat and mass transfer problems. It is assumed that the software package will be used in scientific and educational institutions as well as industrial enterprises in Russian Federation. Mathematical models realized in the software package describe steady and unsteady laminar and turbulent single and multicomponent flow taking into account the dispersed phase, the conjugate and radiative heat transfer, and homogeneous gas-phase chemical reactions. The "SigmaFW" contains the necessary tools for building numerical domains, carrying out multi-threaded calculation, and visual analysis of the results. The article describes the three main blocks of software package: the grid generator, calculation module and analysis of the results. In additition, a number of test and application tasks are presented to demonstrate the capabilities of the software.

i Надоели баннеры? Вы всегда можете отключить рекламу.
iНе можете найти то, что вам нужно? Попробуйте сервис подбора литературы.
i Надоели баннеры? Вы всегда можете отключить рекламу.

Текст научной работы на тему «The development of free Engineering software package for numerical simulation of hydrodynamics, heat transfer, and chemical reaction processes»

MSC 76-04

DOI: 10.14529/mmp170410

THE DEVELOPMENT OF FREE ENGINEERING SOFTWARE PACKAGE FOR NUMERICAL SIMULATION OF HYDRODYNAMICS, HEAT TRANSFER, AND CHEMICAL REACTION PROCESSES

A.A. Dekterev1'2, K.Yu. Litvintsev1, A.A. Gavrilov1'2, E.B. Kharlamov1,

S.A. Filimonov12

1

2

E-mail: [email protected], [email protected], [email protected], [email protected],

[email protected]

Krasnoyarsk Subsidiary of Kutateladze Institute of Thermophysies SB RAS and the Department of Thermophysies of the Siberian Federal University are developing a freely distributable "SigmaFW" software package for numerical simulation of the hydrodynamics, heat and mass transfer problems. It is assumed that the software package will be used in scientific and educational institutions as well as industrial enterprises in Russian Federation. Mathematical models realized in the software package describe steady and unsteady laminar and turbulent single- and multicomponent flow taking into account the dispersed phase, the conjugate and radiative heat transfer, and homogeneous gas-phase chemical reactions. The "SigmaFW" contains the necessary tools for building numerical domains, carrying out multi-threaded calculation, and visual analysis of the results. The article describes the three main blocks of software package: the grid generator, calculation module and analysis of the results. In additition, a number of test and application tasks are presented to demonstrate the capabilities of the software.

Keywords: numerical simulation; computational fluid dynamics; software package.

Introduction

Numerical simulation of hydrodynamics and heat and mass transfer processes is used successfully throughout the world as one of the important tools for conducting scientific fundamental and applied research, process flow analysis, optimization and modernization of technological systems and installations. At that, the level of use of this tool in Russia is still quite low. This is due to several reasons, the most notable of which are the financial costs associated with the purchase and support of appropriate software, and the lack of a sufficient number of qualified specialists dealing with numerical simulation of hydrodynamics, heat and mass transfer processes. The use of the most advanced foreign software systems CFD ANSYS or STAR-CCM+ requires investments of tens to hundreds of thousands of dollars. The only Russian commercial CFD software package "FlowVision" has less functional capabilities. Just like in the world, the Russian Federation is involved in the development of industry-specific and university programs. The most famous industry-specific software system is "LOGOS", which is task-oriented to military industrial establishment and the nuclear energy problems. At the moment, "LOGOS" is not available for general use. SaintPetersburg software "VP-2/3" and "SINF" can serve an example of university developed codes. There is a number of free access software (for example, "OpenFOAM") abroad, which are also used by Russian researchers, though their learning requires much more time and high qualification of the user. Thus, the

development of free software package for simulation of the hydrodynamics and heat and mass transfer problems, available to scientific and educational organizations, as well as industrial enterprises in Russia, is an acute issue. Such software package is developed in the Krasnoyarsk Subsidiary of the Institute of Thermophysics SB RAS on the basis of the "SigmaFlow" original designers code [1].

1. Brief Description of the Software Package

The SigmaFW software package consists of three main blocks: preparation of the calculation, calculation module, and analysis of the results. Calculation preparation block includes the grid generator and the module to define the boundary and initial conditions, thermophysical properties, and the parameters of the mathematical model. In the grid generator, the discretization of the computational domain is based on a third-party (imported) geometry pre-prepared in an external CAD system. The grid generation process is based on the octal partition of the geometry space. First, on the basis of a geometrical size of an object the program builds a single spatial element (cube), which contains studied object (Fig. 1). This element, in turn, is divided into eight elements (cubes) and the process is repeated for each element. The time point corresponding to the creation of the first element will comply with the first level of partitioning. Choosing parts for further partitioning and the time moment corresponding to termination of splitting the element, we achieve the desired fineness of the future grid in the desired areas of a geometric object. Thus, the octree is built for computational domain with the necessary blocking factor within and on the boundary of concerned geometry. The obtained octree leaf cells determine the nodes of the future grid. In the course of partitioning, the elements are divided into three groups: the elements, which are outside the object's boundary, the elements inside the object, and the elements, which cross the boundary of the object. The user interface allows specifying a desired level of partitioning within the object, at its boundaries, at a certain distance from the selected boundary, or in a closed rectangular area, specified by the user. Next, the finite grid is constructed based on the resulting spatial distribution of elements. As a result, we obtain unstructured hybrid grid (Fig. 1). which includes a hexahedral elements (cubes) that are mostly inside the object area, and polyhedral elements (pyramids, prisms, and tetrahedrons), located in the transition areas (where the neighboring elements of the preliminary partition have a different segmentation depth) and on the boundaries of the object.

Fig. 1. The transition from the pre-partitioning of the computational domain to construction of the final grid

The calculation module includes implemented mathematical models describing steady and unsteady laminar and turbulent single- and multicomponent flow taking into account the dispersed phase, the conjugate and radiative heat transfer, and homogeneous gasphase chemical reactions. Discretization of the hydrodynamic equations is carried out based on the control volume approach. To simulate turbulence of gaseous phase in stationary and non-stationary flows we use Reynolds-averaged Navier - Stokes equations (RANS). For closing the Reynolds equations we apply models, using both eddy viscosity hypothesis, and the supposition based on transport equations for Reynolds tensions. The program implements two models of the eddy viscosity, which allow resolving turbulent boundary layers. These are two-parameter k-w SST model [2] and the four-parameter k-e f-( model [3]. Simulation of solid particles transfer is based on diffusion-inertia model of the low-inertia particles motion, which is a simplification of two-fluid model of disperse flows [4]. In this case, assuming that the deviations of the particle velocities in comparison with the velocity of the carrier phase are too small, the transport equations of the dispersed phase are reduced to single equation of the diffusion type for the impurity concentration. A mathematical model of the radiation transport is based on the finite volume method (FVM) [5]. The optical properties of the medium are described by WSGG (weighted sum of gray gas) models that provide reasonable accuracy for a large class of applied problems associated with the burning of carbon fuels. The calculation of chemical kinetics of gaseous fuel combustion is based on the use of a combination of global irreversible reactions between reactants to form reaction products, and turbulent combustion model (Eddy brake up model). In addition, calculation module supports multithreaded computing. Parallelization of algorithms of computational fluid dynamics is based on the decomposition of the computational domain and the use of the MPI standard. The SigmaFW code allows performing parallel calculations using both personal computers, and modern cluster systems with Windows and Linux operating systems. The analysis of the calculation results is carried out based on the software package, which includes a 3D-visualization module that allows displaying scalar values of physical quantities in arbitrary cross-sections in the form of isosurfaces and diagrams, as well as along the selected intervals. The module allows also displaying vector physical quantities in arbitrary cross-sections, and in the form of vector fields, as well as displaying the geometry of the computational domain and grid discretization. The program documentation contains training examples of some flow and heat transfer problems. As an example we consider the flow in an asymmetric diffuser [6]. A fully developed turbulent flow is set at the inlet section. The Reynolds number is defined by the velocity in the center of the inlet section and its height Re=20000. Due to the positive pressure gradient in this channel flow separation takes place at the non-fixed separation point. Fig. 2 presents the geometric formulation of the problem and the designed grid. The comparison of calculation results with experiment [6] is represented in terms of the longitudinal velocity component reduced to the volumetric average velocity at the inlet, along the vertical lines located at a distance of 13,5H and 27H from the inlet of the diffuser. Fig. 3 shows a comparison between calculated and experimental longitudinal velocity component.

The second problem represents the comparison of the calculation results of the radiation field with the data from the work of J.M. Yu [7], obtained using the discrete ordinates method. The problem represents a closed cylinder filled with a gas mixture (H20 - 20%, C02 - 10%, N2 - 70%.) with a homogeneous temperature. The calculation

Fig. 2. Computational geometry with inlet and outlet section and the grid

a) b)

Fig. 3. The distribution of the longitudinal velocity component along the vertical lines at a certain distance. Points correspond to experimental data, while solid line shows calculation by SigmaFW: a) 13,5H; b) 27H from the inlet of the diffuser

of radiative heat transfer was performed based on finite volume method with 96 discrete directions, using the WSGG model to calculate the absorption coefficient [8] (as in [7]) and the "gray gasn model built on its basis. Comparison of the results was carried out in terms of the thermal radiation to the side wall of the cylinder. When using the WSGG model, the distribution of the radiation flux at the wall is almost the same, while the use of "gray gasn approximation essentially overstates the radiation flux (Fig. 4 b).

Fig. 4. A closed cylinder filled with a mixture of radiating gases: a) problem formulation; b) distribution of the radiation flux at the side wall of the cylinder: 1 - Yu et al., 2000; 2 - SigmaFW (FVM with WSGG); 3 - SigmaFW (FVM with then "grey gas" approach)

In the framework of the numerical simulation of operating process inside graphite vacuum furnace we carried out comparative calculation of heat transfer based on the authorial software package nSigmaFWn and commercial software nANSYS Fluent". The technological process is carried out inside the retort (less than lm in height), which is located in the furnace and is at the same time the heater. The characteristic operation cycle time of the furnace is one or two days. The dominant heat transfer mechanism in the furnace is radiation. The flow of gases inside the furnace is laminar due to the low density and small velocities (Re 10). Grids for nSigmaFWn (630000 cells) and ANSYS (850000 cells) were built based on geometry imported from CAD system (Fig. 5 a, b). For numerical simulation of radiation heat transfer, ANSYS used a discrete-ordinate method, while nSigmaFWn used FVM. The maximum discrepancy for the temperature is less than 15 K (Fig. 5 c, d).

0 0,1 0,2 0,3 0,4 0,5 0,6 0,7 0,8 0,9 1 1,1 1,2 1,3 1,4 1,5 x, м

O Fluent

-SigmaFW

d)

Fig. 5. Comparison of simulation results of a chemical reactor in terms of temperature fields. The calculation is performed using programs a) grid for "ANSYS"; b) grid for "SigmaFW"; c) temperature field, "SigmaFW"; d) distribution of temperature along the horizontal line passing through the hole

To demonstrate the capabilities of the nSigmaFWn software we present here the numerical simulation of flow around a KAMAZ truck, whose solid model is presented in Fig. 7. For the computational domain we constructed polyhedral grid with a size of 1 200 000 cells, whose fragment is presented in Fig. 6.

Fig. 6. Geometry and computational grid of the truck presented by the nSigmaFWn software package

The free-stream velocity was taken equal to 60 km/h. Obtained velocity field is presented in Fig. 7, which shows the formation of separation areas on the upper front edge of the driver's cabin and behind the vehicle's axes, as well as the formation of a rarefaction zone behind the truck.

Fig. 7. Velocity field at flow around the vehicle by ram air

Conclusion

Thus, we have developed freely distributable software for Russian users which enables solving fundamental and applied problems of hydrodynamics and heat transfer based on simulation of interrelated physical and chemical processes, and contains all the necessary tools to create computational grids, carrying out multi-threaded calculations, and presenting whole analysis of the calculation results.

Acknowledgements. The reported study was funded by Russian Foundation for Basic Research, Government of Krasnoyarsk Territory, Krasnoyarsk Region Science and Technology Support Fund to the research project № 16-48-242085.

References

1. Dekterev A.A., Gavrilov A.A., Minakov A.V. Modern Possibilities of CFD SigmaFlow Code for Solving Thermal Problems. Modern Science: Researches, Ideas, Results, Technology, 2010, no. 2 (4), pp. 117-122. (in Russian)

2. Menter F.R. Zonal Two Equation k — u Turbulence Models for Aerodynamic Flows. AIAA 24th Fluid Dynamics Conference, Orlando, 1993, no. 93-2906, 22 p.

3. Hanjalic K., Popovac M., Hadziabdic M. A Robust Near-Wall Elliptic Relaxation Eddy Viscosity Turbulence Model for CFD. International Journal of Heat and Fluid Flow, 2004, vol. 25, no. 6, pp. 1047-1051.

4. Volkov E.P., Zaichik L.I., Pershukov V.A. Modelirovanie goreniya tverdogo topliva [Modelling of the Solid Fuels Combustion]. Moscow, Nauka, 1994. (in Russian)

5. Chai J.C., Patankar, S.V. Finite-Volume Method for Radiation Heat Transfer. Advances in Numerical Heat Transfer, 2000, vol. 2, N.Y., Taylor and Francis, pp. 109-138.

6. Buice C.U., Eaton J.K. Experimental Investigation of Flow through an Asymmetric Plane Diffuser. Annual Research Briefs 1996, 1996, Center for Turbulence Research, pp. 243-248.

7. Smith T.F., Shenand Z.F., Friedman J.N. Evaluation of Coefficients for the Weighted Sum of Gray Gases Model. Journal of Heat Transfer, 1982, vol. 104, pp. 602-608.

8. Yu M.J., Baek S.W7., Park J.H. An Extension of the Weighted Sum of Fray Gases Non-Gray Gas Radiation Model to a Two Phase Mixture of Non-Gray Gas with Particles. International Journal of Heat and Fluid Flow, 2000, vol. 43, pp. 1699-1713.

Received October 11, 2017

УДК 532.5.013+536.2+004.942+51-37 DOI: 10.14529/mmpl70410

РАЗРАБОТКА ИНЖЕНЕРНОГО СВОБОДНО

РАСПРОСТРАНЯЕМОГО ПРОГРАММНОГО КОМПЛЕКСА

ДЛЯ МОДЕЛИРОВАНИЯ ПРОЦЕССОВ ГИДРОГАЗОДИНАМИКИ,

ТЕПЛООБМЕНА И ХИМИЧЕСКОГО РЕАГИРОВАНИЯ

A.A. Дектерев1'2, К.Ю. Литвинцев1, A.A. Гаврилов1'2, Е.Б. Харламов1,

С.А. Филимонов12

1

Российская Федерация

2

В Красноярском филиале ИТ СО РАН и на кафедре теплофизики С ФУ разрабатывается свободно распространяемый программный комплекс «SigmaFW» для численного моделирования задач гидрогазодинамики и тепломассообмена, который предполагается использовать в научных и образовательных организациях и промышленных предприятиях в РФ. Математические модели, реализованные в программном комплексе, позволяют описывать стационарные и нестационарные ламинарные и турбулентные одно- и многокомпонентные течения с учетом дисперсной фазы, сопряженного теплообмена, переноса излучения и гомогенных газофазных химических реакций. Программный комплекс «SigmaFW» содержит необходимые инструменты для построения вычислительной области, проведения многопоточных вычислений и визуального анализа результатов. В статье описывается три основных блока программного комплекса: генератор сетки, расчетный модуль и модуль анализа расчетов. Кроме этого, в статье представлен ряд тестовых и прикладных задач для демонстрации возможностей программы.

Ключевые слова: численное моделирование; вычислительная гидродинамика; программный комплекс.

Литература

1. Дектерев, А.А. Современные возможности CFD кода SigmaFlow для решения теилофи-зических задач / А.А. Дектерев, А.А. Гаврилов, А.В. Минаков // Современная наука: исследования, идеи, результаты, технологии. - 2010. - № 2 (4). - С. 117-122.

2. Menter, F.R. Zonal Two Equation к — ш Turbulence Models for Aerodynamic Flows / F.R. Menter // AIAA 24th Fluid Dynamics Conference. - Orlando, 1993. - № 93-2906. -22 p.

3. Hanjalic, K. A Robust Near-Wall Elliptic Relaxation Eddy Viscosity Turbulence Model for CFD / K. Hanjalic, M. Popovac, M. Hadziabdic // International Journal of Heat and Fluid Flow. - 2004. - № 25 (6). - P. 1047-1051.

4. Волков, Э.П. Моделирование горения твердого топлива / Э.П. Волков, Л.И. Зайчик,

B.А. Першуков. - М.: Наука, 1994.

5. Chai, J.С. Finite-Volume Method for Radiation Heat Transfer / J.C. Chai, S.V. Patankar // Advances in Numerical Heat Transfer. V. 2. - N.-Y.: Taylor and Francis, 2000. - P. 109-138.

6. Buice, C.U. Experimental Investigation of Flow through an Asymmetric Plane Diffuser /

C.U. Buice, J.K. Eaton // Annual Research Briefs 1996. - Center for Turbulence Research, 1996. - P. 243-248.

7. Smith, T.F. Evaluation of Coefficients for the Weighted Sum of Gray Gases Model / T.F. Smith, Z.F. Shenand, J.N. Friedman // Journal of Heat Transfer. - 1982. - V. 104. -P. 602-608.

8. Yu, M.J. An Extension of the Weighted Sum of Fray Gases Non-Gray Gas Radiation Model to a Two Phase Mixture of Non-Gray Gas with Particles / M.J. Yu, S.WT. Baek, J.H. Park // International Journal of Heat and Fluid Flow. - 2000. - V. 43. - P. 1699-1713.

Александр Анатольевич Дектерев, кандидат технических наук, Институт теплофизики им. С.С. Кутателадзе СО РАН (г. Новосибирск, Российская Федерация); Сибирский федеральный университет (г. Красноярск, Российская Федерация), [email protected].

Кирилл Юрьевич Литвинцев, кандидат физико-математических наук, Институт теплофизики им. С.С. Кутателадзе СО РАН (г. Новосибирск, Российская Федерация), [email protected].

Андрей Анатольевич Гаврилов, К&НДИДсХТ физико-математических наук, Институт теплофизики им. С.С. Кутателадзе СО РАН (г. Новосибирск, Российская Федерация); Сибирский федеральный университет (г. Красноярск, Российская Федерация), [email protected].

Егор Борисович Харламов, Институт теплофизики им. С.С. Кутателадзе СО РАН (г. Новосибирск, Российская Федерация), [email protected].

Сергей Анатольевич Филимонов, Институт теплофизики им. С.С. Кутателадзе СО РАН (г. Новосибирск, Российская Федерация); Сибирский федеральный университет (г. Красноярск, Российская Федерация), [email protected].

Поступила в редакцию И октября 2017 г.

i Надоели баннеры? Вы всегда можете отключить рекламу.