Energy storage thermal runaway ablation representation method based on Berlin noise algorithm
By generating ablation effects using the Berlin noise algorithm, the problem of overly regular ablation edges in 3D fire simulations is solved, achieving natural and realistic ablation effects and real-time rendering while reducing computational load.
Patent Information
- Application Number
- CN202511058080.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-07-30
- Publication Date
- 2025-11-14
AI Technical Summary
In the 3D fire simulation, the burn edges of the battery cell are too regular and lack a natural feel.
The ablation effect is generated using the Berlin noise algorithm. By inputting the parameters of the burning object, defining the ablation parameters, constructing the surface material matrix and multiplying it with the Berlin noise matrix, and modifying the transparency and RGB color values, the ablation effect can be made natural and faithful.
It achieves natural and faithful ablation effects, reduces CPU load, supports real-time rendering, does not rely on textures, and has variable control capabilities.
Smart Images

Figure CN120954531A_ABST
Abstract
Description
Technical Field
[0001] This invention belongs to the field of three-dimensional living simulation technology, and particularly relates to a method for representing thermal runaway ablation of energy storage based on the Berlin noise algorithm. Background Technology
[0002] 3D fire simulation is an advanced computational technique used to create virtual models of fire development and smoke diffusion. This simulation uses sophisticated mathematical algorithms to predict the behavior of fire under different environments, including how flames spread, temperature changes, the release of combustion products, and smoke flow. It considers not only the design and material properties of the building structure but also factors such as ventilation conditions, the location and intensity of the fire source.
[0003] When simulating battery cell combustion using 3D fire simulation, there is a problem that the ablation edges are too regular and lack a natural feel. Summary of the Invention
[0004] The purpose of this invention is to provide a method for representing thermal runaway ablation in energy storage based on the Berlin noise algorithm, which aims to solve the problem that the ablation edges are too regular and lack a natural feel when simulating cell combustion in three-dimensional fire.
[0005] This invention is implemented as follows: a method for representing thermal runaway ablation in energy storage based on the Berlin noise algorithm, the method comprising:
[0006] Input the parameters of the burning object and define the ablation parameters;
[0007] Construct the surface material matrix of the object, where each element is the RGBA color value of the color;
[0008] Generate a Berlin noise matrix, where the values of the elements are any values between 0 and 1;
[0009] Multiply the values of the corresponding elements in the surface material matrix and the Berlin noise matrix, and assign the result to the transparency of the elements in the surface material matrix.
[0010] Modify the transparency value and RGB color value of an element based on the transparency of the element in the surface material matrix.
[0011] Preferably, the parameters of the burning object are obtained through user upload.
[0012] Preferably, the ablation parameters include ablation intensity S, ablation edge color C, and ablation edge width W.
[0013] Preferably, the three-dimensional coordinates of the object surface are mapped to a two-dimensional UV matrix, and the values in the two directions of the matrix are determined according to the preset minimum segmentation value to obtain n and m. The surface material matrix and the Burmester noise matrix are both n*m matrices.
[0014] Preferably, in the step of modifying the transparency value and RGB color value of an element based on the transparency of the element in the surface material matrix, when the transparency of the element contained in the modified surface material matrix is lower than the first preset value S, the transparency contained in the element is set to 0.
[0015] Preferably, in the step of modifying the transparency value and RGB color value of an element based on the transparency of the element in the surface material matrix, when the transparency of the element in the modified surface material matrix is greater than S and less than S+W, the ablation edge color C is assigned to the RGB channel of the element.
[0016] Preferably, after modifying the transparency value and RGB color value of an element based on the transparency of the element in the surface material matrix, the ablation intensity S is increased.
[0017] The energy storage thermal runaway ablation representation method based on the Berlin noise algorithm provided by this invention has natural and faithful ablation effect. Based on parallel distance calculation, it can reduce CPU load, realize real-time rendering, and does not depend on textures. The effect can be controlled by variables. Attached Figure Description
[0018] Figure 1 A flowchart illustrating a method for representing thermal runaway ablation in energy storage based on the Berlin noise algorithm, provided in an embodiment of the present invention;
[0019] Figure 2 A schematic diagram of the Berlin noise matrix provided in an embodiment of the present invention;
[0020] Figure 3 This is a schematic diagram of the ablation results provided in an embodiment of the present invention;
[0021] Figure 4 This is a schematic diagram of the ablation process provided in an embodiment of the present invention. Detailed Implementation
[0022] To make the objectives, technical solutions, and advantages of this invention clearer, the invention will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the invention.
[0023] like Figure 1 The diagram shows a flowchart of a method for representing thermal runaway ablation in energy storage based on the Berlin noise algorithm, provided by an embodiment of the present invention. The method includes:
[0024] Input the parameters of the burning object and define the ablation parameters.
[0025] In this step, the burning object T is obtained by the user as a parameter. The ablation intensity S is defined, and its value is input by the user. The ablation edge color C and the ablation edge width W are defined. The ablation edge width is different for different objects. This variable is a variable value that the user can adjust.
[0026] Construct the surface material matrix of the object, where each element is the RGBA color value of the color.
[0027] In this step, we obtain the burning object T and the surface material matrix A, which has a size of n*m. Specifically, we map the three-dimensional coordinates to a two-dimensional UV matrix. Generally, the two axes of the UV matrix are in the range of 0-1. Regardless of the axis, there is a minimum subdivision value. 1 / minimum subdivision value gives n or m. Each element of the matrix is a color rgba. When the three-dimensional coordinates are mapped to the two-dimensional UV matrix, the value of each UV matrix element contains its corresponding three-dimensional coordinate value and the color value of that coordinate.
[0028] Generate a Berlin noise matrix, where the values of the elements are any values between 0 and 1.
[0029] In this step, a Berlin noise matrix B with dimensions n*m is generated. The Berlin noise matrix is generated using the Berlin noise generation algorithm. For example, a 100*100 matrix where each element has an arbitrary value between 0 and 1, converted to a grayscale image, results in a snowflake-like image where each point has no continuity with its surroundings. Using the Berlin noise generation algorithm, the generated matrix, after being converted to grayscale, shows continuity between each point and its surrounding elements, resembling a dark cloud. Figure 2 As shown, each element in the Berlin noise matrix B is an arbitrary value between 0 and 1.
[0030] Multiply the values of the corresponding elements in the surface material matrix and the Berlin noise matrix, and assign the result to the transparency of the elements in the surface material matrix.
[0031] In this step, the value of each element of the Berlin noise matrix B is multiplied by the transparency 'a' of the corresponding rgba in the surface material matrix A, and the result is assigned to 'a'.
[0032] Modify the transparency value and RGB color value of an element based on the transparency of the element in the surface material matrix.
[0033] In this step, this process is performed for each frame. When the value of 'a' in each element of matrix A is less than S, 'a' is set to 0. When the value of 'a' in each element of matrix A is less than S+W, the RGB value of C is assigned to the RGB value of that element. Then, S is incremented. In other words, the matrix generated by the Berlin noise, when converted to grayscale, resembles a cloud. The parts with 'a' values less than S are cropped out; these are the parts that have been burned. The parts with 'a' values less than S+W are the parts that are currently burning. The remaining parts are the parts that have not yet burned. The result is as follows... Figure 3 As shown.
[0034] In a specific embodiment of the present invention:
[0035] Any burning object can be divided into three parts: the burned part, the burning part, and the unburned part.
[0036] like Figure 4 As shown, the Berlin noise algorithm generates continuous noise data between 0 and 1, which can be converted into a grayscale image to resemble dark clouds.
[0037] Align the Berlin noise matrix and the object material matrix (two-dimensional matrices with consistent rows and columns), assign the value corresponding to the Berlin noise matrix at the same coordinate to the alpha value of the color at the corresponding position in the object material matrix, and assign the value 'a' corresponding to (1,1) in the Berlin noise matrix to the alpha value of the color (0.1, 0.1, 0.1, 0.1) at (1,1) in the object material matrix to obtain (0.1, 0.1, 0.1, a);
[0038] Then, for each element in the final matrix, all elements with an alpha value less than S are set to 0. An alpha value of 0 indicates transparency, meaning the element has been burned. Colors with an alpha value less than S+W are set to the color of the element currently burning.
[0039] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of the present invention should be included within the protection scope of the present invention.
Claims
1. A method for representing thermal runaway ablation in energy storage based on the Berlin noise algorithm, characterized in that, The method includes: Input the parameters of the burning object and define the ablation parameters; Construct the surface material matrix of the object, where each element is the RGBA color value of the color; Generate a Berlin noise matrix, where the values of the elements are any values between 0 and 1; Multiply the values of the corresponding elements in the surface material matrix and the Berlin noise matrix, and assign the result to the transparency of the elements in the surface material matrix. Modify the transparency value and RGB color value of an element based on the transparency of the element in the surface material matrix.
2. The method for representing thermal runaway ablation in energy storage based on the Berlin noise algorithm according to claim 1, characterized in that, The parameters of the burning object are obtained through user uploads.
3. The method for representing thermal runaway ablation in energy storage based on the Berlin noise algorithm according to claim 1, characterized in that, The ablation parameters include ablation intensity S, ablation edge color C, and ablation edge width W.
4. The method for representing thermal runaway ablation in energy storage based on the Berlin noise algorithm according to claim 1, characterized in that, The three-dimensional coordinates of the object's surface are mapped to a two-dimensional UV matrix. The values in the two directions of the matrix are determined according to the preset minimum segmentation value, resulting in n and m. The surface material matrix and the Burmester noise matrix are both n*m matrices.
5. The method for representing thermal runaway ablation in energy storage based on the Berlin noise algorithm according to claim 1, characterized in that, In the step of modifying the transparency value and RGB color value of an element based on the transparency of an element in the surface material matrix, when the transparency of an element in the modified surface material matrix is lower than the first preset value S, the transparency of the element is set to 0.
6. The method for representing thermal runaway ablation in energy storage based on the Berlin noise algorithm according to claim 1, characterized in that, In the step of modifying the transparency value and RGB color value of an element based on the transparency of an element in the surface material matrix, when the transparency of the element in the modified surface material matrix is greater than S and less than S+W, the ablation edge color C is assigned to the RGB channel of the element.
7. The method for representing thermal runaway ablation in energy storage based on the Berlin noise algorithm according to claim 1, characterized in that, After modifying the transparency and RGB color values of an element based on the transparency of the element in the surface material matrix, the ablation intensity S is increased.