Method and device for simulating spread of flowing fire, electronic equipment and storage medium
By establishing and iteratively solving the flowing fire propagation equation, the problem of predicting the oil film thickness and propagation rate during the propagation of liquid fuel flowing fire was solved, enabling accurate prediction of the impact range of flowing fire and supporting the prevention and rescue of flowing fire.
Patent Information
- Application Number
- CN202211247791.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-10-12
- Publication Date
- 2026-11-10
- Estimated Expiration
- 2042-10-12
AI Technical Summary
Existing technologies are insufficient to effectively predict the thickness and spread rate of the oil film at different times during the spread of a flowing fire, and there is a lack of data to support the prevention and rescue efforts for flowing fires.
Based on the conservation law, a flowing fire propagation equation is established. The flowing fire propagation equation is solved iteratively using the Newton-Leibniz algorithm and numerical simulation method to predict the oil film thickness and propagation rate.
It enables accurate prediction of oil film thickness and spread rate at different moments in the spread of flowing fire, and provides preliminary prediction data on the impact range of flowing fire, providing a basis for prevention and rescue work.
Smart Images

Figure CN115481584B_ABST
Abstract
Description
Technical Field
[0001] This application relates to numerical simulation technology, and more particularly to a method, apparatus, electronic device, and storage medium for simulating the spread of flowing fire. Background Technology
[0002] A flowing fire is a fire phenomenon in which flammable fuel ignites while flowing through a stream. Compared to flammable materials burning in a fixed location, it spreads over a wider area and poses a greater threat. Understanding the dynamic spread patterns of flowing fires and making preliminary predictions about their impact range can provide data and guidance for their prevention and rescue efforts.
[0003] In practical applications, predicting the impact range of a flowing fire involving liquid fuel requires obtaining the oil film thickness and spread rate at different moments during the fire's propagation process. Therefore, how to obtain the oil film thickness and spread rate at different moments during the fire's propagation process, and provide data reference and basis for the prevention and rescue work of flowing fires, has become an urgent problem to be solved. Summary of the Invention
[0004] This application provides a method, apparatus, electronic device, and storage medium for simulating the spread of flowing fire, used to predict the oil film thickness and spread rate at different times during the spread of flowing fire.
[0005] In a first aspect, this application provides a flowing fire propagation method, comprising: establishing a first variation expression characterizing the changes in physical parameters during the flowing fire propagation process based on conservation laws, according to a set computational domain; and establishing a second variation expression characterizing the changes in conserved parameters during the flowing fire propagation process based on the computational domain and the set variation parameters; wherein the variation parameters include oil film thickness and propagation velocity; establishing a flowing fire propagation equation based on the Newton-Leibniz algorithm, according to the first variation expression and the second variation expression; wherein the flowing fire propagation equation is an equation established based on the sum of the derivative terms of the conserved variables with respect to time and the derivative terms of the numerical flux with respect to the computational domain, and the source term; and iteratively solving the flowing fire propagation equation based on set initial conditions to obtain predicted values of the oil film thickness and the propagation velocity at different times during the flowing fire propagation process.
[0006] In some embodiments, establishing the flowing fire spread equation based on the Newton-Leibniz algorithm according to the first and second variation expressions includes: applying the Newton-Leibniz algorithm in reverse to process the equation established based on the first and second variation expressions to obtain an intermediate equation; integrating the time-related derivatives and the domain-related derivatives of the intermediate equation to one side of the equation to obtain a constant term on the other side; converting the intermediate equation into a matrix equation, and obtaining the flowing fire spread equation based on the matrix equation; wherein the matrix equation includes: variable matrix terms, operator matrix terms, and source matrix terms; the column vector corresponding to the first column of the variable matrix terms serves as the conserved variable of the flowing fire spread equation, the column vector corresponding to the second column of the variable matrix terms serves as the numerical flux of the flowing fire spread equation, and the source matrix terms serve as the source terms of the flowing fire spread equation.
[0007] In some implementations, the step of iteratively solving the flowing fire propagation equation based on set initial conditions to obtain predicted values of the oil film thickness and the propagation velocity at different times during the flowing fire propagation process includes: decomposing the flowing fire propagation equation into a first sub-equation and a second sub-equation using an operator splitting method, wherein the first sub-equation is a partial differential equation and the second sub-equation is an ordinary differential equation; dividing the computational domain into multiple control volumes to obtain the first sub-equation and the second sub-equation corresponding to the multiple control volumes; and for each control volume, using the finite volume method to solve the first sub-equation and the second sub-equation corresponding to the control volume. Discretize the second sub-equation to obtain the first and second discrete sub-equations corresponding to each control body. The first discrete sub-equation is an equation relating the rate of change of the conserved variable with respect to the time step within the time period corresponding to the control body and the rate of change of the numerical flux under the control body. The second discrete sub-equation is an equation relating the rate of change of the conserved variable with respect to the time step within the time period corresponding to the control body and the source term corresponding to the control body. Solve the first discrete sub-equation using a Riemann solver to obtain the first expression of the numerical flux with respect to the conserved variable under each control body. Substitute the first expression under each control body into the first discrete sub-equation to obtain the first equation under each control body. For each control body, iteratively perform the following processing to integrate and obtain the predicted values of the conserved variable at different times in the flowing fire spread process: For each time period corresponding to the control body, take that time as the current time, use the predicted value of the conserved variable under the control body at the current time as the initial value, use the third-order Runge-Kutta method to advance the time of the first equation under the control body, and use the result of the time advancement as the initial value to advance the second discrete sub-equation under the control body. The equations are advanced using the third-order Runge-Kutta method to obtain the predicted values of the conserved variables of the control body at the next time step after the current time step; wherein, the initial value corresponding to the first time step is the initial condition; based on the time derivative of the conserved variables in the flowing fire propagation equation, the expression of the conserved variables expressed by the changing parameters is derived; the predicted values of the conserved variables at different time steps in the flowing fire propagation process are substituted into the expression of the conserved variables expressed by the changing parameters to obtain the predicted values of the oil film thickness and the propagation speed at different time steps in the flowing fire propagation process.
[0008] In some implementations, the first discrete sub-equation is solved using a Riemann solver to obtain a first expression for the numerical flux under each control volume with respect to the conserved variables, prior to which the conserved variables are spatially reconstructed using linear interpolation.
[0009] In some implementations, before discretizing the first and second sub-equations corresponding to each control body using the finite volume method to obtain the first and second discrete sub-equations corresponding to each control body, the method further includes: constraining the time step using a stability criterion, wherein the time step is the time interval between adjacent moments.
[0010] Secondly, this application provides a flowing fire propagation simulation device, comprising: a first establishment module, configured to establish a first change expression characterizing the changes in physical parameters during the flowing fire propagation process based on a set computational domain and conservation laws; and to establish a second change expression characterizing the changes in conserved parameters during the flowing fire propagation process based on the computational domain and the set change parameters; wherein the change parameters include oil film thickness and propagation velocity; a second establishment module, configured to establish a flowing fire propagation equation based on the first change expression and the second change expression and the Newton-Leibniz algorithm; wherein the flowing fire propagation equation is an equation established based on the sum of the derivative terms of the conserved variables with respect to time and the derivative terms of the numerical flux with respect to the computational domain, and the source term; and a solution module, configured to iteratively solve the flowing fire propagation equation based on set initial conditions to obtain predicted values of the oil film thickness and the propagation velocity at different times during the flowing fire propagation process.
[0011] In some implementations, the second establishment module is specifically used to: apply the Newton-Leibniz algorithm in reverse to process the equation established based on the first and second change expressions to obtain an intermediate equation; integrate the time-related derivatives and the domain-related derivatives of the intermediate equation to one side of the equation to obtain a constant term on the other side; convert the intermediate equation into a matrix equation and obtain the flowing fire spread equation based on the matrix equation; wherein the matrix equation includes: variable matrix terms, operator matrix terms, and source matrix terms; the column vector corresponding to the first column of the variable matrix terms serves as the conserved variable of the flowing fire spread equation, the column vector corresponding to the second column of the variable matrix terms serves as the numerical flux of the flowing fire spread equation, and the source matrix terms serve as the source terms of the flowing fire spread equation.
[0012] In some embodiments, the solution module includes: a decomposition unit, used to decompose the flowing fire spread equation into a first sub-equation and a second sub-equation using an operator splitting method, wherein the first sub-equation is a partial differential equation and the second sub-equation is an ordinary differential equation; a partitioning unit, used to partition the computational domain into multiple control volumes, obtaining the first sub-equation and the second sub-equation corresponding to the multiple control volumes; a discretization unit, used to discretize the first sub-equation and the second sub-equation corresponding to each control volume using the finite volume method, obtaining the first discrete sub-equation and the second discrete sub-equation corresponding to each control volume; the first discrete sub-equation is an equation relating the rate of change of the conserved variable with respect to the time step within the time period corresponding to the control volume and the rate of change of the numerical flux under the control volume; the second discrete sub-equation is an equation relating the rate of change of the conserved variable with respect to the time step within the time period corresponding to the control volume and the source term corresponding to the control volume; a solution unit, used to solve the first discrete sub-equation using a Riemann solver, obtaining a first expression for the numerical flux with respect to the conserved variable under each control volume; and substituting the first expression under each control volume into the first... A discrete sub-equation is used to obtain the first equation for each control volume. An iterative unit, for each control volume, iteratively performs the following processing to integrate and obtain the predicted values of the conserved variables at different times during the flowing fire propagation process: For each time period corresponding to the control volume, this time is taken as the current time. The predicted value of the conserved variables of the control volume at the current time is used as the initial value. The first equation under the control volume is time-progressed using the third-order Runge-Kutta method, and the result of the time-progression is used as the initial value. The second discrete sub-equation corresponding to the control volume is then processed using the third-order Runge-Kutta method. The process involves advancing the time frame to obtain the predicted value of the conserved variable of the control body at the next time step after the current time step; wherein the initial value corresponding to the first time step is the initial condition; the prediction unit is used to derive the expression of the conserved variable expressed by the changing parameter based on the time derivative of the conserved variable in the flowing fire propagation equation, and substitute the predicted value of the conserved variable at different time steps of the flowing fire propagation process into the expression of the conserved variable expressed by the changing parameter to obtain the predicted values of the oil film thickness and the propagation speed at different time steps of the flowing fire propagation process.
[0013] In some implementations, the solution module further includes a reconstruction unit for spatial reconstruction of the conserved variables using linear interpolation.
[0014] In some implementations, the solution module further includes a constraint unit for constraining the time step using a stability criterion, wherein the time step is the time interval between adjacent moments.
[0015] Thirdly, this application provides an electronic device, including: a processor, and a memory communicatively connected to the processor; the memory stores computer-executable instructions; the processor executes the computer-executable instructions stored in the memory to implement the method described above.
[0016] Fourthly, this application provides a computer-readable storage medium storing computer-executable instructions, which, when executed by a processor, are used to implement the method described above.
[0017] The flowing fire propagation simulation method, apparatus, electronic device, and storage medium provided in this application establish, based on a set computational domain and conservation laws, a first expression characterizing the changes in physical parameters during the flowing fire propagation process; and, based on the computational domain and the set change parameters, a second expression characterizing the changes in conserved parameters during the flowing fire propagation process; based on the first and second expression characterizing the flowing fire propagation equation using the Newton-Leibniz algorithm; and, based on set initial conditions, iteratively solving the flowing fire propagation equation to obtain predicted values of the oil film thickness and propagation speed at different times during the flowing fire propagation process. The solution in this application, based on conservation laws, establishes a flowing fire propagation equation characterizing the flowing fire propagation process, and obtains predicted values of the oil film thickness and propagation speed at different times during the flowing fire propagation process by solving the flowing fire propagation equation. Through these predicted values, the influence range of a liquid fuel flowing fire can be preliminarily predicted, providing data reference and basis for the prevention and rescue of flowing fires. Attached Figure Description
[0018] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this application and, together with the description, serve to explain the principles of this application.
[0019] Figure 1 A flowchart illustrating a flowing fire spread simulation method provided in Embodiment 1 of this application;
[0020] Figure 2 A one-dimensional coordinate diagram of flowing fire spread provided for this application;
[0021] Figure 3 A flowchart illustrating another method for simulating the spread of flowing fire provided in Embodiment 1 of this application;
[0022] Figure 4 This is a flowchart illustrating the flowing fire propagation simulation method provided in Embodiment 2 of this application;
[0023] Figure 5 This is a distribution map of the spread distance at different times provided in Embodiment 3 of this application;
[0024] Figure 6 Fuel layer distribution diagrams at different times provided in Embodiment 3 of this application;
[0025] Figure 7 This is a fuel layer distribution diagram for the stable phase provided in Embodiment 3 of this application;
[0026] Figure 8 This is a schematic diagram of the flowing fire spread simulation device provided in Embodiment 4 of this application;
[0027] Figure 9 This is a schematic diagram of the structure of the electronic device provided in Embodiment 5 of this application.
[0028] The accompanying drawings illustrate specific embodiments of this application, which will be described in more detail below. These drawings and descriptions are not intended to limit the scope of the concept in any way, but rather to illustrate the concept of this application to those skilled in the art through reference to particular embodiments. Detailed Implementation
[0029] Exemplary embodiments will now be described in detail, examples of which are illustrated in the accompanying drawings. When the following description relates to the drawings, unless otherwise indicated, the same numbers in different drawings denote the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with this application. Rather, they are merely examples of apparatuses and methods consistent with some aspects of this application as detailed in the appended claims.
[0030] It should be noted that the brief descriptions of terms in this application are only for the convenience of understanding the embodiments described below, and are not intended to limit the embodiments of this application. Unless otherwise stated, these terms should be understood in their ordinary and common meaning.
[0031] The terms "first," "second," etc., used in the specification, claims, and accompanying drawings of this application are used to distinguish similar or related objects or entities and do not necessarily imply a specific order or sequence, unless otherwise indicated. It should be understood that such terms can be used interchangeably where appropriate, for example, to implement the application in a sequence other than those given in the embodiments illustrated or described herein.
[0032] Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover but not exclude inclusion. For example, a product or device that includes a series of components is not necessarily limited to those explicitly listed, but may include other components not explicitly listed or inherent to such product or device. As used in this application, the term "module" means any known or subsequently developed hardware, software, firmware, artificial intelligence, fuzzy logic, or combination of hardware and / or software code capable of performing the functions associated with that element.
[0033] Currently, research on liquid fuel flow mainly focuses on two aspects: model analysis and numerical simulation. Model analysis primarily uses experimental data to fit a formula for the maximum area of liquid fuel flow, summarizes experimental phenomena, and performs mechanical analysis on the liquid fuel to establish a model of its flow. Numerical simulation methods are mainly based on fluid mechanics, using the fundamental equations of fluid motion as the governing equations, selecting appropriate boundary and initial conditions, and combining this with mechanical analysis of the liquid fuel to study its flow. However, model analysis methods are only applicable to static water surfaces or horizontal ground; there are currently no good models for liquid fuel flow on inclined surfaces, and the process of flowing fire spread is rarely considered. Numerical simulation methods consider the influence of terrain on spread but do not account for the process of flowing fire spread.
[0034] In practical applications, the shallow water equation (SWE) is used to describe the movement of water bodies whose horizontal breadth is much greater than their depth. Therefore, in establishing the shallow water equation, it is assumed that at any horizontal position, the liquid at different depths has the same velocity. It can be understood that the shallow water equation can also be applied to the flow of liquid fuels. For the spread of flowing fire, the combustion consumption during the liquid fuel flow process needs to be considered.
[0035] The flowing fire spread simulation method provided by this invention establishes a flowing fire spread equation characterizing the flowing fire spread process based on the conservation law. By solving the flowing fire spread equation, the predicted values of oil film thickness and spread rate at different times in the flowing fire spread process are obtained. Through the predicted values of oil film thickness and spread rate at different times, the influence range of liquid fuel flowing fire can be preliminarily predicted, thus providing data reference and basis for the prevention and rescue of flowing fires.
[0036] The technical solutions of this application will be described in detail below with reference to specific embodiments. These specific embodiments can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments. In the description of this application, unless otherwise expressly specified and limited, the terms should be broadly understood within the art. The embodiments of this application will now be described with reference to the accompanying drawings.
[0037] Example 1
[0038] Figure 1 This is a flowchart illustrating a flowing fire spread simulation method provided in Embodiment 1 of this application. The executing entity in this embodiment can be a flowing fire spread simulation device, such as... Figure 1 As shown, the method includes:
[0039] S101. Based on the established computational domain and the conservation law, establish the first change expression characterizing the changes in physical parameters during the spread of flowing fire.
[0040] S102. Based on the computational domain and the set variable parameters, establish a second variation expression characterizing the change of conserved parameters during the spread of flowing fire; wherein, the variable parameters include oil film thickness and spread rate.
[0041] In this embodiment, the computational domain refers to the spatial region of flowing fire propagation. For example, the computational domain can be characterized by establishing a coordinate system. For instance, for a one-dimensional flowing fire propagation process, the starting point of the propagation is set as the origin of the coordinate system, the propagation direction is used as the x-axis, and the direction perpendicular to the propagation direction is used as the y-axis. It is understood that during the flowing fire propagation process, the propagation termination position and time are dynamically determined by the amount of liquid fuel burned and released.
[0042] In practical applications, conservation laws refer to the laws governing the constant value of a certain physical quantity in nature. For example, conservation laws can include the law of conservation of mass and the law of conservation of momentum.
[0043] For ease of understanding, let's take a one-dimensional flowing fire propagation on a horizontal surface as an example. Figure 2 The one-dimensional flowing fire spread coordinate diagram provided for this application is as follows: Figure 2 As shown, the origin of the coordinate system is taken as the starting point of the flowing fire spread, the spread direction is taken as the x-axis, and the direction perpendicular to the spread direction is taken as the y-axis. Here, h is the oil film thickness, and u is the spread velocity. For example, the oil film thickness at x0 is h(x0,t), the spread velocity at x0 is u(x0,t), the oil film thickness at x1 is h(x1,t), and the spread velocity at x1 is u(x1,t).
[0044] Combination Figure 2 Specifically, in S101, based on the defined computational domain and the conservation law, a first expression characterizing the changes in physical parameters during the spread of flowing fire is established. For example, if the physical parameter is mass, then the total mass of liquid fuel within the interval [x0, x1] can be expressed as: Where σ is the mass of liquid fuel per unit area, the change in the mass of liquid fuel within the interval [x0, x1] can be expressed as: The first expression representing the mass change during the spread of flowing fire within the interval [x0, x1] is: For another example, if the physical parameter is momentum, then the total momentum of the liquid fuel in the interval [x0, x1] can be expressed as: The change in momentum of the liquid fuel within the interval [x0, x1] can be expressed as: The first expression representing the change in momentum during the spread of flowing fire within the interval [x0, x1] is:
[0045] Correspondingly, in S102, a second variation expression characterizing the change of conserved parameters during the spread of flowing fire is established based on the computational domain and the set variation parameters. For example, the physical parameter is mass, and the mass change of liquid fuel in the interval [x0, x1] is mainly related to the increase in mass of liquid fuel flowing in at x0, the decrease in mass of liquid fuel flowing out at x1, and the net inflow of liquid fuel per unit time.
[0046] Wherein, the mass increase at x0 is σu(x0,t)h(x0,t), the mass decrease at x1 is σu(x1,t)h(x1,t), and the net inflow of liquid fuel per unit time is Q is the release rate, A is the combustion area, and ω is the linear combustion rate.
[0047] Therefore, the second expression representing the change of the conserved parameters during the spread of flowing fire in the interval [x0, x1] can be expressed as:
[0048]
[0049] For another example, the physical parameter is momentum. The change in momentum of liquid fuel in the interval [x0,x1] is mainly related to the increase in momentum of liquid flowing in at x0, the decrease in momentum of liquid flowing out at x1, the pressure at the boundary between x0 and x1, and the gravitational component and resistance (friction) on the slope. Let d be the liquid depth at x, we can get d = h(x,t) - y, where y is the ground elevation variable.
[0050] The pressure at the x0 boundary is:
[0051]
[0052] The pressure at the x1 boundary is:
[0053]
[0054] The momentum increase at x0 is: σh(x0,t)u 2 The decrease in momentum at (x0,t) and x1 is: σh(x1,t)u 2 (x1,t),
[0055] The change in momentum due to the gravitational component and resistance on the slope is: σgh(S0-S f ), where S0 is the bottom slope term, and b is the ground elevation; S f For resistance terms, where n is the Manning coefficient, and Rh is the hydraulic radius.
[0056] Therefore, the second expression representing the change of the conserved parameters during the spread of flowing fire in the interval [x0, x1] can be expressed as:
[0057]
[0058] S103. Based on the first and second change expressions, and using the Newton-Leibniz algorithm, establish the flowing fire spread equation; wherein, the flowing fire spread equation is an equation established based on the sum of the derivatives of the conserved variables with respect to time and the derivatives of the numerical flux with respect to the computational domain, as well as the source term.
[0059] In one possible implementation, Figure 3 This is a flowchart illustrating another flowing fire propagation simulation method provided in Embodiment 1 of this application. S103 includes:
[0060] S301. Apply the Newton-Leibniz algorithm in reverse to process the equations established based on the first and second transformation expressions to obtain intermediate equations.
[0061] S302. Integrate the time-related derivatives and the domain-related derivatives in the intermediate equation into one side of the equation to obtain the constant term on the other side.
[0062] Based on the above example, when the physical parameter is mass, according to the law of conservation of mass, the equation established based on the first and second change expressions is:
[0063]
[0064] Specifically, in S301, by applying the Newton-Leibniz algorithm in reverse and processing the equation established based on the first and second transformation expressions, we can obtain:
[0065]
[0066] Since σ is a constant, by simultaneously eliminating σ and the integral sign from both sides of the equation, the corresponding intermediate equation can be expressed as:
[0067]
[0068] Correspondingly, in S302, the derivative terms with respect to time and with respect to the computational domain in the intermediate equation are integrated into one side of the equation, resulting in the constant term on the other side:
[0069]
[0070] Based on the above example, when the physical parameter is momentum, according to the law of conservation of momentum, the equation established based on the first and second expression of change is:
[0071]
[0072] Specifically, in S301, by applying the Newton-Leibniz algorithm in reverse and processing the equation established based on the first and second transformation expressions, we can obtain:
[0073]
[0074] The corresponding intermediate equation can be expressed as:
[0075] Specifically, in S302, the derivatives of the intermediate equations with respect to time and with respect to the computational domain are integrated into one side of the equation, resulting in the constant term on the other side:
[0076]
[0077] S303. Convert the intermediate equation into a matrix equation, and obtain the flowing fire spread equation based on the matrix equation.
[0078] The matrix equation includes: variable matrix terms, operator matrix terms, and source matrix terms; the column vector corresponding to the first column of the variable matrix terms serves as the conserved variable of the flowing fire spread equation, the column vector corresponding to the second column of the variable matrix terms serves as the numerical flux of the flowing fire spread equation, and the source matrix terms serve as the source terms of the flowing fire spread equation.
[0079] Based on the above examples and the intermediate equations corresponding to the conservation of mass and momentum, we obtain the following set of equations for the one-dimensional flow fire propagation:
[0080]
[0081] Transforming the system of equations into matrix form yields the matrix equations:
[0082]
[0083] Among them, the variable matrix terms are Operator matrix terms are The source matrix terms are
[0084] In practical applications, the column vectors corresponding to the first column of the variable matrix terms are used as the conserved variables in the flowing fire spread equation, the column vectors corresponding to the second column of the variable matrix terms are used as the numerical fluxes in the flowing fire spread equation, and the source matrix terms are used as the source terms in the flowing fire spread equation, resulting in the flowing fire spread equation:
[0085]
[0086] Among them, the conserved variables are Numerical flux is Source term is
[0087] S104. Based on the set initial conditions, iteratively solve the flowing fire propagation equation to obtain the predicted values of oil film thickness and propagation speed at different times during the flowing fire propagation process.
[0088] The initial conditions include: initiation conditions and boundary conditions. For example, the initiation conditions include: initial spread velocity, spread initiation position, and initial oil film thickness. For instance, the initial spread velocity is set to u = 0, the spread initiation position to x = 0, and the oil film thickness at x = 0 is h = 1 mm. In practical applications, the boundaries of the flowing fire spread process are divided into closed boundaries and moving boundaries. A closed boundary is a fixed boundary where there is no exchange of mass and momentum between the inside and outside of the closed boundary, and the oil film thickness and spread velocity are the same on both sides of the closed boundary. For example, the starting point corresponding to the flowing fire spread is set as the closed boundary. A moving boundary refers to the leading edge position in the flowing fire spread process. As the flowing fire spreads, the moving boundary continuously moves in the direction of spread, and there is an exchange of mass and momentum between the inside and outside of the moving boundary. For instance, the initial conditions at the moving boundary are set to h = 0, u = 0, and x > x. LE x LE This represents the instantaneous position of the leading edge of the combustion fuel.
[0089] In practical applications, the combustion area of flowing fire at different times can be calculated by predicting the oil film thickness and propagation rate at different moments. Using the example above, marking the location where the oil film thickness is 0 allows us to obtain the combustion area of the flowing fire. It can be understood that the influence range of flowing fire propagation can be preliminarily analyzed based on the combustion area at different times.
[0090] In the flowing fire spread simulation method provided in this embodiment, based on the conservation law, a first expression characterizing the changes in physical parameters during the flowing fire spread process is established according to the set computational domain; and a second expression characterizing the changes in conserved parameters during the flowing fire spread process is established according to the computational domain and the set changing parameters; based on the first and second expression characterizing the flowing fire spread equation using the Newton-Leibniz algorithm, a flowing fire spread equation is established; based on the set initial conditions, the flowing fire spread equation is iteratively solved to obtain predicted values of oil film thickness and spread rate at different times during the flowing fire spread process. In this embodiment, based on the conservation law, a flowing fire spread equation characterizing the flowing fire spread process is established, and by solving the flowing fire spread equation, predicted values of oil film thickness and spread rate at different times during the flowing fire spread process are obtained. Through the predicted values of oil film thickness and spread rate at different times, the influence range of the flowing fire can be preliminarily predicted, providing data reference and basis for the prevention and rescue work of flowing fires.
[0091] Example 2
[0092] Figure 4 A flowchart illustrating the flowing fire spread simulation method provided in Embodiment 2 of this application is shown below. Figure 4 As shown, S104 includes:
[0093] S401. The flow fire spread equation is decomposed into a first sub-equation and a second sub-equation using the operator splitting method.
[0094] The first sub-equation is a partial differential equation, and the second sub-equation is an ordinary differential equation.
[0095] Specifically, in S401, the operator splitting method is used to decompose the flowing fire spread equation into a first sub-equation and a second sub-equation. Referring to the example above, the expression for the first sub-equation is:
[0096]
[0097] The expression for the second sub-equation is:
[0098]
[0099] S402. Divide the computational domain into multiple control volumes to obtain the first and second sub-equations corresponding to the multiple control volumes.
[0100] In practical applications, the spatial region corresponding to each control volume is of the same size. For example, in the process of one-dimensional fire flow and spread, the spatial range in the x-direction corresponding to the computational domain is divided into multiple control volumes according to the spatial step size Δx. The length of each control volume is Δx, and the displacement interval corresponding to the i-th control volume is [i, i+1].
[0101] For example, the expression for the first sub-equation corresponding to the i-th control body is:
[0102]
[0103] The expression for the second sub-equation corresponding to the i-th control body is:
[0104]
[0105] S403. For each control volume, the first and second sub-equations corresponding to the control volume are discretized using the finite volume method to obtain the first and second discrete sub-equations corresponding to each control volume.
[0106] The first discrete equation is an equation relating the rate of change of the conserved variable with respect to the time step within the time period corresponding to the control volume and the sum of the rate of change of the numerical flux under the control volume; the second discrete equation is an equation relating the rate of change of the conserved variable with respect to the time step within the time period corresponding to the control volume and the source term corresponding to the control volume.
[0107] It can be understood that the first discrete sub-equation is the discrete form of the first sub-equation, and the second discrete sub-equation is the discrete form of the second sub-equation. Combining the above example, the first discrete sub-equation corresponding to the i-th control volume can be obtained as:
[0108]
[0109] In the formula, F i+1 and F i Let F be the numerical flux at points i+1 and i at the boundary of the i-th control volume, where Δt is the time step and Δx is the spatial step. i+1 and F i It can be approximated by and This means that the first discrete sub-equation corresponding to the i-th control volume can be represented as:
[0110]
[0111] In the formula, Let be the conserved variable at time n for the boundary i of the i-th control volume. Let be the conserved variable at time n+1 of the boundary of the i-th control volume. and These are the numerical fluxes within the (i-1)th and (i+1)th control bodies, respectively.
[0112] The second discrete sub-equation corresponding to the i-th control volume can be expressed as:
[0113]
[0114] S404. Use the Riemann solver to solve the first discrete sub-equation to obtain the first expression of the numerical flux with respect to the conserved variables under each control volume.
[0115] For example, the HLL approximate Riemann solver is applied to solve the first discrete sub-equation, obtaining the first expression for the numerical flux with respect to the conserved variables under each control volume. For instance, The corresponding first expression is:
[0116]
[0117]
[0118]
[0119]
[0120] in, S are two characteristic solutions of the first sub-equation. L and S R This indicates the wave speed on the left and right sides of the interface.
[0121] Correspondingly, The corresponding first expression is:
[0122]
[0123]
[0124]
[0125]
[0126] in, S are two characteristic solutions of the first sub-equation. L and S R This indicates the wave speed on the left and right sides of the interface.
[0127] In practical applications, when using a Riemann solver to solve the first discrete sub-equation and obtain the first expression for the numerical flux with respect to the conserved variables under each control volume, the Riemann problem arises. It is understandable that providing high-precision initial values for the conserved variables can effectively improve the accuracy of the numerical flux.
[0128] Therefore, regarding the method for obtaining high-precision initial values of the conserved variables, in one possible implementation, before S404, the following steps are also included:
[0129] Spatial reconstruction is performed using linear interpolation to conserve variables.
[0130] In practical applications, virtual boundaries are set in numerical calculations to calculate the flux of boundary cells. For example, the computational domain is divided into multiple control volumes according to the time step Δx, and the conserved variables at the boundary of the i-th control volume are Ui, ... i and U i+1 .
[0131] One example is the use of the Monotonic Upwind Scheme for Conservation Laws (MUSCL) to reconstruct the conserved variables within a half-space step, yielding... The expressions for the conserved variables on both sides are:
[0132]
[0133]
[0134] in, and Let r be the interpolation coefficient, where r is the interpolation coefficient. i The expression is:
[0135]
[0136] Furthermore, to prevent large gradients and spurious oscillations at discontinuities during the numerical flux calculation using conserved variables, one possible implementation includes, prior to S404, constraining the conserved variables using a slope limiter.
[0137] For example, the minimum-modulus slope constraint is applied to conserve variables. The formula for the minimum-modulus constraint is:
[0138]
[0139] S405. Substitute the first expression under each control volume into the first discrete sub-equation to obtain the first equation under each control volume.
[0140] Based on the above example, the i-th control body... and Substituting the first expression into the first discrete sub-equation, we obtain the first equation under the i-th control volume. The expression for the first equation under the i-th control volume is:
[0141]
[0142] In the formula,
[0143] S406. For each control body, iteratively execute the following processing to integrate and obtain the predicted values of the conserved variables at different times in the flowing fire spread process: For each time period corresponding to the control body, take that time as the current time, use the predicted value of the conserved variables of the control body at the current time as the initial value, use the third-order Runge-Kutta method to advance the time of the first equation under the control body, and use the result of the time advancement as the initial value, use the third-order Runge-Kutta method to advance the time of the second discrete sub-equation corresponding to the control body, and obtain the predicted value of the conserved variables of the control body at the next time of the current time.
[0144] The initial value corresponding to the first time step is the initial condition. In practical applications, n can represent the current time step, and n+1 can represent the next time step.
[0145] Specifically, in S406, for each control body, the following processing is iteratively executed to integrate the predicted values of conserved variables at different moments in the flowing fire propagation process: For each moment within the time period corresponding to the control body, that moment is taken as the current moment. Using the predicted values of the conserved variables of the control body at the current moment as initial values, the first equation under the control body is time-progressed using the third-order Runge-Kutta method, and the result of the time-progression is used as the initial value. The second sub-equation corresponding to the control body is time-progressed using the third-order Runge-Kutta method to obtain the predicted values of the conserved variables of the control body at the next moment of the current moment. For example, for the i-th control body, using... Using the initial value, the third-order Runge-Kutta method is used to solve the first sub-equation, which yields the predicted value of the first sub-equation at time n+1. The expression for the first equation of the i-th control volume using the third-order Runge-Kutta method for time advancement is as follows:
[0146]
[0147]
[0148]
[0149]
[0150] The expression for the second equation under the i-th control volume is:
[0151]
[0152] The predicted value at time n+1 As initial values, the expression for time advancement of the second discrete sub-equation of the i-th control volume using the third-order Runge-Kutta method is as follows:
[0153]
[0154]
[0155]
[0156] It is understandable that, for each control body, the third-order Runge-Kutta method is used to advance the time, and the predicted values of the conserved variables at each moment within the time period corresponding to each control body are obtained; the predicted values of the conserved variables at each moment within the time period corresponding to each control body are integrated to obtain the predicted values of the conserved variables at different moments in the flowing fire spread process.
[0157] S407. Based on the derivative of the conserved variables with respect to time in the flowing fire propagation equation, derive the expression for the conserved variables using variable parameters. Substitute the predicted values of the conserved variables at different times in the flowing fire propagation process into the expression for the conserved variables using variable parameters to obtain the predicted values of the oil film thickness and propagation speed at different times in the flowing fire propagation process.
[0158] Based on the above example, the derivative of the conserved variable with respect to time in the flowing fire propagation equation is: The expression for the conserved variable using the changing parameter is:
[0159] Specifically, in S407, the predicted values of the conserved variables at different moments in the flowing fire propagation process are substituted into the expression for the conserved variables using varying parameters to obtain the predicted values of the oil film thickness and propagation rate at different moments in the flowing fire propagation process. For example, the value of the conserved variable at time n is... The expression for the conserved variable using the changing parameter is as follows: It can be seen that the predicted value of the oil film thickness at time n is 1 mm, and the predicted value of the spread velocity at time n is 300 m / s.
[0160] Furthermore, regarding the constraint on the time step, in one possible implementation, step S403 further includes: constraining the time step using a stability criterion.
[0161] Here, the time step is the time interval between adjacent moments. Referring to the example above, the time step Δt is the time interval between moment n+1 and moment n.
[0162] Optionally, the Courant-Friedrich-Lewy (CFL) stability criterion can be used to control the time step, ensuring that the displacement per unit time step does not exceed the unit length of the control volume. The expression for determining the time step Δt based on the CFL stability criterion is as follows:
[0163]
[0164] Among them, C maxThe value is usually 1, where c is the velocity in the current direction.
[0165] In practical applications, there may be cases where the propagation velocity is negative at the moving boundary of each time step. A negative propagation velocity means that the liquid fuel stops propagating within that time step. In solving the flowing fire propagation equation, a negative propagation velocity will affect the solution and lead to incorrect results.
[0166] Therefore, regarding the negative flow velocity at the moving boundary at each time step, in one possible implementation, the negative flow velocity at the moving boundary at each time step is corrected to 0.
[0167] In the flowing fire spread simulation method provided in this embodiment, the flowing fire spread equation is decomposed into a first sub-equation and a second sub-equation using the operator splitting method; the computational domain is divided into multiple control volumes, resulting in first and second sub-equations corresponding to each control volume; and for each control volume, the first and second sub-equations are discretized using the finite volume method, resulting in first and second discrete sub-equations for each control volume; by solving the first and second discrete sub-equations for each control volume, the predicted values of the conserved variables at each moment of the corresponding time period for each control volume are obtained; the predicted values of the conserved variables at each moment of the corresponding time period for all control volumes are integrated to obtain the predicted values of the conserved variables at different moments in the flowing fire spread process; and the predicted values of the conserved variables at different moments in the flowing fire spread process are substituted into the expression for the conserved variables expressed by changing parameters to obtain the predicted values of the oil film thickness and spread rate at different moments in the flowing fire spread process. Through the predicted values of the oil film thickness and spread rate at different moments, the influence range of the flowing fire can be preliminarily predicted, providing data reference and basis for the prevention and rescue work of flowing fires.
[0168] Example 3
[0169] To facilitate understanding of the solution, the following example will be used to illustrate Embodiment 3 of this application. In this example, the spread of flowing fire in an open matrix one-dimensional groove with a length of 3m, a width of 15cm, and a height of 3cm is simulated; the material of the one-dimensional groove is stainless steel, and the surface roughness coefficient is set to 0.015; the surface slope is set to 0; a rectangular coordinate system is established, with the starting point of the flowing fire spread as the origin, the spread direction as the x-axis, and the direction perpendicular to the spread direction as the y-axis.
[0170] The release rate Q and combustion rate ω are set as shown in Table 1.
[0171] Table 1
[0172] Experiment number Q(mL / min) ω(1×10⁻⁵ m / s) 1 108 1.3636 2 132 1.4667 3 161 1.4544 4 196 1.5781 5 217 1.5556
[0173] The flow of the flowing fire spread simulation method provided in Embodiment 3 of this application includes:
[0174] Step 1: Based on the established computational domain and the laws of conservation of mass and momentum, establish the first expression representing the mass change during the spread of flowing fire within the interval [x0, x1]. And establish the first expression for the momentum change during the spread of flowing fire within the interval [x0, x1] as follows:
[0175] Step 2: Based on the computational domain and the set change parameters, corresponding to the mass change and momentum change respectively, establish a second change expression representing the change of conserved parameters during the spread of flowing fire within the interval [x0, x1]:
[0176]
[0177]
[0178] Step 3: Based on the first and second transformation expressions, and using the Newton-Leibniz algorithm, establish the flowing fire propagation equation:
[0179]
[0180] Step 4: Set the spatial step size to Δx = 1 mm, and apply the CFL stability criterion to constrain the time step Δt, setting CFL = 0.25. Set the initial propagation velocity u = 0, the propagation start position x = 0, and the oil film thickness at x = 0: h = 1 mm; set the dynamic boundary conditions: h = 0, u = 0, x > x LE x LE This represents the instantaneous position of the leading edge of the combustion fuel.
[0181] Step 5: Decompose the flowing fire propagation equation into a first sub-equation and a second sub-equation using the operator splitting method. The expression for the first sub-equation is:
[0182]
[0183] The expression for the second sub-equation is:
[0184]
[0185] Step 6: Divide the computational domain into multiple control volumes, obtaining the first and second sub-equations corresponding to each control volume. The expression for the first sub-equation corresponding to the i-th control volume is:
[0186]
[0187] The expression for the second sub-equation corresponding to the i-th control body is:
[0188]
[0189] For each control volume, the first and second sub-equations corresponding to the control volume are discretized using the finite volume method, resulting in the first and second discrete sub-equations for each control volume. The first discrete sub-equation for the i-th control volume can be expressed as:
[0190]
[0191] The second discrete sub-equation corresponding to the i-th control volume can be expressed as:
[0192]
[0193] Step 7: Solve the first discrete sub-equation using the Riemann solver to obtain the first expression for the numerical flux with respect to the conserved variables under each control volume. Substitute this first expression into the first discrete sub-equation to obtain the first equation for each control volume. The expression for the first equation under the i-th control volume is:
[0194]
[0195] Step 8: For each control volume, iteratively execute the following processing to integrate the predicted values of the conserved variables at different times in the flowing fire spread process: For each time period corresponding to the control volume, take that time as the current time, use the predicted value of the conserved variables of the control volume at the current time as the initial value, use the third-order Runge-Kutta method to advance the time of the first equation under the control volume, and use the result of the time advancement as the initial value, use the third-order Runge-Kutta method to advance the time of the second discrete sub-equation corresponding to the control volume to obtain the predicted value of the conserved variables of the control volume at the next time of the current time.
[0196] Step 9: Based on the derivative of the conserved variables with respect to time in the flowing fire propagation equation, obtain the expression for the conserved variables using the changing parameters. Substitute the predicted values of the conserved variables at different times during the flowing fire propagation process into the expression for the conserved variables using the changing parameters to obtain the predicted values of the oil film thickness and propagation speed at different times during the flowing fire propagation process. The combustion area of the flowing fire at different times can be obtained through the predicted values of the oil film thickness and propagation speed at different times. Based on the combustion area at different times, the influence range of the flowing fire propagation can be preliminarily analyzed.
[0197] For example, Figure 5 The propagation distance versus time graph provided in Embodiment 3 of this application is from Figure 5It is known that during the spread of a flowing fire, the burning area first increases steadily and then reaches a dynamic equilibrium. After the fuel leak stops, the combustion will continue for a period of time before gradually extinguishing. The stable burning area of a flowing fire can be used to preliminarily predict its impact range, providing a reference for emergency response to flowing fires. Figure 6 This application provides fuel layer distribution maps at different times in Embodiment 3. Figure 6 It can be seen that the distribution of the fuel layer is constantly changing during the spread of flowing fire. Figure 7 The stable-phase fuel layer distribution diagram provided in Embodiment 3 of this application. Figure 7 It can be seen that the fuel layer thickness near the release point is greater than that at the leading edge, and the fuel layer thickness at the release point is affected by the fuel release rate. The greater the release rate, the greater the fuel film thickness at that location.
[0198] In the flowing fire propagation simulation method provided in this embodiment, a flowing fire propagation equation characterizing the flowing fire propagation process is established based on the conservation law. The flow fire propagation equation is decomposed into a first sub-equation and a second sub-equation using the operator splitting method. The computational domain is divided into multiple control volumes, resulting in the first and second sub-equations corresponding to each control volume. For each control volume, the first and second sub-equations are discretized using the finite volume method, resulting in the first and second discrete sub-equations for each control volume. By solving the first and second discrete sub-equations for each control volume, the predicted values of the conserved variables at each moment of the corresponding time period for each control volume are obtained. The predicted values of the conserved variables at each moment of the corresponding time period for all control volumes are integrated to obtain the predicted values of the conserved variables at different moments in the flowing fire propagation process. The predicted values of the conserved variables at different moments in the flowing fire propagation process are substituted into the expression for the conserved variables using changing parameters to obtain the predicted values of the oil film thickness and propagation velocity at different moments in the flowing fire propagation process. By predicting the thickness and spread rate of the oil film at different times, the impact range of flowing fire can be preliminarily predicted, providing data reference and basis for the prevention and rescue work of flowing fire.
[0199] Example 4
[0200] Figure 8 This is a schematic diagram of the flowing fire spread simulation device provided in Embodiment 4 of this application, as shown below. Figure 8 As shown, the device includes: a first establishment module 81, a second establishment module 82, and a solution module 83.
[0201] In this embodiment, the first establishment module 81 is used to establish a first change expression characterizing the change of physical parameters during the spread of flowing fire based on the conservation law, according to the set computational domain; and to establish a second change expression characterizing the change of conserved parameters during the spread of flowing fire based on the computational domain and the set change parameters.
[0202] The varying parameters include oil film thickness and propagation rate. In this embodiment, the computational domain refers to the spatial region where the flowing fire spreads. In practical applications, conservation laws refer to the laws governing the constant value of a certain physical quantity in nature. For example, conservation laws can be the law of conservation of mass, the law of conservation of momentum, and the law of conservation of energy.
[0203] In this embodiment, the second establishment module 82 is used to establish the flowing fire spread equation based on the first change expression and the second change expression, using the Newton-Leibniz algorithm.
[0204] The flowing fire propagation equation is an equation established based on the sum of the derivatives of the conserved variables with respect to time and the derivatives of the numerical flux with respect to the computational domain, as well as the source term.
[0205] In one possible implementation, the second establishment module 82 is specifically used for:
[0206] By applying the Newton-Leibniz algorithm in reverse, the equations established based on the first and second transformation expressions are processed to obtain the intermediate equations.
[0207] By integrating the time-related derivatives and the domain-related derivatives in the intermediate equation onto one side of the equation, we obtain the constant term on the other side of the equation.
[0208] The intermediate equations are converted into matrix equations, and the flowing fire spread equations are obtained based on the matrix equations.
[0209] The matrix equation includes: variable matrix terms, operator matrix terms, and source matrix terms; the column vector corresponding to the first column of the variable matrix terms serves as the conserved variable of the flowing fire spread equation, the column vector corresponding to the second column of the variable matrix terms serves as the numerical flux of the flowing fire spread equation, and the source matrix terms serve as the source terms of the flowing fire spread equation.
[0210] In practical applications, the column vector corresponding to the first column of the variable matrix terms is used as the conserved variable of the flowing fire spread equation, the column vector corresponding to the second column of the variable matrix terms is used as the numerical flux of the flowing fire spread equation, and the source matrix terms are used as the source terms of the flowing fire spread equation, thus obtaining the flowing fire spread equation.
[0211] In this embodiment, the solver module 83 is used to iteratively solve the flowing fire propagation equation based on the set initial conditions, and obtain the predicted values of oil film thickness and propagation speed at different times in the flowing fire propagation process.
[0212] The initial conditions include: initial spread rate, spread initiation location, and initial oil film thickness. In practical applications, the combustion area of the flowing fire can be calculated by predicting the oil film thickness and spread rate at different times. It can be understood that the influence range of the flowing fire spread can be preliminarily analyzed based on the combustion area at different times.
[0213] In one possible implementation, the solver module 83 includes:
[0214] The decomposition unit is used to decompose the flowing fire spread equation into the first and second sub-equations corresponding to the control volume using the operator splitting method.
[0215] The first sub-equation is a partial differential equation, and the second sub-equation is an ordinary differential equation.
[0216] The partitioning unit is used to divide the computational domain into multiple control volumes, resulting in first and second sub-equations for each control volume. In practical applications, the spatial region corresponding to each control volume is of the same size.
[0217] Discrete elements are used to discretize the first and second sub-equations corresponding to each control volume using the finite volume method, thereby obtaining the first and second discrete sub-equations for each control volume.
[0218] The first discrete equation is an equation relating the rate of change of the conserved variable with respect to the time step within the time period corresponding to the control volume and the sum of the rate of change of the numerical flux under the control volume; the second discrete equation is an equation relating the rate of change of the conserved variable with respect to the time step within the time period corresponding to the control volume and the source term corresponding to the control volume.
[0219] It can be understood that the first discrete sub-equation is the discrete form of the first sub-equation, and the second discrete sub-equation is the discrete form of the second sub-equation.
[0220] The solving unit is used to solve the first discrete sub-equation using a Riemann solver to obtain a first expression for the numerical flux with respect to the conserved variables under each control volume; and to substitute the first expression under each control volume into the first discrete sub-equation to obtain the first equation under each control volume.
[0221] For each control volume, the iterative unit iteratively performs the following processing to integrate the predicted values of the conserved variables at different moments in the flowing fire propagation process: For each moment within the time period corresponding to the control volume, this moment is taken as the current moment. The predicted values of the conserved variables of the control volume at the current moment are used as initial values. The first equation under the control volume is time-progressed using the third-order Runge-Kutta method, and the result of the time-progression is used as the initial value. The second discrete sub-equation corresponding to the control volume is time-progressed using the third-order Runge-Kutta method to obtain the predicted values of the conserved variables of the control volume at the next moment of the current moment. Among them, the initial value corresponding to the first moment is the initial condition.
[0222] The prediction unit is used to derive the expression for the conserved variables using varying parameters based on the time derivative of the conserved variables in the flowing fire propagation equation. Substituting the predicted values of the conserved variables at different moments in the flowing fire propagation process into this expression yields the predicted values of the oil film thickness and propagation velocity at those moments. The initial value corresponding to the first moment is the initial condition.
[0223] It is understandable that, for each control body, the third-order Runge-Kutta method is used to advance the time and obtain the predicted value of the conserved variable at each moment within the time period corresponding to each control body; the predicted values of the conserved variable at each moment within the time period corresponding to each control body are integrated to obtain the predicted value of the conserved variable at different moments in the flowing fire spread process.
[0224] In this embodiment, the operator splitting method is used to decompose the flowing fire spread equation into a first sub-equation and a second sub-equation. The computational domain is divided into multiple control volumes, resulting in first and second sub-equations corresponding to each control volume. For each control volume, the finite volume method is used to discretize the first and second sub-equations, resulting in first and second discrete sub-equations for each control volume. By solving the first and second discrete sub-equations for each control volume, the predicted values of the conserved variables at each moment of the corresponding time period for each control volume are obtained. The predicted values of the conserved variables at each moment of the corresponding time period for all control volumes are integrated to obtain the predicted values of the conserved variables at different moments in the flowing fire spread process. Substituting the predicted values of the conserved variables at different moments in the flowing fire spread process into the expression for the conserved variables using changing parameters, the predicted values of the oil film thickness and spread rate at different moments in the flowing fire spread process are obtained. By using the predicted values of the oil film thickness and spread rate at different moments, the influence range of the flowing fire can be preliminarily predicted, providing data reference and basis for the prevention and rescue work of flowing fires.
[0225] In practical applications, when the solving unit uses a Riemann solver to solve the first discrete sub-equation and obtains the first expression for the numerical flux with respect to the conserved variables under each control volume, the Riemann problem arises. It is understandable that providing high-precision initial values for the conserved variables can effectively improve the accuracy of the numerical flux.
[0226] Therefore, in one possible implementation, the solver module 83 further includes:
[0227] The reconstruction unit is used to reconstruct space using conserved variables through linear interpolation.
[0228] In practical applications, virtual boundaries are set up in numerical calculations to calculate the flux of boundary cells.
[0229] Furthermore, in one possible implementation, the solver module 83 further includes:
[0230] The constraint unit is used to constrain conserved variables using a slope limiter.
[0231] In one possible implementation, the solver module 83 further includes:
[0232] Constraint cells are used to constrain the time step using stability criteria.
[0233] The time step is the time interval between adjacent moments.
[0234] In practical applications, there may be cases where the propagation velocity is negative at the moving boundary of each time step. A negative propagation velocity means that the liquid fuel stops propagating within that time step. In solving the flowing fire propagation equation, a negative propagation velocity will affect the solution and lead to incorrect results.
[0235] Therefore, regarding the negative flow velocity at the moving boundary at each time step, in one possible implementation, the solver module 83 further includes:
[0236] The correction unit is used to correct the negative flow velocity at the moving boundary at each time step to 0.
[0237] In the flowing fire spread simulation device provided in this embodiment, the first establishment module establishes a first change expression characterizing the changes in physical parameters during the flowing fire spread process based on the conservation law, according to a set computational domain; and establishes a second change expression characterizing the changes in conserved parameters during the flowing fire spread process based on the computational domain and the set change parameters; the second establishment module establishes the flowing fire spread equation based on the Newton-Leibniz algorithm, according to the first and second change expressions; the solution module iteratively solves the flowing fire spread equation based on set initial conditions to obtain predicted values of oil film thickness and spread rate at different times during the flowing fire spread process. In this embodiment, a flowing fire spread equation characterizing the flowing fire spread process is established based on the conservation law, and predicted values of oil film thickness and spread rate at different times during the flowing fire spread process are obtained by solving the flowing fire spread equation. These predicted values of oil film thickness and spread rate at different times can preliminarily predict the influence range of the flowing fire, providing data reference and basis for the prevention and rescue work of flowing fires.
[0238] Example 5
[0239] Figure 9 This is a schematic diagram of the structure of the electronic device provided in Embodiment 5 of this application, as shown below. Figure 9 As shown, the electronic device includes:
[0240] The processor 91 and the main control device also include a memory 92; it may also include a communication interface 93 and a bus 94. The processor 91, memory 92, and communication interface 93 can communicate with each other via the bus 94. The communication interface 93 can be used for information transmission. The processor 91 can call logical instructions stored in the memory 92 to execute the methods of the above embodiments.
[0241] Furthermore, the logic instructions in the aforementioned memory 92 can be implemented as software functional units and, when sold or used as independent products, can be stored in a computer-readable storage medium.
[0242] The memory 92, as a computer-readable storage medium, can be used to store software programs and computer-executable programs, such as program instructions / modules corresponding to the methods in the embodiments of this application. The processor 91 executes functional applications and data processing by running the software programs, instructions, and modules stored in the memory 92, thereby implementing the methods in the above-described method embodiments.
[0243] The memory 92 may include a program storage area and a data storage area. The program storage area may store the operating system and application programs required for at least one function; the data storage area may store data created based on the use of the terminal device. Furthermore, the memory 92 may include high-speed random access memory and may also include non-volatile memory.
[0244] This application also provides a computer-readable storage medium storing computer-executable instructions, which, when executed by a processor, are used to implement the methods in any of the embodiments. For example, the computer-readable storage medium may be a ROM, random access memory (RAM), CD-ROM, magnetic tape, floppy disk, or optical data storage device, etc.
[0245] Other embodiments of this application will readily occur to those skilled in the art upon consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of this application that follow the general principles of this application and include common knowledge or customary techniques in the art not disclosed herein. The specification and examples are to be considered exemplary only, and the true scope and spirit of this application are indicated by the following claims.
[0246] It should be understood that this application is not limited to the precise structure described above and shown in the accompanying drawings, and various modifications and changes can be made without departing from its scope. The scope of this application is limited only by the appended claims.
Claims
1. A method for simulating the spread of flowing fire, characterized in that, include: Based on the defined computational domain and the conservation law, a first expression for the change of physical parameters during the spread of flowing fire is established. Furthermore, based on the computational domain and the set variation parameters, a second variation expression characterizing the change of conserved parameters during the spread of flowing fire is established; the variation parameters include oil film thickness and spread rate. By applying the Newton-Leibniz algorithm in reverse, the equations established based on the first and second transformation expressions are processed to obtain intermediate equations; By integrating the time-related derivatives and the domain-related derivatives of the intermediate equation into one side of the equation, we obtain the constant term on the other side of the equation. The intermediate equation is transformed into a matrix equation, and the flowing fire spread equation is obtained based on the matrix equation. The matrix equation includes variable matrix terms, operator matrix terms, and source matrix terms. The column vector corresponding to the first column of each variable matrix term serves as the conserved variable in the flowing fire spread equation, the column vector corresponding to the second column of each variable matrix term serves as the numerical flux in the flowing fire spread equation, and the source matrix term serves as the source term in the flowing fire spread equation. The flowing fire spread equation is an equation established based on the sum of the derivatives of the conserved variables with respect to time and the derivatives of the numerical flux with respect to the computational domain, as well as the source term. Based on the set initial conditions, the flowing fire propagation equation is solved iteratively to obtain predicted values of the oil film thickness and the propagation velocity at different times during the flowing fire propagation process, including: The flowing fire spread equation is decomposed into a first sub-equation and a second sub-equation using the operator splitting method. The first sub-equation is a partial differential equation, and the second sub-equation is an ordinary differential equation. The computational domain is divided into multiple control volumes, and the first sub-equation and the second sub-equation corresponding to the multiple control volumes are obtained. For each control volume, the first and second sub-equations corresponding to the control volume are discretized using the finite volume method to obtain the first and second discrete sub-equations for each control volume. The first discrete sub-equation is an equation relating the rate of change of the conserved variable with respect to the time step within the time period corresponding to the control volume and the rate of change of the numerical flux under the control volume. The second discrete equation is an equation relating the rate of change of the conserved variable with respect to the time step within the time period corresponding to the control volume and the source term corresponding to the control volume. The first discrete sub-equation is solved using a Riemann solver to obtain a first expression for the numerical flux with respect to the conserved variable under each control volume; and the first expression under each control volume is substituted into the first discrete sub-equation to obtain a first equation under each control volume. For each control body, the following processing is performed iteratively to integrate and obtain the predicted values of the conserved variables at different times in the flowing fire spread process: For each time period corresponding to the control body, this time is taken as the current time. The predicted value of the conserved variables of the control body at the current time is used as the initial value. The first equation under the control body is time-progressed using the third-order Runge-Kutta method, and the result of the time-progression is used as the initial value. The second discrete sub-equation corresponding to the control body is time-progressed using the third-order Runge-Kutta method to obtain the predicted value of the conserved variables of the control body at the next time point of the current time. Wherein, the initial value corresponding to the first time point is the initial condition. Based on the derivative of the conserved variable with respect to time in the flowing fire propagation equation, the expression of the conserved variable using the changing parameter is derived. Substituting the predicted values of the conserved variable at different times in the flowing fire propagation process into the expression of the conserved variable using the changing parameter, the predicted values of the oil film thickness and the propagation speed at different times in the flowing fire propagation process are obtained. If the propagation velocity at the moving boundary at any predicted time step is negative, then the negative velocity at the moving boundary is corrected to 0.
2. The method according to claim 1, characterized in that, The step of solving the first discrete sub-equation using a Riemann solver to obtain a first expression for the numerical flux with respect to the conserved variables under each control volume also includes: The conserved variables are spatially reconstructed using linear interpolation.
3. The method according to claim 1, characterized in that, Before discretizing the first and second sub-equations corresponding to each control volume using the finite volume method to obtain the first and second discrete sub-equations corresponding to each control volume, the method further includes: The time step is constrained using a stability criterion, where the time step is the time interval between adjacent moments.
4. A flowing fire spread simulation device, characterized in that, include: The first module is used to establish, based on the conservation law and the set computational domain, the first change expression characterizing the changes in physical parameters during the spread of flowing fire. Furthermore, based on the computational domain and the set variation parameters, a second variation expression characterizing the change of conserved parameters during the spread of flowing fire is established; the variation parameters include oil film thickness and spread rate. The second establishment module is used to establish a flowing fire spread equation based on the Newton-Leibniz algorithm, according to the first change expression and the second change expression; wherein the flowing fire spread equation is an equation established based on the sum of the derivative terms of the conserved variables with respect to time and the derivative terms of the numerical flux with respect to the computational domain, as well as the source term. The solution module is used to iteratively solve the flowing fire propagation equation based on the set initial conditions, and obtain the predicted values of the oil film thickness and the propagation speed at different times in the flowing fire propagation process; The second establishment module is specifically used for: By applying the Newton-Leibniz algorithm in reverse, the equations established based on the first and second transformation expressions are processed to obtain intermediate equations; By integrating the time-related derivatives and the domain-related derivatives of the intermediate equation into one side of the equation, we obtain the constant term on the other side of the equation. The intermediate equation is converted into a matrix equation, and the flowing fire spread equation is obtained based on the matrix equation; wherein, the matrix equation includes: variable matrix terms, operator matrix terms, and source matrix terms; the column vector corresponding to the first column of the variable matrix terms is used as the conserved variable of the flowing fire spread equation, the column vector corresponding to the second column of the variable matrix terms is used as the numerical flux of the flowing fire spread equation, and the source matrix terms are used as the source terms of the flowing fire spread equation; The solution module includes: The decomposition unit is used to decompose the flowing fire spread equation into a first sub-equation and a second sub-equation using the operator splitting method. The first sub-equation is a partial differential equation, and the second sub-equation is an ordinary differential equation. A partitioning unit is used to divide the computational domain into multiple control volumes, and obtain the first sub-equation and the second sub-equation corresponding to the multiple control volumes; A discrete unit is used to discretize the first and second sub-equations corresponding to each control volume using the finite volume method, resulting in a first discrete sub-equation and a second discrete sub-equation for each control volume. The first discrete sub-equation is an equation relating the rate of change of the conserved variable with respect to the time step within the time period corresponding to the control volume and the rate of change of the numerical flux under the control volume. The second discrete equation is an equation relating the rate of change of the conserved variable with respect to the time step within the time period corresponding to the control volume and the source term corresponding to the control volume. The solving unit is used to solve the first discrete sub-equation using a Riemann solver to obtain a first expression for the numerical flux with respect to the conserved variable under each control volume; and to substitute the first expression under each control volume into the first discrete sub-equation to obtain a first equation under each control volume. The iterative unit, for each control body, iteratively performs the following processing to integrate and obtain the predicted values of the conserved variables at different times in the flowing fire spread process: For each time period corresponding to the control body, this time is taken as the current time, and the predicted value of the conserved variables of the control body at the current time is taken as the initial value. The first equation under the control body is time-progressed using the third-order Runge-Kutta method, and the result of the time-progression is taken as the initial value. The second discrete sub-equation corresponding to the control body is time-progressed using the third-order Runge-Kutta method to obtain the predicted value of the conserved variables of the control body at the next time point of the current time; wherein, the initial value corresponding to the first time point is the initial condition; The prediction unit is used to derive the expression of the conserved variable with respect to time based on the derivative of the conserved variable in the flowing fire spread equation, and substitute the predicted value of the conserved variable at different times in the flowing fire spread process into the expression of the conserved variable with respect to the changing parameter to obtain the predicted values of the oil film thickness and the spread rate at different times in the flowing fire spread process. The correction unit is used to correct the negative flow velocity at the moving boundary to 0 when the propagation velocity at any predicted time step is negative.
5. An electronic device, characterized in that, include: A processor, and a memory communicatively connected to the processor; The memory stores computer-executed instructions; The processor executes computer execution instructions stored in the memory to implement the method as described in any one of claims 1-3.
6. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer-executable instructions, which, when executed by a processor, are used to implement the method as described in any one of claims 1-3.
Citation Information
Patent Citations
Method for simulating water-gas two-phase homogeneous flow in a water delivery pipeline based on a finite volume method
CN109918787A
