A method for simulating flame evolution of ship fire based on discrete vortex bubbles
By introducing the vortex bubble density adjustment mechanism and the geometric cylinder method into the ship fire flame simulation, the problems of simulation distortion and large computational overhead caused by the discrete vortex method are solved, and stable flame evolution simulation and efficient calculation are achieved.
Patent Information
- Application Number
- CN202410912230.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-09
- Publication Date
- 2024-09-03
- Estimated Expiration
- 2044-07-09
AI Technical Summary
In the existing technology, the application of the discrete vortex method in ship fire flame simulation results in distortion of the simulation effect, huge computational overhead, and numerical instability, making it difficult to accurately simulate flames in boundaries with obstacles.
A ship fire flame evolution simulation method based on discrete vortex bubbles is adopted. By introducing a vortex bubble density adjustment mechanism, the geometric cylinder method is used to divide and merge vortex bubbles, control the number of vortex bubbles, improve calculation efficiency, and correct the velocity field through the Biot-Savart formula. Ensure simulation stability.
It achieves a detailed and numerically stable flame evolution effect, improves simulation efficiency and realism, reduces computational overhead, and avoids visual artifacts and flow field instability.
Smart Images

Figure CN118468759B
Abstract
Description
Technical Field
[0001] The invention relates to the field of simulation technology, and in particular to a method for simulating the evolution of flames of a ship fire based on discrete vortex bubbles. Background Art
[0002] Ship fire accidents are one of the most serious types of marine traffic accidents, which can cause great harm and losses to human life, ecological environment and shipboard equipment. After a ship catches fire, it is usually only possible to rely on the ship's firefighters' own response capabilities to deal with the fire. With the development of computer simulation technology, more and more scholars and engineers have proposed using simulation training to improve the ability of shipboard personnel to deal with ship fires.
[0003] Flame simulation is a difficult problem in virtual ship fire training. Studying the law of fire spread on ships is of great help in controlling fires, formulating fire plans, and improving the response capabilities of firefighters on board. Flame simulation has always been a hot topic in the field of navigation simulation and virtual reality, and its simulation methods have been developed for more than 50 years. Early flame simulation mainly used non-physical methods to simulate flames, that is, using particle systems to track the overall behavior of flame evolution. However, the common disadvantages of non-physical methods are low realism and poor interactive flexibility. Since simulation methods based on physical models can objectively reflect the real laws of flame evolution, coupled with the increasing requirements of the industry for the realism of flame simulation and the needs of the academic community, researchers began to use methods based on physical models to simulate ship fires.
[0004] The vortex method is a typical simulation method based on computational fluid dynamics, and has advantages in simulating turbulence such as flames. Based on the vorticity form of the Navier-Stokes equations, the vortex method tracks the changes in the fluid by solving the evolution of the vortex field. Based on the discrete method, the vortex method can be divided into a grid-based vortex method and a discrete vortex method. The grid-based vortex method uses a fixed grid to represent the vortex field and the velocity field. Since the size of the grid needs to be determined in advance, this method is not good at simulating flames in spaces with obstacle boundaries. The discrete vortex method represents the vortex field and the velocity field through discrete particles, and then solves the vortex equation. It is suitable for simulating flames in spaces without obstacles.
[0005] Although the discrete vortex method is more suitable for flame simulation, it has two main problems that prevent it from being widely adopted. First, when the divergence of the vorticity field is not zero, the stretching term in the vorticity equation will lead to numerical instability. The common strategy is to improve stability by limiting the growth of vorticity, but this approach will cause visual artifacts in the simulated flow distortion. In addition, the time complexity of the discrete vortex method to calculate the velocity field is low, which is ,in is the number of vortex elements in the flow field. When a large number of vortex elements are needed to simulate a certain phenomenon, the huge computational overhead is difficult for the computer to bear. Summary of the invention
[0006] In view of the technical problems in the prior art that the discrete vortex method is used in the simulation of ship fire flames, resulting in distorted simulation effects and huge computational overhead, the present invention provides a ship fire flame evolution simulation method based on discrete vortex bubbles. The present invention mathematically models the flame through the vortex field and the velocity field, and can obtain a flame evolution effect with rich details and numerical stability. On the basis of fluid simulation based on the vortex equation, a vortex bubble density adjustment mechanism is introduced to improve the computational efficiency by reducing the number of vortex bubbles in the flow field.
[0007] The technical means adopted by the present invention are as follows:
[0008] A method for simulating flame evolution of ship fire based on discrete vortex bubbles comprises the following steps:
[0009] S1. Construct a flow field vortex physical model of flame evolution, initialize vortex bubbles and flame particles, the vortex bubbles are used to track the vortex field of the flame, and the flame particles are used to visualize the evolution of the flame. The number of vortex bubbles is less than the number of flame particles, wherein the flow field vortex physical model is set to:
[0010]
[0011] in, is the speed of the vortex bubbles and flame particles, is the vorticity of the flame flow field, is the density of the flame flow field, is the viscosity coefficient of the flame, It is an external force. is the divergence operator;
[0012] S2, using the second-order Runge-Kutta integration method to calculate the positions of vortex bubbles and flame particles;
[0013] S3, converting the vortex bubble into a cylindrical structure, updating the position of the cylinder end point using Euler integral based on the current velocity field, and controlling the vortex bubble splitting according to the cylinder length;
[0014] S4. Establish a spatial hash table grid and traverse all vortex bubbles in the computational domain. Store the number of vortex bubbles in the same grid cell as a keyword in the hash table and set the maximum vortex bubble number threshold. Minimum vortex bubble number threshold , traverse the grid of the hash table and detect the number of vortex bubbles in each grid cell ,if , then merge the vortices in the grid cells until the number of vortices is less than the maximum threshold. , then the vortex bubbles in the grid cells are segmented until the number of vortex bubbles is greater than the minimum threshold, and the position and vortex volume of the vortex bubbles are updated;
[0015] S5. According to the updated position and vorticity of the vortex bubble, the velocity field is calculated using the correction coefficient Biot-Savart formula, and step S2 is executed.
[0016] Furthermore, the method further comprises:
[0017] S6. Reduce the health of vortex bubbles and flame particles, and destroy vortex bubbles and flame particles whose health is less than 0.
[0018] Furthermore, the calculation formula of the vortex bubble position is as follows:
[0019]
[0020] in, is the location of the vortex bubble, Indicates that the vortex bubble is at position speed, is the time step;
[0021] The calculation formula for the position of flame particles is the same as that for the position of vortex bubbles.
[0022] Furthermore, the vortex bubble is converted into a cylindrical structure, and the position of the cylinder endpoint is updated using Euler integration based on the current velocity field, including calculating the position of the cylinder endpoint according to the following:
[0023]
[0024] in, and is the position of the left and right endpoints of the cylinder after stretching. is the length of the cylinder simulating the vortex bubble, is the cylindrical direction of the simulated vortex bubble.
[0025] Furthermore, the vortex bubble is converted into a cylindrical structure, and the position of the cylinder end point is updated based on the current velocity field using Euler integration, which also includes:
[0026] A maximum length threshold is set for each cylinder. If the length of the cylinder after convection exceeds the threshold, the cylinder is divided into two along the direction of the vorticity. The lengths of the two cylinders are The vorticity of the new cylinder is half of the vorticity of the cylinder before the division, and the positions of the new cylinders are arranged in sequence according to the direction of the vortex bubble vorticity.
[0027] Furthermore, if , then merge the vortices in the grid cells until the number of vortices is less than the maximum threshold, including:
[0028] When the number of vortex bubbles inside the grid is greater than When , the two vortex bubbles closest to each other in the grid are merged into one vortex bubble. The vorticity of the new vortex bubble is the sum of the vorticity of the original two vortex bubbles. The vortex bubble merging operation is performed until the number of vortex bubbles in the grid is less than .
[0029] Furthermore, if , then the vortex bubbles in the grid cells are segmented until the number of vortex bubbles is greater than the minimum threshold, including:
[0030] When the number of vortex bubbles inside the grid is less than When , any vortex bubble in the grid is selected for segmentation. The vortex volume of the new vortex bubble is half of the original vortex bubble. The vortex bubble segmentation operation is performed until the number of vortex bubbles in the grid is greater than .
[0031] Further, the velocity field is updated according to the updated position and vorticity of the vortex bubble, including calculating the vortex bubble velocity according to the following formula:
[0032]
[0033] in, It is The location of the vortex bubble, It is to ask about the location. is the correction factor, is the number of vortex bubbles.
[0034] Compared with the prior art, the present invention has the following advantages:
[0035] 1. The present invention can improve the stability of solving the stretching term in the vortex dynamics equation by the geometric cylinder method, while not limiting the increase of the vortex volume, thereby ensuring the realism of the flame simulation.
[0036] 2. The present invention solves the problem of uneven flow field distribution through a vortex bubble density adjustment mechanism, while reducing the number of vortex bubbles in the flow field, increasing the velocity field solution speed of the vortex method, and thus improving the simulation efficiency of the flame. BRIEF DESCRIPTION OF THE DRAWINGS
[0037] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.
[0038] Figure 1 The present invention is a flow chart of a method for simulating flame evolution of a ship fire based on discrete vortex bubbles.
[0039] Figure 2 Schematic diagram of the geometric cylinder method in an embodiment of the present invention.
[0040] Figure 3 Schematic diagram of vortex bubble merging operation in an embodiment of the present invention.
[0041] Figure 4 Schematic diagram of vortex bubble segmentation operation in an embodiment of the present invention. DETAILED DESCRIPTION
[0042] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.
[0043] like Figure 1 As shown, the present invention provides a method for simulating the evolution of ship fire flames based on discrete vortex bubbles, comprising the following steps:
[0044] S1. Construct a flow field vortex physical model of flame evolution, initialize vortex bubbles and flame particles, the vortex bubbles are used to track the vortex field of the flame, and the flame particles are used to visualize the evolution of the flame. Since the amount of calculation of the vortex method mainly depends on the number of vortex bubbles, the number of vortex bubbles is much smaller than the number of flame particles. Vortex bubbles and flame particles have a life cycle and will be destroyed after the set time.
[0045] Specifically, this step is used to initialize the flow field, use vortex bubbles and flame particles to discretize the computational domain, and assign physical properties to vortex bubbles and flame particles, including velocity ,Location , vorticity , circulation And health points.
[0046] The flow field vortex physical model of flame evolution constructed from the Lagrangian point of view can be written as follows:
[0047] (1)
[0048] In the formula, Indicates the speed of vortex bubbles and flame particles. is the vorticity of the flame flow field, is the density of the flame flow field, is the viscosity coefficient of the flame, It is an external force. is the divergence operator.
[0049] S2. The velocity field is calculated using the correction coefficient Biot–Savart formula, and the positions of vortex bubbles and flame particles are calculated using the second-order Runge-Kutta integration method.
[0050] Specifically, this step is used to realize the convection of fluid particles. The position of the vortex bubble is calculated as follows:
[0051] (2)
[0052] In the formula, is the location of the vortex bubble, Indicates that the vortex bubble is at position speed, is the time step. The positions of the flame particles are calculated in the same way.
[0053] S3. Convert the vortex bubble into a cylindrical structure, update the position of the cylinder endpoint using Euler integral based on the current velocity field, and control the vortex bubble splitting according to the cylinder length.
[0054] This step uses the geometric cylinder method to calculate the vortex stretch term in the vorticity equation. Assume that there is vortex, transforming it into The method uses a vortex generator to generate a cylinder with two endpoints. The new positions of the cylinder endpoints are then calculated based on the velocity field to complete the vortex stretching. Finally, the stretched cylinder is transformed into a vortex bubble. If the length of the stretched cylinder exceeds the set threshold, the cylinder is split into two. The lengths of the split cylinders are the same and the annulus is the same as the original cylinder.
[0055] Specifically, the present invention designs a cylinder-based geometric method to calculate the stretch term. That is, the vortex bubble is converted into a cylinder, the position of the cylinder endpoint is updated based on the current velocity field, and finally the deformed cylinder is converted back to a vortex bubble. Given the vorticity of the vortex bubble , the vortex can be converted into a circulation , the direction is , the length is The positions of the cylinder endpoints are calculated using Euler integration:
[0056] (3)
[0057] In the formula, is the location of the vortex bubble, and is the position of the left and right endpoints of the cylinder after stretching. and are the velocities of the left and right endpoints of the cylinder.
[0058] In order to ensure the stability of the simulation, the present invention sets a maximum length for the cylinder When the length of the cylinder When the cylinder is divided into two, the total length of the cylinder after the division is the same as before the division. The working process of the geometric cylinder method is shown in Figure 2 , where process A represents the transformation of a cylinder into a vortex bubble, process B represents the transformation of a vortex bubble into a cylinder, and process C represents the stretching of a cylinder.
[0059] S4. Establish a spatial hash table grid and traverse all vortex bubbles in the computational domain. Store the number of vortex bubbles in the same grid cell as a keyword in the hash table and set the maximum vortex bubble number threshold. Minimum vortex bubble number threshold , traverse the grid of the hash table and detect the number of vortex bubbles in each grid cell ,if , then merge the vortices in the grid cells until the number of vortices is less than the maximum threshold. , the vortex bubbles in the grid cells are segmented until the number of vortex bubbles is greater than the minimum threshold, and the position and vortex volume of the vortex bubbles are updated.
[0060] This step is used to correct the vortex field using the vortex bubble density adjustment mechanism. When the velocity gradient of the flow field is large, the vortex bubble will have serious density non-uniformity. To this end, the present invention designs two vortex bubble density adjustment mechanisms: vortex bubble merging and vortex bubble segmentation.
[0061] When the distance between vortex bubbles is too large, the density adjustment mechanism will add new vortex bubbles, splitting the vortex bubbles in the area with lower density into two vortex bubbles, and the vortex volume of the new vortex bubble is half of the original vortex bubble. When the density of vortex bubbles is too large, two vortex bubbles that are particularly close to each other will be merged, and a new vortex bubble will replace the original two vortex bubbles.
[0062] Given The density of vortex bubbles in the space is calculated using the spatial hash table. The number of vortex bubbles in the space is stored as the key value in the grid of the hash table, and each grid in the spatial hash table is traversed, and the maximum vortex bubble number threshold is set. And the minimum vortex bubble number threshold .
[0063] When the number of vortex bubbles inside the grid is greater than When , it means that the density of vortex bubbles in this area is too large. The two vortex bubbles closest to each other in this area are merged into one vortex bubble, and the vorticity of the new vortex bubble is the sum of the vorticity of the original two vortex bubbles, such as Figure 3 The vortex-bubble merging operation is performed until the number of vortices in the grid is less than , the position and vorticity of the new vortex bubble are:
[0064] (4)
[0065] In the formula, and is the first The position and vorticity of each vortex bubble.
[0066] When the number of vortex bubbles inside the grid is less than When , it means that the vortex bubbles in this area are too sparse. Select any vortex bubble in this grid area and split it into two vortex bubbles, such as Figure 4 The vortex segmentation operation is performed until the number of vortices in the grid is greater than , the vorticity of the new vortex bubble is half of the original vortex bubble, and the position is calculated according to the following formula:
[0067] (5)
[0068] In the formula, and is the first The position and vorticity of the vortex bubble, is the distance parameter, typically set to one-quarter the size of the hash table grid cell.
[0069] S5. According to the updated position and vorticity of the vortex bubble, the velocity field is calculated using the correction coefficient Biot-Savart formula, and then step S2 is executed.
[0070] Using the Biot-Savart formula to calculate the self-induced velocity of vortex bubbles will lead to unstable flow field. The present invention avoids numerical instability of the flow field by adding a correction coefficient to the Biot-Savart formula. The modified Biot-Savart formula is:
[0071] (6)
[0072] In the formula, is the location of the vortex bubble, It is to ask about the location. is the correction factor, is the number of vortex bubbles.
[0073] S6, reduce the life value of the vortex bubble and the flame particle, and determine whether the life of the vortex bubble and the flame particle is less than 0, if less than 0, destroy the vortex bubble and the flame particle. Determine whether the simulation time meets the requirements, if not, return to step S1, otherwise end the simulation.
[0074] The new method proposed in the present invention ensures the conservation of vorticity through the segmentation mechanism of the geometric cylinder method during the solution of the vorticity equation, making the simulated flame more realistic; the vortex bubble density adjustment mechanism can reasonably maintain the uniform distribution of vortex bubbles and appropriately reduce the number of vortex bubbles, thereby simulating the movement of the flame more quickly and accurately.
[0075] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or replace some or all of the technical features therein with equivalents. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present invention.
Claims
1. A method for simulating the evolution of ship fire flames based on discrete vortex bubbles. It is characterized in that The following steps are involved: S1. Construct a flow field vortex physical model of flame evolution, initialize vortex bubbles and flame particles, the vortex bubbles are used to track the vortex field of the flame, and the flame particles are used to visualize the evolution of the flame. The number of vortex bubbles is less than the number of flame particles, wherein the flow field vortex physical model is set to: in, is the speed of the vortex bubbles and flame particles, is the vorticity of the flame flow field, is the density of the flame flow field, is the viscosity coefficient of the flame, It is an external force. is the divergence operator; S2, using the second-order Runge-Kutta integration method to calculate the positions of vortex bubbles and flame particles; S3, converting the vortex bubble into a cylindrical structure, updating the position of the cylinder end point using Euler integral based on the current velocity field, and controlling the vortex bubble splitting according to the cylinder length; S4. Establish a spatial hash table grid and traverse all vortex bubbles in the computational domain. Store the number of vortex bubbles in the same grid cell as a keyword in the hash table and set the maximum vortex bubble number threshold. Minimum vortex bubble number threshold , traverse the grid of the hash table and detect the number of vortex bubbles in each grid cell ,if , then merge the vortices in the grid cells until the number of vortices is less than the maximum threshold. , then the vortex bubbles in the grid cells are segmented until the number of vortex bubbles is greater than the minimum threshold, and the position and vortex volume of the vortex bubbles are updated; S5. According to the updated position and vorticity of the vortex bubble, the velocity field is calculated using the correction coefficient Biot-Savart formula, and then step S2 is executed.
2. According to claim 1, a method for simulating flame evolution of ship fire based on discrete vortex bubbles, It is characterized in that The method further comprises: S6. Reduce the health of vortex bubbles and flame particles, and destroy vortex bubbles and flame particles whose health is less than 0.
3. According to claim 1, a method for simulating flame evolution of ship fire based on discrete vortex bubbles, It is characterized in that The calculation formula of the vortex bubble position is as follows: in, is the location of the vortex bubble, Indicates that the vortex bubble is at position speed, is the time step; The calculation formula for the position of flame particles is the same as that for the position of vortex bubbles.
4. According to claim 3, a method for simulating flame evolution of ship fire based on discrete vortex bubbles, It is characterized in that Convert the vortex bubble into a cylindrical structure and update the position of the cylinder endpoint using Euler integration based on the current velocity field, including calculating the position of the cylinder endpoint according to the following: in, and is the position of the left and right endpoints of the cylinder after stretching. is the length of the cylinder simulating the vortex bubble, is the cylindrical direction of the simulated vortex bubble.
5. According to claim 4, a method for simulating flame evolution of ship fire based on discrete vortex bubbles, It is characterized in that Convert the vortex bubble to a cylindrical structure, update the position of the cylinder endpoint based on the current velocity field using Euler integration, and also include: A maximum length threshold is set for each cylinder. If the length of the cylinder after convection exceeds the threshold, the cylinder is divided into two along the direction of the vorticity. The lengths of the two cylinders are The vorticity of the new cylinder is half of the vorticity of the cylinder before the division, and the positions of the new cylinders are arranged in sequence according to the direction of the vortex bubble vorticity.
6. According to claim 1, a method for simulating flame evolution of ship fire based on discrete vortex bubbles, It is characterized in that if , then merge the vortices in the grid cells until the number of vortices is less than the maximum threshold, including: When the number of vortex bubbles inside the grid is greater than When , the two vortex bubbles closest to each other in the grid are merged into one vortex bubble. The vorticity of the new vortex bubble is the sum of the vorticity of the original two vortex bubbles. The vortex bubble merging operation is performed until the number of vortex bubbles in the grid is less than .
7. According to claim 1, a method for simulating flame evolution of ship fire based on discrete vortex bubbles, It is characterized in that if , then the vortex bubbles in the grid cells are segmented until the number of vortex bubbles is greater than the minimum threshold, including: When the number of vortex bubbles inside the grid is less than When , any vortex bubble in the grid is selected for segmentation. The vortex volume of the new vortex bubble is half of the original vortex bubble. The vortex bubble segmentation operation is performed until the number of vortex bubbles in the grid is greater than .
8. According to claim 1, a method for simulating flame evolution of ship fire based on discrete vortex bubbles, It is characterized in that The velocity field is updated according to the updated vortex bubble position and vorticity, including calculating the vortex bubble velocity according to the following formula: in, It is The location of the vortex bubble, It is to ask about the location. is the correction factor, is the number of vortex bubbles.
