Fuel effective equivalence ratio calculation method oriented to OpenFOAM two-phase combustion simulation result
By calculating the carbon/hydrogen/oxygen element mass fraction and effective equivalence ratio in OpenFOAM, the problem of obtaining the gas phase fuel equivalence ratio in OpenFOAM simulation of liquid fuel combustion is solved. This enables fast and accurate calculation of the effective fuel equivalence ratio and monitoring of characteristic structures, supporting the refined design of power systems.
Patent Information
- Application Number
- CN202410893669.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-04
- Publication Date
- 2024-11-12
- Estimated Expiration
- 2044-07-04
AI Technical Summary
When simulating liquid fuel combustion, OpenFOAM has difficulty accurately obtaining the stoichiometry of gaseous fuels, which affects the ignition reliability, flame stability and combustion efficiency of the power system. In addition, the data post-processing is complicated and it is difficult to quickly extract and analyze the results.
This paper presents a method for calculating the effective fuel equivalence ratio based on OpenFOAM two-phase combustion simulation results. By setting the working path, reading the mesh file, creating a global blank file, defining variable names, calculating the mass fraction of carbon, hydrogen, and oxygen elements and the effective equivalence ratio, and extracting feature surface information, it achieves fast and accurate calculation of the effective fuel equivalence ratio and dynamic monitoring of feature structures.
It enables rapid and accurate calculation of stoichiometric distribution in liquid fuel power systems, extraction of temporal evolution information of characteristic structures, support for refined design of combustion organization, applicability to any liquid hydrocarbon fuel and reaction mechanism, and results that are easy to read by data processing software.
Smart Images

Figure CN118940655A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of post-processing and analysis of combustion numerical simulation results, and in particular to a method for calculating a fuel effective equivalent ratio based on an OpenFOAM two-phase combustion simulation result. Background Art
[0002] With the rapid development of computer software and hardware technology, computational fluid dynamics (CFD) has been widely used in simulating and studying chemical reaction flows. OpenFOAM is an object-oriented open source C++ class library based on the finite volume method. It has significant advantages such as open code, free access, easy expansion, and support for large-scale parallel computing. Compared with commonly used CFD commercial software such as ANSYS Fluent, COMSOL Multiphysics, STAR-CCM+, etc., which have closed algorithms and expensive copyrights, OpenFOAM code is completely open, with strong flexibility and easy scalability, and can be customized according to user research needs. It supports polyhedral meshes, can handle complex geometric configurations, and has powerful simulation and analysis capabilities for fluid flow, heat transfer and multi-physics field coupling problems. It has been widely used in aerospace and weapons industry, shipbuilding and ocean, energy and electricity, vehicles and ground transportation, heavy industrial machinery, electronics and electrical appliances, and other fields.
[0003] Liquid fuels, especially liquid hydrocarbon fuels, have been widely used in various power systems such as internal combustion engines, gas turbines, aircraft engines, rockets and ramjets due to their significant advantages such as easy storage (and therefore rapid response), easy transportation, low production cost, high volume energy density, and can be used as coolants. As fuel, liquid hydrocarbons need to undergo extremely complex physical-chemical processes such as continuous liquid phase injection, primary atomization of liquid columns, secondary breakup of liquid clumps, turbulent dispersion of droplets, forced motion, endothermic evaporation, fuel vapor mixing, ignition, and flame propagation to achieve stable combustion and provide power. In the above process, due to the limited penetration depth, turbulent transport and convection diffusion of the liquid jet, it is very easy to cause uneven spatial distribution of fuel droplet size, number density and oil-gas equivalence ratio. Uneven local equivalence ratios have a significant adverse effect on the ignition reliability, flame stability, combustion efficiency and power stability of the power system, and in severe cases may cause damage to the power system and mission failure.
[0004] When liquid fuel burns, gas and liquid phases always coexist, and the actual combustion process takes place in the gas phase. Therefore, when using OpenFOAM simulation, it is difficult to obtain the gas equivalent ratio that really affects the combustion performance, which is also a relatively weak point in OpenFOAM data post-processing. OpenFOAM outputs the calculation results of different field quantities in the form of scattered independent files, and the number of data files is large. However, the configuration and grid are determined by multiple files, which is not convenient for fast reading, refining, and analysis of results. In addition, the chemical reaction mechanism of liquid hydrocarbon fuels is complex, and there are usually a variety of small molecular combustible intermediates containing carbon or hydrogen. Directly calculating the local equivalent ratio with a single component of hydrocarbon fuel vapor cannot reflect the actual situation and may have large errors, which is not conducive to the refined design of the power system and the precise control of the combustion organization. Therefore, facing the OpenFOAM two-phase combustion simulation results, it is necessary to develop a data post-processing algorithm that can quickly and accurately calculate the gas equivalent ratio (called the fuel effective equivalent ratio). Summary of the invention
[0005] The purpose of the present invention is to provide a method for calculating the effective equivalent ratio of fuel for OpenFOAM two-phase combustion simulation results, which can quickly, conveniently and accurately calculate the effective equivalent ratio of gas-phase fuel that has evaporated or even partially reacted in the OpenFOAM two-phase combustion simulation results, and output it in an appropriate and easy-to-read file form; by adding a characteristic structure discrimination code, the evolution process of the effective equivalent ratio on characteristic surfaces such as shock wave fronts and flame surfaces can be obtained, thereby real-time monitoring of the combustion organization of the power system, providing a reference basis for the improved design of the power system.
[0006] To achieve the above object, the present invention provides a method for calculating the fuel effective equivalent ratio based on the OpenFOAM two-phase combustion simulation results, comprising the following steps:
[0007] S1. Set the current working path of OpenFOAM, read multiple discretized grid files and create example grids;
[0008] S2. Create a global blank file in the working directory to store information such as the transient position and effective equivalent ratio of the characteristic structure of the shock front and flame surface at different times;
[0009] S3. Write variable names in the blank file of step S2 above, wherein the variable names represent time information, three-dimensional coordinates of characteristic surfaces, heat release rate, mass fraction of carbon / hydrogen / oxygen elements, and effective equivalent ratio;
[0010] S4, read the heat release rate, pressure gradient, and all component field data files containing carbon / hydrogen / oxygen elements in a single time folder, and traverse all moments in the working directory;
[0011] S5. Create blank field files YC, YH, YO, EqvPhi and Zo in the directory at each moment to store the mass fraction, effective equivalent ratio and mixture fraction of carbon / hydrogen / oxygen elements at that moment;
[0012] S6. Define and calculate the mass fractions of carbon / hydrogen / oxygen elements in all components through regular expressions, and save them in the form of OpenFOAM standard field data in each time directory;
[0013] S7. Define and calculate the effective equivalent ratio based on element ratio and mixture fraction through regular expressions and save them as field files;
[0014] S8. Define the shock front and flame surface structure through regular expressions, and extract key information on the characteristic surface. The key information is the time evolution process of the effective equivalence ratio for dynamic monitoring.
[0015] Preferably, in step S1, the example grid is a static grid, a dynamic grid, a structured grid or an unstructured grid, the static grid refers to the same grid used at all times, and the grid does not change during the numerical simulation; the dynamic grid refers to the grid whose grid topology or computational domain boundary changes during the numerical simulation.
[0016] Preferably, in step S2, the global blank file is set to any file format as needed, the shock front is characterized by the maximum modulus of the pressure gradient, the flame surface is characterized by the maximum value of the heat release rate, and the time evolution information of the shock front and the flame surface are respectively stored in two files SF.dat and RF.dat.
[0017] Preferably, in step S3, the variable names time, XSF, YSF, ZSF, QdotSF, gradpSF, YCSF, YHSF, YOSF and EqvPhiSF are written in the first line of the SF.dat file, respectively, to store time information, x / y / z axis coordinates on the shock front, heat release rate, pressure gradient, C / H / O element mass fraction and effective equivalent ratio, respectively; the variable names time, XRF, YRF, ZRF, QdotRF, gradpRF, YCRF, YHRF, YORF and EqvPhiSF are written in the first line of the RF.dat file, respectively to store time information, x / y / z axis coordinates on the shock front, heat release rate, pressure gradient, C / H / O element mass fraction and effective equivalent ratio, and the variable names are separated by commas.
[0018] Preferably, in step S4, the components, heat release rate and pressure gradient calculation results in each moment directory are read in the OpenFOAM standard file reading and writing mode, and all moments in the working directory are traversed through the forAll loop embedded in OpenFOAM.
[0019] Preferably, in step S5, a blank field file is created in each moment directory in accordance with the OpenFOAM standard file reading and writing method to store the calculation results of some field quantities.
[0020] Preferably, in step S6, all components containing carbon / hydrogen / oxygen elements have the general formula C x H y O z , x, y, z are the number of C, H, and O atoms in the molecule, and their mass fractions are:
[0021]
[0022] M C 、M H and M O are the molecular weights of C, H, and O elements respectively. The summation symbol Σ indicates that the above calculation traverses all components containing C, H, and O elements.
[0023] Preferably, in step S7, based on the effective equivalent ratio φ of the elements e and mixture fraction Z O They are:
[0024]
[0025] is the mass fraction of oxygen in the oxidant. Since the mass fractions of all components or elements are calculated in the gas phase, the above formula naturally characterizes the effective equivalence ratio and mixture fraction of the gas phase fuel, and covers all components containing C / H / O elements.
[0026] Preferably, in step S8, for each moment, all computational grids are traversed by a forAll loop, and grid cells that meet the characteristics of the shock front and flame surface are screened by an if judgment. The information on the characteristic grid is output to a global file in the order of the variable names defined in step S3, and all moments are traversed to obtain the evolution process of the characteristic surface within that period of time.
[0027] Therefore, the present invention adopts the above-mentioned fuel effective equivalent ratio calculation method for OpenFOAM two-phase combustion simulation results, and the beneficial effects are as follows:
[0028] (1) The present invention is oriented to the OpenFOAM two-phase combustion numerical simulation results, and can quickly and accurately calculate the equivalence ratio distribution on all grids of the liquid fuel power system, taking into account the incomplete evaporation of the fuel and all intermediate components that are not fully burned.
[0029] (2) The present invention can extract the time evolution information of key variables on characteristic structures such as shock wave front (especially important for internal combustion engine detonation and air-breathing hypersonic power systems) and flame surface, which can support the refined design of combustion organization.
[0030] (3) The calculation method of the present invention has good generalizability. For any liquid hydrocarbon fuel and any reaction mechanism, it is only necessary to modify the components read in the fourth step and the regular expression for calculating the element mass fraction in the sixth step accordingly.
[0031] The technical solution of the present invention is further described in detail below through the accompanying drawings and embodiments. BRIEF DESCRIPTION OF THE DRAWINGS
[0032] Figure 1 It is a flow chart of effective equivalent ratio calculation of an embodiment of a method for calculating effective equivalent ratio of fuel for OpenFOAM two-phase combustion simulation results of the present invention;
[0033] Figure 2 It is a schematic diagram of a physical model of a method for calculating the effective equivalent ratio of fuel for an OpenFOAM two-phase combustion simulation result according to an embodiment of the present invention;
[0034] Figure 3 It is the spatiotemporal distribution of the effective equivalent ratio of n-heptane droplet / air one-dimensional detonation in an embodiment of a method for calculating the effective equivalent ratio of fuel for OpenFOAM two-phase combustion simulation results of the present invention;
[0035] Figure 4 The invention discloses an effective equivalent ratio calculation method for fuel based on OpenFOAM two-phase combustion simulation results, and shows the evolution of the effective equivalent ratio on a one-dimensional detonation characteristic surface of n-heptane droplets / air;
[0036] Figure 5 It is a schematic diagram of a physical problem of a hydrogen-guided n-heptane droplet fuel scramjet combustion chamber according to an embodiment of a method for calculating the fuel effective equivalence ratio for an OpenFOAM two-phase combustion simulation result of the present invention;
[0037] Figure 6 It is a method for calculating the fuel effective equivalent ratio of an OpenFOAM two-phase combustion simulation result according to the present invention, and a scramjet combustion chamber effective equivalent ratio cloud diagram with an additional n-heptane chemical appropriate ratio contour line;
[0038] Figure 7 The invention discloses a supercombustion chamber mixture fraction cloud diagram and additional hydrogen equivalent mixture fraction contour lines in an embodiment of a method for calculating a fuel effective equivalence ratio for an OpenFOAM two-phase combustion simulation result. DETAILED DESCRIPTION
[0039] The technical solution of the present invention is further described below through the accompanying drawings and embodiments.
[0040] Unless otherwise defined, technical or scientific terms used in the present invention shall have the common meanings understood by one having ordinary skills in the field to which the present invention belongs.
[0041] A method for calculating the fuel effective equivalent ratio based on OpenFOAM two-phase combustion simulation results comprises the following steps:
[0042] S1. Set the current working path of OpenFOAM, read multiple discretized grid files and create example grids; the example grids can be static grids, dynamic grids, structured grids or unstructured grids. Static grids refer to the same grids used at all times, and the grids do not change during the numerical simulation; dynamic grids refer to grids whose grid topology or computational domain boundaries change during the numerical simulation. For example, in simulation methods such as rotating machinery, moving boundaries and adaptive grid encryption, the grids change dynamically with the calculation process.
[0043] S2. Create a global blank file in the working directory to store information such as the transient position and effective equivalent ratio of the characteristic structures of the shock front and flame surface at different times; the global blank file can be set to any file format as needed, such as the .dat format that is easily readable by common data processing software such as Origin and Tecplot.
[0044] The shock front is characterized by the maximum modulus of the pressure gradient, and the flame surface is characterized by the maximum value of the heat release rate. The time evolution information of the shock front and the flame surface are stored in two files, SF.dat and RF.dat, respectively.
[0045] S3. Write variable names in the blank file of step S2 above. The variable names represent time information, three-dimensional coordinates of characteristic surfaces, heat release rate, mass fraction of carbon / hydrogen / oxygen elements and effective equivalent ratio, etc.
[0046] Specifically, the variable names time, XSF, YSF, ZSF, QdotSF, gradpSF, YCSF, YHSF, YOSF and EqvPhiSF are written in the first line of the SF.dat file to store time information, x / y / z coordinates on the shock front, heat release rate, pressure gradient, C / H / O element mass fraction and effective equivalent ratio respectively; the variable names time, XRF, YRF, ZRF, QdotRF, gradpRF, YCRF, YHRF, YORF and EqvPhiSF are written in the first line of the RF.dat file to store time information, x / y / z coordinates on the flame surface, heat release rate, pressure gradient, C / H / O element mass fraction and effective equivalent ratio respectively. The variable names are separated by commas so that different column data can be identified when reading into common data software.
[0047] S4. Read the heat release rate, pressure gradient, and component field data files of all carbon / hydrogen / oxygen elements in a single time folder, and traverse all moments in the working directory; read the components, heat release rate, and pressure gradient calculation results in each moment directory using the OpenFOAM standard file reading and writing method (IOdictionary class), and traverse all moments in the working directory through the forAll loop embedded in OpenFOAM. The specific components and their quantities are determined by the chemical reaction mechanism used in the actual calculation and can be flexibly modified as needed.
[0048] S5. Create blank field files YC, YH, YO, EqvPhi and Zo in each moment directory to store the mass fraction, effective equivalent ratio and mixture fraction of carbon / hydrogen / oxygen elements at that moment; still create blank field files in each moment directory using the OpenFOAM standard file reading and writing method to store the calculation results of some field quantities.
[0049] Therefore, the output file has the same organizational form as other field quantities output by OpenFOAM numerical calculation, and also forms a mapping relationship with the grid file, which is convenient for further processing and analysis.
[0050] S6. Define and calculate the mass fractions of carbon / hydrogen / oxygen elements in all components through regular expressions and save them in the form of OpenFOAM standard field data in each time directory; all components containing carbon / hydrogen / oxygen elements have the general formula C x H y O z , x, y, z are the number of C, H, and O atoms in the molecule, and their mass fractions are:
[0051]
[0052] M C 、F H and MO are the molecular weights of C, H, and O elements respectively. The summation symbol Σ indicates that the above calculation traverses all components containing C, H, and O elements.
[0053] S7, define and calculate the effective equivalent ratio based on element ratio and mixture fraction through regular expressions, and save them as field files, covering all components such as combustible intermediates;
[0054] Based on the effective equivalent ratio φ of the elements e and mixture fraction Z O They are:
[0055]
[0056]
[0057] is the mass fraction of oxygen in the oxidant. Since the mass fractions of all components or elements are calculated in the gas phase, the above formula naturally characterizes the effective equivalence ratio and mixture fraction of the gas phase fuel, and covers all components containing C / H / O elements.
[0058] S8. Define the shock front and flame surface structure through regular expressions, extract key information on the characteristic surface, and the key information is the time evolution process of the effective equivalence ratio, which is used to realize dynamic monitoring.
[0059] At each moment, all computational grids are traversed with a forAll loop, and grid cells that meet the characteristics of the shock front and flame surface are selected with an if judgment. The information on the characteristic grid is output to the global file according to the order of the variable names defined in step S3, and all moments are traversed to obtain the evolution process of the characteristic surface during this period of time.
[0060] Through the above steps, a high-efficiency data post-processing method for calculating the effective equivalence ratio of the liquid fuel power system based on the OpenFOAM two-phase combustion simulation results is given. The results are saved in an easy-to-read file format such as Origin and Tecplot, which is convenient for further analysis.
[0061] The fuel effective equivalent ratio calculation process of the present invention for the OpenFOAM two-phase combustion simulation result is as follows: Figure 1 .
[0062] First, read the discretized grid file and multiple data files of the simulation results. If the calculation uses a static grid, only the grid file of the first moment is read; if the calculation uses a dynamic grid, the corresponding grid file needs to be re-read at each moment.
[0063] Secondly, the mapping relationship between the grid file and the data file is established to complete the code preparation. At the same time, based on the OpenFOAM standard file reading and writing method, blank files SF.dat and RF.dat are created in the working directory, and blank field files YC, YH, YO, EqvPhi and Zo are created in each moment folder.
[0064] Again, the mass fractions of carbon, hydrogen, and oxygen are calculated using regular expressions (1)–(3), and then the effective equivalent ratio and mixture fraction are calculated using regular expressions (4)–(5). The above results are saved in a folder at each moment, with the same file structure as other scalar fields in OpenFOAM.
[0065] Finally, the shock front and flame surface are defined by regular expressions, and key information on the feature surface, such as the effective equivalent ratio, is extracted. Each time a time folder is read, the result is written into the SF.dat and RF.dat files, and the time evolution process of key quantities is obtained by traversing all time folders.
[0066] The functions and effects of the algorithm of the present invention are further described below by two specific embodiments. The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain the present invention, rather than limiting the applicable scenarios of the present invention.
[0067] Embodiment 1
[0068] A schematic diagram of a one-dimensional detonation tube of n-heptane droplet / air is shown in Figure 2 , with a total length of 6m and closed at both ends, including a 2m long pre-detonation tube and a 4m long two-phase detonation section. The left end of the two-phase detonation section is recorded as x=0, and the moment when the detonation front enters the two-phase region is recorded as t=0. The pre-detonation tube is filled with a chemically appropriate ratio of n-heptane vapor / air mixture; the two-phase detonation zone is a n-heptane droplet / air mixture without fuel pre-evaporation. The initial diameter of the droplets is 10μm, and they are evenly distributed in the two-phase region. It is assumed that the effective equivalence ratio of the mixture formed with the air after all evaporation is 1.0. The initial temperature and pressure of the gas are 300K and 0.1MPa, respectively, and the initial temperature of the droplets is also 300K. They are all at rest at the initial moment.
[0069] A local high-temperature, high-pressure zone (temperature 2500K, pressure 5MPa) with a thickness of 2cm is set on the left end wall of the pre-detonation tube to induce detonation wave initiation. After the initial detonation wave is fully developed, it reaches a stable state and enters the two-phase region to continue propagating. Under the action of the detonation wave, the n-heptane droplets evaporate and burn rapidly, and there are incompletely evaporated droplets and incompletely reacted combustible intermediates after the detonation wave. After completing the numerical simulation of the problem using OpenFOAM, the algorithm of the present invention is used to calculate the spatiotemporal distribution of the effective equivalence ratio in the entire two-phase region and the evolution of the effective equivalence ratio on the dynamically propagating detonation front.
[0070] Figure 3 The distribution of the effective equivalent ratio in the time-space domain in the two-phase region (intercepted by x = 0 ~ 2m) obtained by the algorithm of the present invention. The middle red area is the area with non-zero effective equivalent ratio, and its right boundary is the space-time trajectory of the shock wave front, and the left boundary is the space-time trajectory of the reaction surface. The blue areas on both sides are φ e →0. The blue area on the right is because the shock wave front has not arrived yet, and the temperature of the n-heptane droplets is the same as the air temperature and they are both in a static state. The natural evaporation amount is extremely small within the millisecond time, so the effective equivalent ratio is close to 0. The blue area on the left is because the n-heptane droplets are quickly heated, evaporated, enter the gas phase and ignite through the action of the shock wave front and the reaction surface, and are fully burned in the flame zone. The fuel is consumed behind the flame surface, so the effective equivalent ratio is close to 0. As can be seen in the figure, in the gas phase (x = -2~0m, such as Figure 2 ) The initial detonation wave that has developed stably shows a decoupling trend after entering the two-phase region.
[0071] For example, at t=0, the shock front and the reaction surface are tightly coupled. As the propagation distance increases, the distance between the two increases, and the detonation wave degenerates into a leading shock wave accompanied by a deflagration wave. In addition, due to the strong impact of the leading shock wave, the n-heptane droplets cannot be accelerated to the gas phase velocity immediately, showing a significant aggregation effect. That is, in the area swept by the shock front, the n-heptane droplets are confined to a shorter distance between the shock front and the reaction surface. Although the initial equivalence ratio is 1, the actual local equivalence ratio is close to 20, and the actual combustion state is not the state initially set. The fuel effective equivalence ratio calculation method developed by the present invention can accurately give the actual combustion state, and is more instructive for the refined design and precise regulation of the combustion process.
[0072] Figure 4 is the time evolution process of the effective equivalent ratio on the shock front and reaction surface after entering the two-phase region. On the shock front, Φ e There are violent oscillations, which are mainly caused by the uneven distribution of droplets. After the shock wave front sweeps over the droplets, it causes macroscopic movement and local perturbation of the droplet position, breaking the original uniform distribution of the droplets in the computational domain. The uneven distribution of droplets on the grid causes an extremely uneven effective equivalent ratio on the shock wave front after evaporation, showing violent oscillations. On the flame front, φ e The oscillation is significantly weakened, but it also tends to gradually increase as the distance between the shock wave front and the flame surface increases.
[0073] As can be seen above, even for a simple two-phase combustion model problem, its actual process is extremely complex. It is of great significance to grasp the real state and working conditions of two-phase combustion in real time, which is also one of the manifestations of the application value of the algorithm of the present invention.
[0074] Embodiment 2
[0075] The physical problem of the scramjet combustion chamber of the n-heptane droplet fuel model is shown in the figure below. Figure 5 , the height of the combustion chamber inlet (y direction) is 50mm and the total length (x direction) is 340mm. A support plate with a length of 32mm and a height of 6mm is placed along the center line of y=25mm at x1=77mm downstream of the combustion chamber inlet. A circular hole with a diameter of 1mm is opened on the back of the support plate (located at x0=109mm) for injecting a mixed fuel of hydrogen and n-heptane droplets. The upper wall of the combustion chamber has an inclination angle of 3° from x2=100mm. The Mach number of the air flow at the combustion chamber inlet is 2.0, the static temperature is 340K, and the static pressure is 0.1MPa. Calculated by mass fraction, the air composition is 73.6% nitrogen, 23.2% oxygen and 3.2% water vapor. Hydrogen is injected into the combustion chamber at Mach 1.0, with a static temperature of 250K and a static pressure of 0.1MPa.
[0076] Liquid n-heptane fuel uses hydrogen as a carrier gas, is fully atomized and broken, and then sprayed into the combustion chamber through the same nozzle. The initial droplet diameter is 15μm, the initial temperature is 300K, and the injection speed is the same as the hydrogen speed of 1200m / s. The highly active hydrogen acts as a guide flame, which promotes the evaporation, ignition and combustion of n-heptane droplets after they are sprayed into the combustion chamber. However, the injection speed of n-heptane is high, and it needs to go through the heating, evaporation and ignition processes. There are physical areas where the droplets are not completely evaporated and the intermediate products are not fully burned. Therefore, this physical model is also a typical two-phase combustion problem, and involves characteristics such as supersonic flow, shock waves, and dual-fuel systems.
[0077] Figure 6 The distribution cloud diagram of the effective equivalent ratio of the combustion chamber after the fuel support plate is given. The white curve is the contour line of the chemical appropriate ratio of n-heptane / air (φ l =1.0). After the gaseous hydrogen and n-heptane droplets are ejected from the back of the support plate, due to the high temperature and low speed characteristics of the recirculation zone, the fuel has a long residence time, and the effective equivalent is relatively high within a distance downstream of the support plate. Compared with hydrogen, n-heptane has a longer ignition delay time and higher ignition energy. As the airflow develops downstream, it is still not completely burned. Under the action of turbulent vortices, several isolated rich gas clusters are formed, namely the three φ downstream of the combustion chamber in the figure. l =The area limited by 1.0.
[0078] Figure 7 The distribution cloud diagram of the mixture fraction in the combustion chamber after the fuel support plate is given. The white curve is the isoline of the hydrogen / air equivalent mixture fraction (Z g =0.0282). The injection of n-heptane droplets produced some local unburned gas masses, which carried hydrogen and moved downstream. Z g = 0.0282 defines several isolated hydrogen-rich gas clusters.
[0079] Therefore, the present invention adopts the above-mentioned fuel effective equivalence ratio calculation method for OpenFOAM two-phase combustion simulation results, which can quickly and accurately calculate the effective equivalence ratio and mixture fraction distribution of OpenFOAM two-phase combustion simulation results, and can extract the key information evolution process on characteristic structures such as shock front and flame surface, so as to support the refined design of combustion organization of power system.
[0080] Finally, it should be noted that the above embodiments are only used to illustrate the technical solution of the present invention rather than to limit it. Although the present invention has been described in detail with reference to the preferred embodiments, those skilled in the art should understand that they can still modify or replace the technical solution of the present invention with equivalents, and these modifications or equivalent replacements cannot cause the modified technical solution to deviate from the spirit and scope of the technical solution of the present invention.
Claims
1. A method for calculating the fuel effective equivalent ratio based on OpenFOAM two-phase combustion simulation results. It is characterized in that The following steps are involved: S1. Set the current working path of OpenFOAM, read multiple discretized grid files and create example grids; S2. Create a global blank file in the working directory to store information such as the transient position and effective equivalent ratio of the characteristic structure of the shock front and flame surface at different times; S3. Write variable names in the blank file of step S2 above, wherein the variable names represent time information, three-dimensional coordinates of characteristic surfaces, heat release rate, mass fraction of carbon / hydrogen / oxygen elements, and effective equivalent ratio; S4, read the heat release rate, pressure gradient, and all component field data files containing carbon / hydrogen / oxygen elements in a single time folder, and traverse all moments in the working directory; S5. Create blank field files YC, YH, YO, EqvPhi and Zo in the directory at each moment to store the mass fraction, effective equivalent ratio and mixture fraction of carbon / hydrogen / oxygen elements at that moment; S6. Define and calculate the mass fractions of carbon / hydrogen / oxygen elements in all components through regular expressions, and save them in the form of OpenFOAM standard field data in each time directory; S7. Define and calculate the effective equivalent ratio based on element ratio and mixture fraction through regular expressions and save them as field files; S8. Define the shock front and flame surface structure through regular expressions, and extract key information on the characteristic surface. The key information is the time evolution process of the effective equivalence ratio for dynamic monitoring.
2. A method for calculating the fuel effective equivalent ratio based on OpenFOAM two-phase combustion simulation results according to claim 1, It is characterized in that In step S1, the example grid is a static grid, a dynamic grid, a structured grid or an unstructured grid. The static grid refers to a grid that is the same at all times and does not change during the numerical simulation process; the dynamic grid refers to a grid whose grid topology or computational domain boundary changes during the numerical simulation.
3. A method for calculating the fuel effective equivalent ratio based on OpenFOAM two-phase combustion simulation results according to claim 2, It is characterized in that In step S2, the global blank file is set to any file format as needed, the shock front is characterized by the maximum modulus of the pressure gradient, the flame surface is judged by the maximum value of the heat release rate, and the time evolution information of the shock front and the flame surface are stored in two files SF.dat and RF.dat, respectively.
4. A method for calculating the fuel effective equivalent ratio based on the OpenFOAM two-phase combustion simulation results according to claim 3, It is characterized in that In step S3, the variable names time, XSF, YSF, ZSF, QdotSF, gradpSF, YCSF, YHSF, YOSF and EqvPhiSF are written in the first line of the SF.dat file, respectively, to store time information, x / y / z axis coordinates on the shock front, heat release rate, pressure gradient, C / H / O element mass fraction and effective equivalent ratio; the variable names time, XRF, YRF, ZRF, QdotRF, gradpRF, YCRF, YHRF, YORF and EqvPhiSF are written in the first line of the RF.dat file, respectively to store time information, x / y / z coordinates on the shock front, heat release rate, pressure gradient, C / H / O element mass fraction and effective equivalent ratio, and the variable names are separated by commas.
5. A method for calculating the fuel effective equivalent ratio based on the OpenFOAM two-phase combustion simulation results according to claim 4, It is characterized in that In step S4, the components, heat release rate and pressure gradient calculation results in each moment directory are read in the OpenFOAM standard file reading and writing mode, and all moments in the working directory are traversed through the forAll loop embedded in OpenFOAM.
6. A method for calculating the fuel effective equivalent ratio based on the OpenFOAM two-phase combustion simulation results according to claim 5, It is characterized in that In step S5, a blank field file is created in each moment directory in the OpenFOAM standard file reading and writing mode to store the calculation results of some field quantities.
7. A method for calculating the fuel effective equivalent ratio based on the OpenFOAM two-phase combustion simulation results according to claim 6, It is characterized in that In step S6, all components containing carbon / hydrogen / oxygen elements have the general formula C x H y O z , x, y, z are the number of C, H, and O atoms in the molecule, and their mass fractions are: M C 、M H and M O are the molecular weights of C, H, and O elements respectively. The summation symbol Σ indicates that the above calculation traverses all components containing C, H, and O elements.
8. A method for calculating the fuel effective equivalent ratio based on OpenFOAM two-phase combustion simulation results according to claim 7, It is characterized in that In step S7, based on the effective equivalent ratio φ of the elements e and mixture fraction Z O They are: is the mass fraction of oxygen in the oxidant. Since the mass fractions of all components or elements are calculated in the gas phase, the above formula naturally characterizes the effective equivalence ratio and mixture fraction of the gas phase fuel, and covers all components containing C / H / O elements.
9. A method for calculating the fuel effective equivalent ratio based on the OpenFOAM two-phase combustion simulation results according to claim 8, It is characterized in that In step S8, for each moment, all calculation grids are traversed by the forAll loop, and the grid cells that meet the characteristics of the shock front and flame surface are selected by the if judgment. According to the order of variable names defined in step S3, the information on the characteristic grid is output to the global file, and all moments are traversed to obtain the evolution process of the characteristic surface during this period of time.
Citation Information
Patent Citations
Result post-processing oriented OpenFOAM finite volume analysis result data format and transformation method thereof
CN108846059A
Combustion reaction flow numerical simulation method based on online machine learning
CN117542425A
Combustion flow numerical analysis program and combustion flow numerical analysis method
JP2017203560A
Cited By
Method for outputting OpenFOAM unsteady state simulation flow field characteristic frontal surface
CN122549256A
