Spray simulation method for marine carbon dioxide fire extinguisher

By using the impulse equation and Lagrangian perspective to numerically solve carbon dioxide spray in ship firefighting simulation, the problem of unrealistic carbon dioxide spray simulation in the existing technology is solved, and the physical realism and interactivity of virtual fire extinguisher simulation are improved.

CN118410745BActive Publication Date: 2024-08-27DALIAN MARITIME UNIVERSITY
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410888415.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-04
Publication Date
2024-08-27
Estimated Expiration
2044-07-04

AI Technical Summary

Technical Problem

Existing Technology In ship fire simulation training, the fluid simulation method of carbon dioxide spray mostly uses non-physical particle systems, resulting in poor visual effects, poor simulation results, and lack of interactive flexibility.

Method used

The impulse equation is used as the physical model of carbon dioxide spray, and the numerical solution is performed based on the Lagrangian perspective. The impulse convection term and stretching term are solved through the segmentation algorithm, and the position of the carbon dioxide particles is calculated to improve the physical reality of the simulation.

Benefits of technology

It achieves a carbon dioxide spray simulation that is more in line with the laws of fluid motion, and improves the scene immersion and physical authenticity of the virtual marine portable fire extinguisher simulation.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118410745B
    Figure CN118410745B
Patent Text Reader

Abstract

The present invention provides a method for simulating the spray of a marine carbon dioxide fire extinguisher, comprising: physically modeling the carbon dioxide spray based on an impulse equation; solving the impulse convection term to obtain the updated position of the impulse particle; solving the impulse stretching term to obtain the impulse of the impulse particle after stretching; calculating the speed of the carbon dioxide particle according to the updated position of the impulse particle and the impulse of the impulse particle after stretching; obtaining the updated position of the carbon dioxide particle according to the speed of the carbon dioxide particle; rendering according to the updated position of the carbon dioxide particle to obtain a simulation result. Physical modeling of the carbon dioxide spray based on the impulse equation is a physical method that conforms to the objective motion law of the fluid, has a better sense of physical reality, and can better enhance the scene immersion of the virtual marine portable fire extinguisher simulation.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to the technical field of fluid simulation, and in particular to a method for simulating the spraying of a marine carbon dioxide fire extinguisher. Background Art

[0002] In ship fire simulation training, fluid simulation in virtual fire scenes has always been a difficult point of research, such as flames and smoke in fire scenes, carbon dioxide spray from portable fire extinguishers, etc. The carbon dioxide spray from a ship's portable carbon dioxide fire extinguisher is a typical fluid. When carbon dioxide is released from a high-pressure container, it will immediately evaporate into gas and quickly spread to fill the fire extinguishing area. At present, the simulation of carbon dioxide spray mostly uses non-physical methods such as particle systems, which has poor visual effects.

[0003] Non-physical simulation methods do not follow the objective laws of fluid motion, have poor simulation results, inflexible interactions, and have many limitations.

[0004] Therefore, the present invention provides a method for simulating the spraying of a marine carbon dioxide fire extinguisher. Summary of the invention

[0005] According to the above-mentioned shortcomings, a method for simulating the spray of a marine carbon dioxide fire extinguisher is provided. The present invention mainly uses the impulse equation as the physical model of carbon dioxide spray, and then numerically solves the model based on the Lagrangian viewpoint, uses the segmentation algorithm to solve the convection term and the stretch term in the equation in turn, calculates the position of all carbon dioxide particles for simulation, and improves the physical realism of the carbon dioxide spray simulation.

[0006] The technical means adopted by the present invention are as follows:

[0007] The present invention provides a method for simulating spraying of a marine carbon dioxide fire extinguisher, comprising:

[0008] Physically modeling the carbon dioxide spray based on an impulse equation, wherein the impulse equation includes an impulse convection term and an impulse stretch term;

[0009] Solving the impulse convection term to obtain an updated position of the impulse particle;

[0010] Solving the impulse stretching term to obtain the impulse of the impulse particle after stretching;

[0011] Calculating the velocity of the carbon dioxide particle according to the updated position of the impulse particle and the impulse of the impulse particle after stretching;

[0012] Obtaining an updated position of the carbon dioxide particle according to the speed of the carbon dioxide particle;

[0013] Rendering is performed according to the updated positions of the carbon dioxide particles to obtain simulation results.

[0014] Preferably, the impulse equation is calculated in the following manner:

[0015]

[0016] in, is the impulse, For speed, For time, is the canonical variable, is the divergence operator, is the impulse convection term, is the impulse stretch term.

[0017] Preferably, solving the impulse convection term to obtain an updated position of the impulse particle includes:

[0018] The impulse convection term is solved by using Euler integral to obtain the position change model of the impulse particle in the corresponding thread, and the first The updated position of the impulse particle, is an integer and , is the total number of impulse particles, calculated as follows:

[0019]

[0020] in, For the The impulse particle in The location at the moment, For the The impulse particle in The location at the moment, is the time step, For the first The impulse particle is The speed of time.

[0021] Preferably, solving the impulse stretching term to obtain the impulse of the impulse particle after stretching includes:

[0022] When the impulse particle is at an initial position, a frame axis is established with the impulse particle as the origin, the frame axes include a first axis, a second axis and a third axis which are perpendicular to each other, the first axis has the same direction as the velocity of the impulse particle, and the distance from the endpoint of the frame axis to the impulse particle is equal to the minimum spacing when the particle is initialized;

[0023] Calculate in At the moment, The endpoint positions of the frame axes of the impulse particles, is an integer and , is the total number of impulse particles;

[0024] According to the said At the time, the The endpoint position of the frame axis of the impulse particle is calculated At the time, the The deformation of the frame axis of the impulse particle, and updating the first impulse particles, and obtain the At the time, the The stretched impulse of an impulse particle.

[0025] Preferably, the calculation is performed at At the moment, The endpoint positions of the frame axes of the impulse particles are calculated as follows:

[0026]

[0027] in, and In the At the time, the The impulse particle The two end positions of the axis, , For the The impulse particle is The location at the moment, is the minimum spacing when the particles are initialized, For the The impulse particle Unit direction of the axis.

[0028] Preferably, the At the time, the The endpoint position of the frame axis of the impulse particle is calculated At the time, the The deformation of the frame axis of the impulse particle, and updating the first impulse particles, and obtain the At the time, the The stretched impulse of an impulse particle is calculated as follows:

[0029]

[0030]

[0031] in, and In the At the time, the The impulse particle The two end positions of the axis, , For the At the time, the The impulse of the impulse particle after stretching, For the The impulse particle is The impulse before the moment is updated, is the deformation matrix, is the rotation matrix obtained by polar decomposition of the deformation matrix, is the scaling matrix obtained by polar decomposition of the deformation matrix, is the time step.

[0032] Preferably, the speed of the carbon dioxide particle is calculated according to the updated position of the impulse particle and the impulse of the impulse particle after stretching, and is calculated in the following manner:

[0033]

[0034]

[0035]

[0036]

[0037]

[0038] in, The carbon dioxide particles are The location at the moment, for The corresponding carbon dioxide particles are The speed of time, is the impulse particle in the The location at the moment, is the total number of impulse particles, For the At the time, the The impulse of the impulse particle after stretching, For the The impulse particle in The location at the moment, is the impulse distribution function around the impulse particle, is the nuclear radius of the impulse particle, for The derivative of is any position around the impulse particle.

[0039] Preferably, the updated position of the carbon dioxide particle is obtained according to the speed of the carbon dioxide particle, and is calculated in the following manner:

[0040]

[0041] in, For the The carbon dioxide particles in The location at the moment, is an integer and , is the total number of carbon dioxide particles, For the The carbon dioxide particles in The location at the moment, For the The carbon dioxide particles in the The speed of time, is the time step.

[0042] Compared with the prior art, the present invention has the following advantages:

[0043] The method for simulating the spray of a marine carbon dioxide fire extinguisher provided by the present invention performs physical modeling of the carbon dioxide spray based on the impulse equation. It is a physical method that conforms to the objective motion law of the fluid, has better physical reality, and can better enhance the scene immersion of the virtual marine portable fire extinguisher simulation. BRIEF DESCRIPTION OF THE DRAWINGS

[0044] 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.

[0045] Figure 1 A schematic flow chart of the method for simulating the spraying of a marine carbon dioxide fire extinguisher provided by the present invention.

[0046] Figure 2 A schematic diagram of the frame axis when the impulse particle is in its initial position.

[0047] Figure 3A schematic diagram of the impulse particle after the frame axis is stretched.

[0048] Figure 4 A schematic diagram of the simulation results. DETAILED DESCRIPTION

[0049] 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.

[0050] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0051] Combination Figure 1 , Figure 1 A schematic flow chart of the method for simulating the spraying of a marine carbon dioxide fire extinguisher provided by the present invention is provided to illustrate a specific embodiment of the method for simulating the spraying of a marine carbon dioxide fire extinguisher provided by the present invention, comprising:

[0052] Physical modeling of carbon dioxide spray is carried out based on the impulse equation, which includes impulse convection term and impulse stretch term.

[0053] Solve the impulse convection term to obtain the updated position of the impulse particle;

[0054] Solve the impulse stretching term to obtain the impulse of the impulse particle after stretching;

[0055] Calculate the velocity of the carbon dioxide particle according to the updated position of the impulse particle and the impulse of the impulse particle after stretching;

[0056] Obtain updated positions of carbon dioxide particles according to their speed;

[0057] Rendering is performed based on the updated positions of the carbon dioxide particles to obtain the simulation results.

[0058] It should be noted that the impulse equation is a canonical form of the Navier-Stokes equation, which uses impulse as the main evolution variable and velocity as an auxiliary variable. Unlike the Navier-Stokes equation, the impulse method decouples the system's time evolution variables from the fluid velocity, which can create additional degrees of freedom in the process of solving the fluid physics model. Compared with the velocity field, the impulse field contains more fluid information, and solving the impulse equation can obtain a more accurate flow field. Treating carbon dioxide spray as an incompressible fluid and using the impulse equation as the physical model of the fluid, the physical realism of the carbon dioxide spray simulation is improved by tracking the changes in impulse in the flow field.

[0059] The current impulse method uses the Euler grid to solve the impulse equation, and the grid division makes this method unsuitable for gas simulation in unbounded space. This embodiment uses Lagrangian particles to discretize the impulse field and velocity field, avoiding the limitations brought by grid division. When solving the convection term and stretch term in the impulse equation, the grid limitation is completely eliminated, which improves the flexibility of carbon dioxide fluid simulation.

[0060] It is understandable that this embodiment treats the carbon dioxide spray as an incompressible fluid for unified processing, uses the impulse equation to physically model the incompressible fluid, and uses the computational fluid dynamics method to solve the fluid equation for numerical simulation, including: discretizing the carbon dioxide spray in the form of particles, and using the segmentation algorithm to solve each term in the impulse equation in turn, including the impulse convection term and the impulse stretching term. In the impulse convection term and the impulse stretching term, the velocity field needs to be used to update the impulse field. According to the corresponding relationship between velocity and impulse, the present invention traverses all impulse particles in the flow field and sums them to obtain the velocity field. By using the impulse equation to physically model the carbon dioxide spray, it is a physical method that conforms to the objective law of fluid motion, has better physical reality, and can better enhance the scene immersion of the virtual ship portable fire extinguisher simulation.

[0061] In some optional embodiments, the impulse equation is calculated as follows:

[0062]

[0063] in, is the impulse, For speed, For time, is the canonical variable, is the divergence operator, is the impulse convection term, is the impulse stretch term.

[0064] It is understandable that the impulse equation describes the change of impulse over time under any given initial conditions. When using the impulse equation to physically model carbon dioxide spray, it also includes setting the initial flow field information, including the velocity field and impulse field, and using the Lagrangian particle discrete flow field to initialize the position, velocity and impulse information of each particle. The impulse direction at the initial moment is consistent with the velocity direction and has the same magnitude.

[0065] In some optional embodiments, solving the impulse convection term to obtain the updated position of the impulse particle includes:

[0066] Euler integral is used to solve the impulse convection term, and the position change model of the impulse particle in the corresponding thread is obtained. The updated position of the impulse particle, is an integer and , is the total number of impulse particles, calculated as follows:

[0067]

[0068] in, For the The impulse particle in The location at the moment, For the The impulse particle in The location at the moment, is the time step, For the first The impulse particle in The speed of time.

[0069] It is understandable that if the traditional finite difference method is used to solve the impulse convection term, the simulation will have a particularly high requirement on the time step. This embodiment uses an explicit method to solve the impulse convection term and uses the Euler integral format to obtain the position of the impulse particle at the next moment.

[0070] In some optional embodiments, referring to Figure 2 and Figure 3 , Figure 2 A schematic diagram of the axis of the scale frame when the impulse particle is at the initial position. Figure 3 It is a schematic diagram of the impulse particle after the frame axis is stretched. Solving the impulse stretching term, the impulse of the impulse particle after stretching is obtained, including:

[0071] When the impulse particle is at the initial position, the frame axis is established with the impulse particle as the origin. The frame axes include the first axis, the second axis and the third axis which are perpendicular to each other. The first axis has the same direction as the velocity of the impulse particle. The distance from the endpoint of the frame axis to the impulse particle is equal to the minimum spacing when the particle is initialized.

[0072] Calculate in At the moment, The endpoint positions of the frame axes of the impulse particles, is an integer and , is the total number of impulse particles;

[0073] According to At the moment, The endpoint position of the frame axis of the impulse particle is calculated At the moment, The deformation of the frame axis of the impulse particle, and updates the impulse particles, and get At the moment, The stretched impulse of an impulse particle.

[0074] It is understandable that the impulse stretch term represents the change of the impulse field under the action of the velocity field. This embodiment proposes a velocity-driven method to solve the impulse stretch term. In three-dimensional space, each impulse particle carries a moving frame axis, and one of the axes of the frame axis is the same as the impulse direction of the particle. The length of each axis of the frame axis is the same as the minimum spacing when the particle is initialized. First, the velocity information of each endpoint of the frame axis is obtained according to the current velocity interpolation, and then the position of the frame axis endpoint is updated using the Euler integral, and finally the deformation of the frame axis is calculated, and the impulse of the particle is updated according to the deformation of the frame axis.

[0075] In some optional embodiments, the calculation At the moment, The endpoint positions of the frame axes of the impulse particles are calculated as follows:

[0076]

[0077] in, and In the At the moment, The impulse particle The two end positions of the axis, , For the The impulse particle in The location at the moment, is the minimum spacing when particles are initialized, For the The impulse particle Unit direction of the axis.

[0078] In some optional embodiments, according to At the moment, The endpoint position of the frame axis of the impulse particle is calculated At the moment, The deformation of the frame axis of the impulse particle, and updates the impulse particles, and get At the moment, The stretched impulse of an impulse particle is calculated as follows:

[0079]

[0080]

[0081] in, and In the At the moment, The impulse particle The two end positions of the axis, , For the At the moment, The impulse of the impulse particle after stretching, For the The impulse particle in The impulse before the moment is updated, is the deformation matrix, is the rotation matrix obtained by polar decomposition of the deformation matrix, is the scaling matrix obtained by polar decomposition of the deformation matrix, is the time step.

[0082] In some optional embodiments, the velocity of the carbon dioxide particle is calculated according to the updated position of the impulse particle and the impulse of the impulse particle after stretching, and is calculated in the following manner:

[0083]

[0084]

[0085]

[0086]

[0087]

[0088] in, For carbon dioxide particles The location at the moment, for The corresponding carbon dioxide particles are The speed of time, The impulse particle is The location at the moment, is the total number of impulse particles, For the At the moment, The impulse of the impulse particle after stretching, For the The impulse particle in The location at the moment, is the impulse distribution function around the impulse particle, is the nuclear radius of the impulse particle, for The derivative of is any position around the impulse particle.

[0089] It can be understood that the velocity field is the basis for solving the impulse convection term and impulse stretch term. From the Lagrangian point of view, the relationship between velocity and impulse is calculated as follows:

[0090]

[0091] According to the relationship between velocity and impulse, the velocity of carbon dioxide particles and the velocity of impulse particles can be solved to construct the overall velocity field.

[0092] In some optional embodiments, the updated position of the carbon dioxide particle is obtained according to the speed of the carbon dioxide particle, and is calculated as follows:

[0093]

[0094] in, For the The carbon dioxide particles in The location at the moment, is an integer and , is the total number of carbon dioxide particles, For the The carbon dioxide particles in The location at the moment, For the The carbon dioxide particles in The speed of time, is the time step.

[0095] It can be understood that the positions of the carbon dioxide spray particles are updated according to the velocity field currently constructed to achieve the simulation of the movement of carbon dioxide.

[0096] In some optional embodiments, each time step from the initial state to the current moment is simulated, and if the simulated time step reaches a specified number of steps, the simulation is completed. If the simulated time step does not reach the specified number of steps, the simulation is continued at the next time step.

[0097] In some optional embodiments, referring to Figures 2 to 4 , Figure 4 : is a schematic diagram of the simulation results, to illustrate another specific embodiment of the marine carbon dioxide fire extinguisher spray simulation method provided by the present invention, including: solving the impulse convection term, solving the impulse stretching term based on velocity drive, and calculating the velocity field from the impulse field, and finally obtaining a carbon dioxide spray simulation result that is more in line with the objective fluid motion law, specifically:

[0098] Initialize impulse particles and carbon dioxide spray particles

[0099] During the simulation, impulse particles are used to calculate the impulse field and velocity field, and carbon dioxide spray particles are used to visualize carbon dioxide. Since the number of particles is huge, the simulation cannot be achieved in real time if the impulse equation is solved in a CPU serial manner. Since the interaction between particles does not affect each other within the current time step, the impulse particle method is a simulation method that is particularly suitable for parallel computing. This embodiment initializes the impulse, velocity, and position information of the particles at the nozzle of the fire extinguisher, and transmits the particle information from the CPU memory end to the GPU device end. On the GPU end, a thread is assigned to each impulse particle and carbon dioxide spray particle, which means that the number of threads on the GPU device end is equal to the sum of the number of impulse particles and the number of carbon dioxide spray particles. The real-time performance of the simulation is further improved by using the GPU to solve the impulse physics model in parallel.

[0100] On the GPU device side, the Euler integral format is used to solve the impulse convection term. In each thread corresponding to the impulse particle, the new position of the impulse particle is calculated using the following formula:

[0101]

[0102] in, For the The impulse particle in The location at the moment, For the The impulse particle in The location at the moment, is the time step, For the first The impulse particle in The speed of time.

[0103] Reference Figure 2 and Figure 3, on the GPU device side, calculate the frame axis endpoint position of each impulse particle:

[0104]

[0105] in, and In the At the moment, The impulse particle The two end positions of the axis, , For the The impulse particle in The location at the moment, is the minimum spacing when particles are initialized, For the The impulse particle Unit direction of the axis.

[0106] The relationship between velocity and impulse is used to calculate the velocity of the frame endpoints, and then a new set of frame axes is obtained by convection of the endpoints of the frame axes of all impulse particles. The matrix of the new frame axis endpoints is calculated, and the matrix is ​​polar decomposed to obtain the rotation matrix and the scaling matrix. The deformation of the frame axis is regarded as the change of impulse, and the impulse stretching term is solved according to the following formula:

[0107]

[0108]

[0109] in, and In the At the moment, The impulse particle The two end positions of the axis, , For the At the moment, The impulse of the impulse particle after stretching, For the The impulse particle in The impulse before the moment is updated, is the deformation matrix, is the rotation matrix obtained by polar decomposition of the deformation matrix, is the scaling matrix obtained by polar decomposition of the deformation matrix, is the time step.

[0110] Use the impulse field to calculate the speed of the carbon dioxide spray particles and impulse particles. In the GPU device thread corresponding to the carbon dioxide spray particles and impulse particles, search for all impulse particles and carbon dioxide spray particles, and use the following formula to calculate the speed contribution of other impulse particles to the carbon dioxide spray particles and impulse particles corresponding to the current thread, and obtain the speed of any carbon dioxide spray particle and any impulse particle. Calculate in the following way:

[0111]

[0112]

[0113]

[0114]

[0115]

[0116]

[0117]

[0118]

[0119] in, For carbon dioxide particles The location at the moment, for The corresponding carbon dioxide particles are The speed of time, The impulse particle is The location at the moment, for The corresponding impulse particle is The speed of time, is the total number of impulse particles, For the At the moment, The impulse of the impulse particle after stretching, For the The impulse particle in The location at the moment, is the impulse distribution function around the impulse particle, is the nuclear radius of the impulse particle, for The derivative of is any position around the impulse particle.

[0120] Use Euler integration to update the position of the carbon dioxide spray particles, calculated as follows:

[0121]

[0122] in, For the The carbon dioxide particles in The location at the moment, is an integer and , is the total number of carbon dioxide particles, For the The carbon dioxide particles in The location at the moment, For the The carbon dioxide particles in The speed of time, is the time step.

[0123] Then the carbon dioxide particles are directly rendered on the GPU to obtain the carbon dioxide simulation results, such as Figure 4 shown.

[0124] In the above steps, only the particle initialization is implemented on the CPU memory side, and the other steps are completed on the GPU device side. Therefore, the simulation method has high computational efficiency and can achieve real-time.

[0125] The serial numbers of the above embodiments of the present invention are only for description and do not represent the advantages or disadvantages of the embodiments.

[0126] In the above embodiments of the present invention, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0127] 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 spraying of a marine carbon dioxide fire extinguisher, characterized in that: include: Physically modeling the carbon dioxide spray based on an impulse equation, wherein the impulse equation includes an impulse convection term and an impulse stretch term; Solving the impulse convection term to obtain the updated position of the impulse particle includes: The impulse convection term is solved by using Euler integral to obtain the position change model of the impulse particle in the corresponding thread, and the first The updated position of the impulse particle, is an integer and , is the total number of impulse particles, calculated as follows: in, For the said The impulse particle in The location at the moment, For the said The impulse particle in The location at the moment, is the time step, For the first The impulse particle is The speed of the moment; Solving the impulse stretching term to obtain the impulse of the impulse particle after stretching; Calculating the velocity of the carbon dioxide particle according to the updated position of the impulse particle and the impulse of the impulse particle after stretching; Obtaining an updated position of the carbon dioxide particle according to the speed of the carbon dioxide particle; Rendering is performed according to the updated positions of the carbon dioxide particles to obtain simulation results.

2. The method for simulating spraying of a marine carbon dioxide fire extinguisher according to claim 1, characterized in that: The impulse equation is calculated as follows: in, is the impulse, For speed, For time, is the canonical variable, is the divergence operator, is the impulse convection term, is the impulse stretch term.

3. The method for simulating spraying of a marine carbon dioxide fire extinguisher according to claim 1, characterized in that: The step of solving the impulse stretching term to obtain the impulse of the impulse particle after stretching includes: When the impulse particle is at an initial position, a frame axis is established with the impulse particle as the origin, the frame axes include a first axis, a second axis and a third axis which are perpendicular to each other, the first axis has the same direction as the velocity of the impulse particle, and the distance from the endpoint of the frame axis to the impulse particle is equal to the minimum spacing when the particle is initialized; Calculate in At the moment, The endpoint positions of the frame axes of the impulse particles, is an integer and , is the total number of impulse particles; According to the said At the time, the The endpoint position of the frame axis of the impulse particle is calculated At the time, the The deformation of the frame axis of the impulse particle, and updating the first impulse particles, and obtain the At the time, the The stretched impulse of an impulse particle.

4. The method for simulating spraying of a marine carbon dioxide fire extinguisher according to claim 3, characterized in that: The calculation is in At the moment, The endpoint positions of the frame axes of the impulse particles are calculated as follows: in, and In the At the time, the The impulse particle The two end positions of the axis, , For the said The impulse particle is The location at the moment, is the minimum spacing when the particles are initialized, For the said The impulse particle Unit direction of the axis.

5. The method for simulating spraying of a marine carbon dioxide fire extinguisher according to claim 3, characterized in that: According to the said At the time, the The endpoint position of the frame axis of the impulse particle is calculated At the time, the The deformation of the frame axis of the impulse particle, and updating the first impulse particles, and obtain the At the time, the The stretched impulse of an impulse particle is calculated as follows: in, and In the At the time, the The impulse particle The two end positions of the axis, , For the said At the time, the The impulse of the impulse particle after stretching, For the said The impulse particle is The impulse before the moment is updated, is the deformation matrix, is the rotation matrix obtained by polar decomposition of the deformation matrix, is the scaling matrix obtained by polar decomposition of the deformation matrix, is the time step.

6. The method for simulating spraying of a marine carbon dioxide fire extinguisher according to claim 1, characterized in that: The speed of the carbon dioxide particle is calculated according to the updated position of the impulse particle and the impulse of the impulse particle after stretching, and is calculated in the following manner: in, The carbon dioxide particles are The location at the moment, for The corresponding carbon dioxide particles are The speed of time, is the impulse particle in the The location at the moment, is the total number of impulse particles, For the said At the time, the The impulse of the impulse particle after stretching, For the said The impulse particle in The location at the moment, is the impulse distribution function around the impulse particle, is the nuclear radius of the impulse particle, for The derivative of is any position around the impulse particle.

7. The method for simulating spraying of a marine carbon dioxide fire extinguisher according to claim 1, characterized in that: The updated position of the carbon dioxide particle is obtained according to the speed of the carbon dioxide particle, and is calculated in the following manner: in, For the The carbon dioxide particles in The location at the moment, is an integer and , is the total number of carbon dioxide particles, For the said The carbon dioxide particles in The location at the moment, For the said The carbon dioxide particles in the The speed of time, is the time step.