Visualization method, device, computer equipment and storage medium for energy storage cabinet

The energy storage cabinet model is generated through cyclic calculation and displayed visually, which solves the problems of complex structure of energy storage cabinet and low modeling efficiency, and improves the interaction and understanding between users and the energy storage cabinet model.

CN118279517BActive Publication Date: 2024-09-10HANGZHOU INTELLINE TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410714013.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-06-04
Publication Date
2024-09-10
Estimated Expiration
2044-06-04

AI Technical Summary

Technical Problem

The structure of existing energy storage cabinets is complex, making it difficult for non-professionals to understand its structure and working principles. Moreover, existing modeling methods are inefficient and fail to effectively improve the understandability of energy storage cabinets.

Method used

Provide a visualization method by obtaining the preset battery cluster model and the anchor point coordinates of the battery model for cyclic calculation, generate an energy storage cabinet model, and determine the target model for visual display when a click event is detected, improving user interaction with energy storage Cabinet model interactivity and modeling efficiency.

Benefits of technology

It effectively improves the modeling efficiency of energy storage cabinets and the user's ability to understand the structure of the energy storage cabinet model, lowers the entry barrier, and enables non-professionals to analyze the working status of energy storage cabinets more intuitively.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118279517B
    Figure CN118279517B
Patent Text Reader

Abstract

The present application relates to a visualization method, device, computer equipment and storage medium for energy storage cabinets. The method includes: obtaining a preset battery cluster model, and performing cyclic calculation based on the anchor point coordinates of the battery cluster model to obtain an energy storage cabinet model composed of multiple battery cluster models; wherein each battery cluster model includes multiple battery models, and the battery model is obtained by cyclic calculation based on the origin coordinates of the corresponding battery cluster model; when a click event for the energy storage cabinet model is detected, determining the target model corresponding to the click event; wherein the target model is at least one of the battery cluster model or the battery model; and visually displaying the target model in response to the click event. The use of this method can improve the efficiency of energy storage cabinet modeling.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of energy storage battery management and control, and in particular to a visualization method, device, computer equipment and storage medium for an energy storage cabinet. Background Art

[0002] Energy storage cabinet is a device that can store electrical energy. It can store electrical energy and release it for power supply when needed. It is usually used to provide backup power and stabilize grid voltage. The structure of common energy storage cabinets is generally more complicated. In order to provide sufficient electrical energy and ensure working efficiency, it generally contains multiple battery packs, inverters, charge and discharge controllers, communication controllers and other equipment.

[0003] The structure of the existing energy storage cabinet is relatively complicated, which is not conducive to non-professionals to understand the structural characteristics and working principles of the energy storage cabinet, which also leads to a high entry threshold and is not friendly to non-professionals. Furthermore, if the comprehensibility of the energy storage cabinet structure is to be improved, it is usually considered to model the energy storage cabinet, and the modeling method in the prior art is usually to build a corresponding sub-model for each model in the energy storage cabinet model, which is relatively inefficient.

[0004] Currently, no effective solution has been proposed for the problem of low efficiency in modeling energy storage cabinets in the prior art. Summary of the invention

[0005] Based on this, it is necessary to provide a visualization method, device, computer equipment and storage medium for energy storage cabinets in order to solve the above technical problems.

[0006] In a first aspect, the present application provides a visualization method for an energy storage cabinet. The method comprises:

[0007] Obtain a preset battery cluster model, and perform cyclic calculation based on the anchor point coordinates of the battery cluster model to obtain an energy storage cabinet model composed of multiple battery cluster models; wherein each battery cluster model includes multiple battery models, and the battery model is obtained by cyclic calculation based on the origin coordinates of the corresponding battery cluster model;

[0008] When a click event for the energy storage cabinet model is detected, a target model corresponding to the click event is determined; wherein the target model is at least one of a battery cluster model or a battery model;

[0009] The target model is visualized in response to the click event.

[0010] In one embodiment, a cyclic calculation is performed based on the anchor point coordinates of the battery cluster model to obtain an energy storage cabinet model composed of multiple battery cluster models; wherein each battery cluster model includes multiple battery models, and the battery model is obtained by cyclic calculation based on the origin coordinates of the corresponding battery cluster model, including:

[0011] The energy storage cabinet model is obtained by performing a cyclic calculation based on the anchor point coordinates of the battery cluster model and the first-level number carried by the battery cluster model, wherein the first-level number corresponds one-to-one to the battery cluster model, and the first-level number obeys a preset first-level numbering rule; the battery model is obtained by performing a cyclic calculation based on the origin coordinates of the corresponding battery cluster model and the second-level number carried by the battery model, wherein the second-level number corresponds one-to-one to the battery model, and the second-level number obeys a preset second-level numbering rule; the second-level number of the battery model corresponds to the first-level number of the battery cluster model corresponding to the battery model.

[0012] In one embodiment, the anchor point coordinates include x-axis coordinates, y-axis coordinates, and z-axis coordinates; the anchor point coordinates of the battery cluster model and the preset battery cluster model number are cyclically calculated to obtain an energy storage cabinet model composed of multiple battery cluster models, including:

[0013] Battery cluster coordinate calculation step: obtaining a battery cluster arrangement rule preset in a battery cluster model, and obtaining a first direction arrangement rule based on the battery cluster arrangement rule;

[0014] Determine the current first-level number among all the first-level numbers, and calculate the first direction coordinates of the battery cluster model corresponding to the current first-level number based on the current first-level number and the first direction arrangement rule, wherein the first direction coordinates are based on the x-axis coordinates;

[0015] A second direction arrangement rule is obtained based on the battery cluster arrangement rule, wherein the first direction and the second direction are perpendicular to each other;

[0016] The second direction coordinates of the battery cluster model corresponding to the current first-level number are calculated based on the current first-level number and the second direction arrangement rule, wherein the second direction coordinates are based on the y-axis coordinates;

[0017] Repeat the battery cluster coordinate calculation steps until the battery cluster direction coordinates corresponding to all battery cluster models are calculated, and arrange the corresponding battery cluster models based on the battery cluster direction coordinates to obtain the energy storage cabinet model, wherein the third direction coordinate of each battery cluster model is equal to the z-axis coordinate, and the battery cluster direction coordinates include the first direction coordinate, the second direction coordinate and the third direction coordinate corresponding to each battery cluster model.

[0018] In one embodiment, the origin coordinates include x-axis coordinates, y-axis coordinates, and z-axis coordinates; after obtaining a preset battery cluster model and performing a cyclic calculation through the anchor coordinates of the battery cluster model and the preset serial number of the battery cluster model, the method further includes:

[0019] Battery coordinate calculation steps: obtaining the battery arrangement rule preset by the battery model, and obtaining the third direction arrangement rule based on the battery arrangement rule;

[0020] Determine the current secondary number among all secondary numbers, and calculate the third direction coordinates of the battery model corresponding to the current secondary number based on the current secondary number and the third direction arrangement rule, wherein the third direction coordinates are based on the z-axis coordinates;

[0021] Repeat the battery coordinate calculation steps until the battery direction coordinates corresponding to all battery models are calculated, and arrange the corresponding battery models based on the battery direction coordinates, wherein the second direction coordinate of each battery model is equal to the y-axis coordinate corresponding to the battery model; the first direction coordinate of the battery model is obtained by the x-axis coordinate corresponding to the battery model and the preset geometric parameters of the battery model; the battery direction coordinates include the first direction coordinate, the second direction coordinate and the third direction coordinate corresponding to each battery model.

[0022] In one embodiment, when a click event on an energy storage cabinet model is detected, determining a target model corresponding to the click event includes:

[0023] Convert the coordinates of the click event from the screen space to the world space to obtain an indication signal in the world space;

[0024] All sub-models in the energy storage cabinet model are traversed, and a target model intersecting with the indication signal is determined in the sub-model, wherein the sub-model includes a battery model and a battery cluster model.

[0025] In one embodiment, visually displaying the target model in response to a click event includes:

[0026] When it is detected that the target model is a battery cluster model, a first-level number corresponding to the target model is obtained, and the battery cluster direction coordinates corresponding to the target model are obtained through the first-level number, and the battery cluster direction coordinates are used as the starting point coordinates;

[0027] Based on the preset animation rules, the end point coordinates of the battery cluster model are obtained by the third direction coordinates of the starting point coordinates and the preset third dynamic multiple;

[0028] Complete the visualization of the battery cluster model based on the starting point coordinates and the end point coordinates of the battery cluster model;

[0029] or,

[0030] When it is detected that the target model is a battery model, the secondary number corresponding to the target model is obtained, the battery direction coordinates corresponding to the target model are obtained through the secondary number, and the battery direction coordinates are used as the starting point coordinates;

[0031] Based on the animation rule, the end point coordinates of the battery model are obtained by the second direction coordinates of the starting point coordinates and the preset second dynamic multiple;

[0032] The battery model is visualized based on the starting point coordinates and the end point coordinates of the battery model.

[0033] In one embodiment, visually displaying the target model in response to a click event includes:

[0034] Obtaining a preset transparency setting, wherein the transparency setting includes a first transparency and a second transparency, and the second transparency is less than the first transparency;

[0035] The transparency of the target model is set to the first transparency, and the transparency of the models other than the target model is set to the second transparency.

[0036] In a second aspect, the present application also provides a visualization device for an energy storage cabinet. The device includes:

[0037] A calculation module, used to obtain a preset battery cluster model, and perform cyclic calculation based on the anchor point coordinates of the battery cluster model to obtain an energy storage cabinet model composed of multiple battery cluster models; wherein each battery cluster model includes multiple battery models, and the battery model is obtained by cyclic calculation based on the origin coordinates of the corresponding battery cluster model;

[0038] A detection module, configured to determine a target model corresponding to a click event when a click event on an energy storage cabinet model is detected; wherein the target model is at least one of a battery cluster model and a battery model;

[0039] The generation module is used to visualize the target model in response to a click event.

[0040] In a third aspect, the present application further provides a computer device. The computer device includes a memory and a processor, the memory stores a computer program, and the processor implements the following steps when executing the computer program:

[0041] Obtain a preset battery cluster model, and perform cyclic calculation based on the anchor point coordinates of the battery cluster model to obtain an energy storage cabinet model composed of multiple battery cluster models; wherein each battery cluster model includes multiple battery models, and the battery model is obtained by cyclic calculation based on the origin coordinates of the corresponding battery cluster model;

[0042] When a click event for the energy storage cabinet model is detected, a target model corresponding to the click event is determined; wherein the target model is at least one of a battery cluster model or a battery model;

[0043] The target model is visualized in response to the click event.

[0044] In a fourth aspect, the present application further provides a computer-readable storage medium. The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the following steps are implemented:

[0045] Obtain a preset battery cluster model, and perform cyclic calculation based on the anchor point coordinates of the battery cluster model to obtain an energy storage cabinet model composed of multiple battery cluster models; wherein each battery cluster model includes multiple battery models, and the battery model is obtained by cyclic calculation based on the origin coordinates of the corresponding battery cluster model;

[0046] When a click event for the energy storage cabinet model is detected, a target model corresponding to the click event is determined; wherein the target model is at least one of a battery cluster model or a battery model;

[0047] The target model is visualized in response to the click event.

[0048] The above-mentioned visualization method, device, computer equipment and storage medium for the energy storage cabinet first perform cyclic calculations through the anchor point coordinates of the battery cluster model based on a single battery cluster model to obtain an energy storage cabinet model composed of multiple battery cluster models. Further, each battery cluster model includes multiple battery models, and similar to the modeling principle of the battery cluster model, the modeling of the battery model is also based on a single battery model, which is obtained by cyclic calculations through the anchor point coordinates. When a click event for the energy storage cabinet model is detected, the target model corresponding to the click event is determined, and then the target model is visualized in response to the click event. Through the present application, the modeling efficiency of the energy storage cabinet can be effectively improved, and the interactivity between the user and the energy storage cabinet model is improved, which is conducive to the user's understanding of the energy storage cabinet model structure. BRIEF DESCRIPTION OF THE DRAWINGS

[0049] Figure 1 A schematic diagram of the structure of an energy storage cabinet model in one embodiment;

[0050] Figure 2 is a schematic flow chart of a visualization method for an energy storage cabinet in one embodiment;

[0051] Figure 3 A schematic diagram of a structure of multiple battery models in a battery cluster in one embodiment;

[0052] Figure 4 A schematic diagram of battery cluster model interaction in one embodiment;

[0053] Figure 5 A schematic diagram of battery model interaction in one embodiment;

[0054] Figure 6 A visualization device for an energy storage cabinet in one embodiment;

[0055] Figure 7 FIG. 4 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION

[0056] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0057] Figure 1 This is a schematic diagram of the energy storage cabinet model structure in the embodiment of the present application. In some application scenarios, the energy storage cabinet generally includes multiple battery clusters, inverters, charge and discharge controllers, communication controllers and other equipment, among which the battery clusters are the main components, and a large amount of electrical energy is stored or released through multiple battery clusters. The energy storage cabinet generally includes multiple battery clusters (battery packs), each battery cluster includes multiple batteries, and the battery clusters and batteries in the energy storage cabinet are arranged according to preset arrangement rules.

[0058] In one embodiment, Figure 2 As shown, a visualization method for an energy storage cabinet is provided, comprising the following steps:

[0059] Step S210, obtaining a preset battery cluster model, and performing a cyclic calculation based on the anchor point coordinates of the battery cluster model to obtain an energy storage cabinet model composed of multiple battery cluster models; wherein each battery cluster model includes multiple battery models, and the battery model is obtained by performing a cyclic calculation based on the origin coordinates of the corresponding battery cluster model.

[0060] Among them, first obtain a single battery cluster model, and the battery cluster model should be a completed model. In practical applications, the model is usually built on modeling software such as blender 3D. After obtaining the preset single battery cluster model, determine the anchor point coordinates of the battery cluster model. The anchor point coordinates can be pre-set by relevant technical personnel and are usually taken as a point on the above-mentioned preset battery cluster model. In some preferred embodiments, since the anchor point coordinates are mainly used for subsequent battery cluster models and battery model coordinate calculations, in order to facilitate subsequent calculations, the anchor point coordinates can be selected at the vertex of the above-mentioned battery cluster model. The battery cluster model can be in the shape of a cuboid, a cylinder, etc., and different anchor point coordinates that are easy to calculate can be selected accordingly. This application will not go into details here. It should be noted that when cyclically calculating multiple battery cluster models, in order to ensure the calculation speed, the anchor point coordinates used for each battery cluster model are usually the same.

[0061] Further, after obtaining a single preset battery cluster model and anchor point coordinates, a loop calculation is performed to render all battery cluster models, and all battery cluster models are placed in corresponding positions based on the anchor point coordinates, thereby realizing an energy storage cabinet model composed of multiple battery cluster models. Specifically, in some embodiments, rendering multiple battery cluster models based on a battery cluster model includes copying based on the above-mentioned preset battery cluster model to obtain the required multiple battery cluster models, and then arranging all battery cluster models one by one based on the anchor point coordinates, and completing the construction of the energy storage cabinet model through multiple battery cluster models. In other embodiments, rendering multiple battery cluster models based on a battery cluster model includes copying once based on the above-mentioned point battery cluster model to generate a corresponding second battery cluster model, and then determining the coordinates corresponding to the generated second battery cluster model according to the anchor point coordinates and arranging them; then copying once again according to the above-mentioned preset battery cluster model to generate a corresponding third battery cluster model, repeating the above steps until all the required multiple battery cluster models are generated and the construction of each battery cluster model is completed. It can be understood that this embodiment mainly describes that the energy storage cabinet model is composed of multiple battery cluster models. Other models in the energy storage cabinet, such as inverters, charge and discharge controllers and other components, are not related to the cycle calculation of the battery cluster model and can be modeled in advance or built after the battery cluster modeling is completed.

[0062] Similar to the construction of a battery cluster model, when establishing multiple battery models, a preset battery model is first obtained, and then the battery model is used to perform a cyclic calculation based on the origin coordinates to obtain the remaining multiple battery models required. Specifically, in some embodiments, the generation of the battery cluster model described above can be similar to that of the battery cluster model, where multiple battery models are first generated based on a preset battery model, and then the multiple battery models are arranged; or only one battery model is generated at a time based on a preset battery model, and after the generated battery models are arranged, the next battery model is generated. In practical applications, a battery cluster is usually generated first, and then the corresponding batteries in the battery cluster are generated. Different from the generation of a battery cluster model, the origin coordinates corresponding to each battery model in a battery cluster are coordinates on the battery cluster model corresponding to the battery model. In order to facilitate calculation, the coordinates of the upper left vertex of each battery cluster model can be taken as the origin coordinates of each battery model corresponding to the battery cluster model.

[0063] Step S220, when a click event for the energy storage cabinet model is detected, determining a target model corresponding to the click event; wherein the target model is at least one of a battery cluster model and a battery model.

[0064] Among them, the above-mentioned click event is usually in the process of interaction between the user and the energy storage cabinet model after the energy storage cabinet model is built, specifically refers to the user clicking or selecting the target model to be interacted with by clicking the mouse or pointer. In this embodiment, when the click event for the energy storage cabinet model is detected, the target position clicked by the user is accurately captured in combination with the real-time coordinates of the mouse or pointer, the position information of the current camera window, and the layout of the model points, and the target model is further determined according to the target position. Among them, it can be understood by those skilled in the art that the position information of the above-mentioned camera window usually refers to the position information of the virtual camera window in the inspection space, and the camera position information is provided by the GPU by default, and the relevant data of the above-mentioned model point layout can be included in the model file exported by the modeling software, and the model point layout usually refers to the size, scaling and position information of the model in 3D space. The above-mentioned target model can be a battery cluster model or a battery model. After the user clicks or selects the target model, it can interact with the model, and the data information, parameter settings, etc. corresponding to the model can also be displayed.

[0065] Step S230: Visually display the target model in response to the click event.

[0066] After the target model is determined, the target model is visualized. The visualization method includes but is not limited to displaying the parameter settings or real-time data status corresponding to the target model; generating the motion trajectory animation of the target model through geometric calculation based on the preset motion rules; zooming in on the target model, etc.

[0067] Through step S210 to step S230, the anchor point coordinates of the preset single battery cluster model are used for loop calculation to obtain an energy storage cabinet model composed of multiple battery cluster models, and each battery cluster model includes multiple battery models. Similar to the principle of generating multiple battery cluster models, the generation of multiple battery models is obtained by loop calculation of the origin coordinates. The present application can effectively improve the modeling efficiency, especially when faced with multiple repeated and identical models, the method provided in the present application can quickly complete the establishment and orderly arrangement of multiple models. Furthermore, the present embodiment also provides interaction with the energy storage cabinet model. When a click event is detected, the target model is visualized in response to the click event, thereby vividly displaying the various structures of the energy storage cabinet and the corresponding related parameters, so that the user can more intuitively analyze the working status of the energy storage cabinet.

[0068] In one embodiment, the method further comprises:

[0069] The energy storage cabinet model is obtained by performing cyclic calculation based on the anchor point coordinates of the battery cluster model and the primary number carried by the battery cluster model, wherein the primary number corresponds to the battery cluster model one-to-one, and the primary number obeys the preset primary numbering rule; the battery model is obtained by performing cyclic calculation based on the origin coordinates of the corresponding battery cluster model and the secondary number carried by the battery model, wherein the secondary number corresponds to the battery model one-to-one, and the secondary number obeys the preset secondary numbering rule; the secondary number of the battery model corresponds to the primary number of the battery cluster model corresponding to the battery model.

[0070] Specifically, in this embodiment, each battery cluster model carries a first-level number, a corresponding first-level number is set for each battery cluster model, and each battery cluster model has a one-to-one correspondence with the first-level number. The first-level numbering is subject to the first-level numbering rules, which include but are not limited to setting the first-level numbers corresponding to the battery cluster models in a sequentially increasing form such as 1, 2, 3, etc. In practical applications, the arrangement of battery cluster models in an energy storage cabinet model is mostly in the form of multiple rows and columns, that is, n×m (n rows and m columns). Considering the computational efficiency, the corresponding first-level numbers can be set for the battery cluster models in a top-to-bottom and left-to-right order.

[0071] Further, each battery cluster model includes multiple battery models, each battery model carries a one-to-one corresponding secondary number, and the secondary number also obeys the preset secondary numbering rule, which includes but is not limited to setting the secondary number corresponding to the battery model in sequence, such as 1, 2, 3... in a sequentially increasing form. Similar to the battery cluster model, the arrangement of the battery models in a battery cluster model usually has multiple rows and columns, that is, in the form of x×y (x rows and y columns). Considering the calculation efficiency, the corresponding secondary number can be set for the battery model in the order from top to bottom and from left to right. In addition, the secondary number of the battery model corresponds to the primary number of the battery cluster model corresponding to the battery model, such as the fifth battery model in the second battery cluster model, and its secondary number should be: 2-5, and so on. It can be understood that in actual applications, relevant technicians can change the setting rules of the primary number and the secondary number according to actual needs. Through this embodiment, corresponding numbers can be set for the battery cluster model and the battery model, thereby laying the foundation for the subsequent automatic calculation of the coordinates of the model based on the number and the anchor point coordinates.

[0072] In summary, the present embodiment provides a method for automatically calculating and arranging multiple battery cluster models based on anchor point coordinates and primary numbering, and a method for automatically calculating and arranging multiple battery models based on origin coordinates and secondary numbering, specifically: each battery cluster model carries a one-to-one corresponding number, and different numbers are used to distinguish different battery cluster models. The number can be set by relevant technical personnel according to actual needs. In practical applications, in order to comprehensively consider the use effect of the numbering and the efficiency of numbering generation, it is usually set in sequence to 1, 2, 3... and so on. In summary, after obtaining a preset battery cluster model, anchor point coordinates, and a preset battery cluster model numbering rule, according to a single battery cluster model, a cyclic calculation is performed based on the anchor point coordinates and the preset numbering, and all battery cluster models are rendered, and all battery cluster models are placed at the corresponding positions of the energy storage cabinet model according to the corresponding coordinate information, and the energy storage cabinet model is composed of multiple battery cluster models. Specifically, in some embodiments, rendering multiple battery cluster models based on a battery cluster model includes: duplicating based on the above-mentioned preset battery cluster model to obtain the required multiple battery cluster models, and at the same time, setting and generating corresponding numbers for each battery cluster model in turn, and further calculating the corresponding coordinates of each battery cluster model through different numbers and anchor point coordinates, arranging each battery cluster model based on the coordinates of the battery cluster model, and completing the construction of multiple battery cluster models. In other embodiments, rendering multiple battery cluster models based on a battery cluster model includes: duplicating once based on the above-mentioned preset battery cluster model to generate a corresponding second battery cluster model, and at the same time, the generated second battery cluster model is set with a corresponding number, and the corresponding coordinates of the generated second battery cluster model are calculated according to the number and anchor point coordinates, and arranged; and then duplicating once again according to the above-mentioned preset battery cluster model to generate a corresponding third battery cluster model, and repeating the above steps until all the required multiple battery cluster models are generated and the construction of each battery cluster model is completed. It can be understood that this embodiment mainly describes that the energy storage cabinet model is composed of multiple battery cluster models. Other models in the energy storage cabinet, such as inverters, charge and discharge controllers and other components, are not related to the cycle calculation of the battery cluster model and can be modeled in advance or built after the battery cluster modeling is completed.

[0073] Similar to the construction of a battery cluster model, when establishing multiple battery models, a preset battery model is first obtained, and then the battery model is used to perform a cyclic calculation based on the battery model number and the origin coordinates to obtain the remaining multiple battery models required. Specifically, in some embodiments, the generation of the battery cluster model described above can be similar to that of the battery cluster model, where multiple battery models are first generated based on a preset battery model, and then the multiple battery models are arranged; or only one battery model can be generated at a time based on a preset battery model, and after the generated battery models are arranged, the next battery model is generated. In practical applications, a battery cluster is usually generated first, and then the corresponding batteries in the battery cluster are generated. Different from the generation of a battery cluster model, the origin coordinates corresponding to each battery model in a battery cluster are coordinates on the battery cluster model corresponding to the battery model. In order to facilitate calculation, the coordinates of the upper left vertex of each battery cluster model can be taken as the origin coordinates of each battery model corresponding to the battery cluster model.

[0074] In one embodiment, the anchor point coordinates include an x-axis coordinate, a y-axis coordinate, and a z-axis coordinate, and the method further includes:

[0075] Battery cluster coordinate calculation step: obtaining a battery cluster arrangement rule preset in a battery cluster model, and obtaining a first direction arrangement rule based on the battery cluster arrangement rule;

[0076] Determine the current first-level number among all the first-level numbers, and calculate the first direction coordinates of the battery cluster model corresponding to the current first-level number based on the current first-level number and the first direction arrangement rule, wherein the first direction coordinates are based on the x-axis coordinates;

[0077] A second direction arrangement rule is obtained based on the battery cluster arrangement rule, wherein the first direction and the second direction are perpendicular to each other;

[0078] The second direction coordinates of the battery cluster model corresponding to the current first-level number are calculated based on the current first-level number and the second direction arrangement rule, wherein the second direction coordinates are based on the y-axis coordinates;

[0079] Repeat the battery cluster coordinate calculation steps until the battery cluster direction coordinates corresponding to all battery cluster models are calculated, and arrange the corresponding battery cluster models based on the battery cluster direction coordinates to obtain the energy storage cabinet model, wherein the third direction coordinate of each battery cluster model is equal to the z-axis coordinate, and the battery cluster direction coordinates include the first direction coordinate, the second direction coordinate and the third direction coordinate corresponding to each battery cluster model.

[0080] Specifically, the coordinates of the corresponding battery cluster are calculated by the above battery cluster arrangement rules. The first-level arrangement rules include the first direction arrangement rules and the second direction arrangement rules. The first direction arrangement rules and the second direction arrangement rules are for the calculation of coordinates in different directions. The coordinates in different directions of the same battery cluster model can be calculated separately. Further, the above x-axis coordinates are the coordinates of the anchor point coordinates on the x-axis, the y-axis coordinates are the coordinates of the anchor point coordinates on the y-axis, and the z-axis coordinates are the coordinates of the anchor point coordinates on the z-axis.

[0081] When calculating the coordinates of the battery cluster model, the first direction coordinates of the current battery cluster model corresponding to the first-level number in the first direction are first calculated by the first direction arrangement rule. The calculation method of the first direction coordinates includes taking the remainder of n according to the number of the battery cluster model, wherein n is the number of a row of battery cluster models preset in the energy storage cabinet model, and then taking the x-axis coordinate as a reference, the first direction coordinates of the current battery cluster model are obtained by comprehensively calculating the remainder of n. For example, when the battery cluster model in the energy storage cabinet model is five rows and two columns, and the number of the current battery cluster model obtained is 5, and the x-axis coordinate is 0, the coordinates of the current battery cluster model numbered 5 are calculated, and at this time n is taken as 2, and the remainder is 1. On the basis of the x-axis coordinate (i.e., 0), the length of the bottom edge of the battery cluster model is increased to obtain the first direction coordinates of the above-mentioned current battery cluster model in the first direction.

[0082] Then, the second direction coordinates of the current battery cluster model corresponding to the first-level number in the second direction are calculated by the second direction arrangement rule, and the first direction and the second direction are perpendicular to each other. The calculation method of the second direction coordinates includes dividing the number of the battery cluster model by n and rounding down. Similarly, n is the number of a row of battery cluster models preset in the energy storage cabinet model, and then taking the y-axis coordinate as a reference, the second direction coordinates of the current battery cluster model are calculated by comprehensively rounding the result of n. For example, when the battery cluster model in the energy storage cabinet model is five rows and two columns, and the number of the current battery cluster model obtained is 5, and the y-axis coordinate is 0, the coordinates of the current battery cluster model numbered 5 are calculated. At this time, n is 2, 5 is divided by 2 and rounded down to 3. On the basis of the y-axis coordinate (i.e., 0), the height of the battery cluster model is increased to obtain the second direction coordinates of the above-mentioned current battery cluster model in the second direction.

[0083] Repeat the above steps until the coordinates of all battery cluster models in the first direction and the second direction are calculated, and the corresponding battery cluster models are arranged based on the coordinates to obtain the energy storage cabinet model. It should be further explained that the third direction coordinate of each battery cluster model is equal to the preset z-axis coordinate. In practical applications, in order to facilitate calculation, the z-axis coordinate in the anchor point coordinate can be taken as 0. The above battery cluster direction coordinates are obtained through the above first direction coordinates, second direction coordinates and third direction coordinates.

[0084] This embodiment can automatically calculate and arrange the coordinates corresponding to each battery cluster model based on the preset first-level number of the battery cluster model, so that each battery cluster model can be efficiently arranged at a corresponding position, greatly improving the efficiency of energy storage cabinet modeling.

[0085] In one embodiment, the origin coordinates include x-axis coordinates, y-axis coordinates, and z-axis coordinates, and the method further includes:

[0086] Battery coordinate calculation steps: obtaining the battery arrangement rule preset by the battery model, and obtaining the third direction arrangement rule based on the battery arrangement rule;

[0087] Determine the current secondary number among all secondary numbers, and calculate the third direction coordinates of the battery model corresponding to the current secondary number based on the current secondary number and the third direction arrangement rule, wherein the third direction coordinates are based on the z-axis coordinates;

[0088] Repeat the battery coordinate calculation steps until the battery direction coordinates corresponding to all battery models are calculated, and arrange the corresponding battery models based on the battery direction coordinates, wherein the second direction coordinate of each battery model is equal to the y-axis coordinate corresponding to the battery model; the first direction coordinate of the battery model is obtained by the x-axis coordinate corresponding to the battery model and the preset geometric parameters of the battery model; the battery direction coordinates include the first direction coordinate, the second direction coordinate and the third direction coordinate corresponding to each battery model.

[0089] Specifically, after the battery cluster model is built, the battery model in the battery cluster model is calculated and generated. In practical applications, a battery cluster model usually includes multiple battery models, and the battery models in the battery cluster model are usually arranged in multiple rows and columns, such as Figure 3The schematic diagram of the structure of multiple battery models in a battery cluster is shown. The current secondary number is determined among all the secondary numbers, and the third direction coordinate of the current battery model corresponding to the secondary number in the third direction is calculated based on the third direction arrangement rule, and the third direction is perpendicular to the first direction and the second direction respectively. The calculation method of the third direction coordinate includes dividing the secondary number of the battery model by n and rounding down, wherein n is the number of battery models in a row preset in the current battery cluster model, and then taking the z-axis coordinate as a reference, the third direction coordinate of the current battery model is calculated by comprehensively rounding the result of n. For example, the battery models in the current battery cluster model are seven rows and two columns, and the secondary number of the current battery model obtained is 3-7 (where 3 refers to the third battery cluster model, and 7 refers to the 7th battery model in the third battery cluster model). When the z-axis coordinate is 0, the coordinate calculation of the current battery model numbered 7 is performed, at this time n is 2, 7 is divided by 2 and rounded down to get 4, and on the basis of the z-axis coordinate (i.e. 0), the length of the bottom side of the battery model is increased to obtain the third direction coordinate of the current battery model in the third direction.

[0090] Similarly, the calculation of the first direction coordinate of the battery model is based on the coordinate of the corresponding battery cluster model. The calculation of the first direction coordinate of the battery model includes taking the remainder of n according to the secondary number of the battery model. Similarly, n is the number of battery models in a row preset in the current battery cluster model, and then taking the x-axis coordinate as the reference, the first direction coordinate of the current battery model is obtained by combining the remainder of n. For example, when the battery models in the current battery cluster model are seven rows and three columns, and the secondary number of the current battery model is obtained as 3-7, the coordinate of the current battery model numbered 7 is calculated. At this time, n takes 2, and the remainder of 7 is 1. On the basis of the x-axis coordinate, the length of the bottom side of the battery model is increased to obtain the first direction coordinate of the current battery model in the first direction. And it can be understood that the second direction coordinates of the battery model are equal to the second direction coordinates of the corresponding battery cluster model, the origin coordinates in the battery model loop calculation are not completely equivalent to the anchor coordinates in the battery cluster model loop calculation, the anchor coordinates in the battery cluster model loop calculation are the anchor coordinates of the entire energy storage cabinet, and the anchor coordinates corresponding to each battery cluster model are equal, while the origin coordinates in the battery model are the coordinates on the battery cluster model corresponding to the battery model, and the origin coordinates corresponding to each battery model in a battery cluster model are the same, and the battery models in different battery cluster models have different origin coordinates. Through this embodiment, the coordinates corresponding to each battery model can be automatically calculated and arranged based on the preset secondary number of the battery model, so that each battery model can be efficiently arranged in the corresponding position, greatly improving the efficiency of energy storage cabinet modeling.

[0091] In one embodiment, the method further comprises:

[0092] Convert the coordinates of the click event from the screen space to the world space to obtain an indication signal in the world space;

[0093] All sub-models in the energy storage cabinet model are traversed, and a target model intersecting with the indication signal is determined in the sub-model, wherein the sub-model includes a battery model and a battery cluster model.

[0094] Specifically, when a click event is detected, the screen coordinates of the click event are converted into an indication signal in the world space, specifically, the screen coordinates are converted into clipping space coordinates, and then converted into an indication signal in the world space by reversing the projection matrix, wherein the click event can be a user clicking a mouse, a user pointer indication, etc., and further, the above indication signal is a ray or point in the world space in practical applications. Then, it is detected whether there is a collision between the indication signal and the model, so as to determine which target model is clicked, specifically, all sub-models in the energy storage cabinet model can be traversed, and collision detection can be performed with each model by the indication signal, so as to determine the target model indicated by the indication signal in all sub-models, wherein commonly used collision detection algorithms include ray and bounding box intersection detection, ray and triangle intersection detection, etc. And further, once the clicked target model is determined, the specific position of the click position in the model coordinate system can be calculated, which can be achieved by converting the above point in the world space into a point in the model coordinate system through the transformation matrix of the model. Through this embodiment, the target model corresponding to the click event can be effectively detected, thereby realizing the interaction between the user and the energy storage cabinet model.

[0095] In one embodiment, the method further comprises:

[0096] When it is detected that the target model is a battery cluster model, a first-level number corresponding to the target model is obtained, and the battery cluster direction coordinates corresponding to the target model are obtained through the first-level number, and the battery cluster direction coordinates are used as the starting point coordinates;

[0097] Based on the preset animation rules, the end point coordinates of the battery cluster model are obtained by the third direction coordinates of the starting point coordinates and the preset third dynamic multiple;

[0098] Complete the visualization of the battery cluster model based on the starting point coordinates and the end point coordinates of the battery cluster model;

[0099] or,

[0100] When it is detected that the target model is a battery model, the secondary number corresponding to the target model is obtained, the battery direction coordinates corresponding to the target model are obtained through the secondary number, and the battery direction coordinates are used as the starting point coordinates;

[0101] Based on the animation rule, the end point coordinates of the battery model are obtained by the second direction coordinates of the starting point coordinates and the preset second dynamic multiple;

[0102] The battery model is visualized based on the starting point coordinates and the end point coordinates of the battery model.

[0103] Specifically, when it is detected that the target model is a battery cluster model, the starting point coordinates of the battery cluster model are determined according to the primary number of the target model, wherein the starting point coordinates are the coordinates corresponding to the original position of the target model before the visualized movement.

[0104] After determining the target model, based on the preset animation rules, the end coordinates of the battery cluster model are obtained by the third direction coordinates of the starting point coordinates and the preset third dynamic multiples. The third direction is the z-axis direction, and the third dynamic multiple is a value preset by the user. It can be understood that the battery cluster model is usually in a drawer shape in the energy storage cabinet, so that it can easily accommodate multiple battery models, and the third dynamic multiple represents the distance that the battery cluster model is pulled out of the energy storage cabinet along the z-axis, which is usually 1.2. Figure 4 It is a schematic diagram of the interaction of a battery cluster model in implementation; the animation rule is to multiply the multiple obtained according to the number corresponding to the target model by the third dynamic multiple to obtain the above-mentioned end point coordinates, and the end point coordinates are the coordinates corresponding to the end of the visual movement of the target model. This embodiment uses the above-mentioned end point coordinates and starting point coordinates, combined with the three-dimensional coordinates of the camera view, and then generates trajectory animation data for the view of the target model based on geometric calculations, and renders it to a graphics application programming interface, such as a webgl interface, through a 3D engine such as threejs, thereby realizing a visual display of the battery cluster model. Specifically, the target model can transition between the starting point coordinates and the end point coordinates through existing animation control algorithms such as animation interpolation. Assuming that the starting point coordinates are (0,0,0) and the end point coordinates are (1,2,0), the difference in the x-axis is 1 (1-0), The difference of the y-axis is 2 (2-0), the difference of the z-axis is 0 (0-0), and the animation time can be set to 500ms. The position increment per millisecond is: x-axis position increment: 1 / 500ms, y-axis position increment 2 / 500ms, z-axis position increment 0 / 500ms. From this, the position per millisecond can be calculated. For example, when the movement starts from the starting point coordinates for 100ms, the x-axis position is 0+(100×1 / 500)=0.2, the y-axis position is 0+(100×2 / 500)=0.4, and the z-axis position is 0+(100×0 / 500)0.

[0105] Similarly, when it is detected that the target model is a battery model, the starting point coordinates of the battery model are determined according to the secondary number of the target model. The starting point coordinates are the coordinates corresponding to the original position of the target model before the visualized movement.

[0106] After determining the target model, the second direction coordinates of the target model are adjusted based on the animation rules through the starting point coordinates and the second dynamic multiple to obtain the end coordinates of the battery model, where the second direction is the y-axis direction. In this embodiment, the battery model is usually a flat rectangular parallelepiped placed in the battery cluster model. In order to better display and interact with the battery model, the second dynamic multiple represents the distance that the battery model is pulled upward or downward from the battery cluster model along the y-axis, which is usually 1.5. Figure 5 The interactive diagram of the battery model in one embodiment. Similarly, the animation rule is to multiply the multiple obtained according to the number corresponding to the target model by the second dynamic multiple to obtain the above-mentioned end point coordinates. The method of visualizing the battery model according to the starting point coordinates and the end point coordinates is the same as the method of visualizing the battery cluster model described above, which will not be repeated here.

[0107] This embodiment describes how to visualize the battery model and battery cluster model in this application. The method disclosed in this embodiment can effectively improve the user's sense of interaction and experience, and also facilitate non-professionals to better understand the structure of components such as energy storage cabinets, battery clusters, and batteries.

[0108] In one embodiment, the method further comprises:

[0109] Obtaining a preset transparency setting, wherein the transparency setting includes a first transparency and a second transparency, and the second transparency is less than the first transparency;

[0110] The transparency of the target model is set to the first transparency, and the transparency of the models other than the target model is set to the second transparency.

[0111] Specifically, multiple transparency settings are obtained. In this embodiment, two types of transparency are taken, namely the first transparency and the second transparency mentioned above. In practical applications, multiple transparency levels can also be set as needed. In this embodiment, the first transparency can be set to 1, and the second transparency can be set to 0.2. When the user interacts with the energy storage cabinet model, in order to highlight the target model, the transparency of the target model can be set to the first transparency, and the transparency of all other models can be set to the second transparency. And further, in order to improve the user's interactive experience, when interacting with the target model, a smooth and continuous animation of a section of camera and model motion trajectory is realized through a preset animation control algorithm. At this time, in order to ensure the continuity and authenticity of the animation, the control speed is usually set to 0.3, the acceleration of the target model movement is set to 0.2, and the above transparency adjustment is performed simultaneously when the model moves. Through a series of animation settings in this embodiment, a coherent and realistic interactive effect can be effectively achieved, and the target model is highlighted on the basis of the energy storage cabinet model, the motion trajectory of the target model and the difference between other models are effectively highlighted, and the user's interactive experience is greatly improved.

[0112] This embodiment also provides a preferred embodiment of a visualization method for an energy storage cabinet.

[0113] First, the energy storage cabinet model is modeled. Including setting the material and lighting data of each point, such as the material of the model can use the existing material basic mesh material (MeshBasicMaterial) in threejs, and the lighting data can be set to ambient light (AmbientLight); then make precise adjustments, so that the material and lighting effects of the energy storage cabinet model reach a realistic level, and finally bake out a texture map that is highly similar to the real object. Specifically, in this embodiment, the remaining components except the battery model and the battery cluster model are first built by blender3D modeling software. Then the battery model and the battery cluster model are focused on, and the glb file can be exported after the model is built. In actual applications, an energy storage cabinet model includes multiple battery cluster models, and a battery cluster model includes multiple battery models. Different from the existing method of building each battery cluster model or battery model one by one, the present application quickly calculates multiple battery cluster models and battery models through a cyclic calculation method, specifically including first obtaining a preset single battery cluster model, that is, first building a single battery cluster model in the modeling software, and exporting it as a glb file, and importing the glb file of the single battery cluster model in the subsequent model building. Then determine the anchor point coordinates. For the convenience of calculation, the anchor point coordinates are usually taken as the vertex coordinates of the battery cluster model, such as (0,0,0), and the single battery cluster model is copied to obtain multiple identical battery cluster models. The corresponding first-level number is set for each battery cluster model in the order of generation, and each battery cluster model has a one-to-one correspondence with the first-level number. Then, according to the anchor point coordinates and the first-level number corresponding to each battery cluster model, the x-axis coordinates (i.e., the first direction coordinates) and y-axis coordinates (i.e., the second direction coordinates) corresponding to the battery cluster model are calculated on the basis of the anchor point coordinates, and the battery cluster model is placed at the corresponding coordinates, thereby completing the construction of multiple battery cluster models. In actual applications, the z-axis coordinates of each battery cluster model, i.e., the third direction coordinates, are equal to the z-axis coordinates of the anchor point coordinates.

[0114] Then, similar to the cyclic calculation method of the battery cluster model mentioned above, the battery models in each battery cluster model are cyclically calculated. Specifically, a single battery model is first obtained, and the single battery model is copied to obtain multiple identical battery models, and a corresponding secondary number is set for each battery model in the order of generation. The primary number and the secondary number are in a one-to-many relationship, that is, one primary number usually corresponds to multiple secondary numbers. Then the origin coordinates corresponding to the battery model are determined. The origin coordinates are mostly a coordinate on the battery cluster model corresponding to the battery model. For the convenience of calculation, the vertex coordinates of the battery cluster model are usually taken. Then, based on the origin coordinates and the secondary number corresponding to each battery model, the z-axis coordinates (i.e., the third direction coordinates) and z-axis coordinates (i.e., the first direction coordinates) corresponding to the battery model are calculated on the basis of the origin coordinates, and the battery model is placed at the corresponding coordinates, thereby completing the construction of multiple battery models. Among them, in actual applications, the y-axis coordinates of each battery model, i.e., the second direction coordinates, are equal to the y-axis coordinates in the origin coordinates.

[0115] After the energy storage cabinet model is built and the click event is detected, the target model selected by the user is determined by combining the position information of the current camera window, the layout of the model points and the precise coordinates of the click event. Specifically, the screen coordinates of the click event are converted into coordinates in the clipping space, and then converted into rays or points in the world space by reversing the projection matrix. Then, all sub-models in the energy storage cabinet model are traversed, and collision detection between the ray and each sub-model is performed to determine the target model. The collision detection algorithm includes bounding box intersection detection, ray and triangle intersection detection, etc. Once the clicked target model is determined, the specific position of the click position in the model space can be calculated. This can be achieved by converting the point in the world space into a point in the model space through the model's transformation matrix.

[0116] Finally, after determining the target model, a series of animation control algorithms are used to achieve smooth and natural camera and model motion trajectory animation. These algorithms usually involve the calculation and adjustment of parameters such as target position, current position, speed, acceleration, etc., so as to ensure the continuity and authenticity of the animation.

[0117] It should be understood that, although the various steps in the flowcharts involved in the above-mentioned embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-mentioned embodiments can include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.

[0118] Based on the same inventive concept, the embodiment of the present application also provides a visualization device for energy storage cabinets for implementing the above-mentioned visualization method for energy storage cabinets. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme recorded in the above-mentioned method, so the specific limitations in the one or more embodiments of the visualization device for energy storage cabinets provided below can refer to the limitations of the visualization method for energy storage cabinets above, and will not be repeated here.

[0119] In one embodiment, Figure 6 As shown, a visualization device for an energy storage cabinet is provided, including: a calculation module 61, a detection module 62 and a generation module 63, wherein:

[0120] The calculation module 61 is used to obtain a preset battery cluster model, and perform cyclic calculation based on the anchor point coordinates of the battery cluster model to obtain an energy storage cabinet model composed of multiple battery cluster models; wherein each battery cluster model includes multiple battery models, and the battery model is obtained by cyclic calculation based on the origin coordinates of the corresponding battery cluster model;

[0121] A detection module 62, configured to determine a target model corresponding to a click event when a click event on an energy storage cabinet model is detected; wherein the target model is at least one of a battery cluster model and a battery model;

[0122] The generating module 63 is used to visually display the target model in response to a click event.

[0123] Specifically, a preset battery cluster model is obtained through the calculation module 61, and the anchor point coordinates of the battery cluster model and the preset number of the battery cluster model are cyclically calculated to obtain multiple energy storage cabinet models composed of battery cluster models, wherein each battery cluster model includes multiple battery models, and the battery model is obtained by cyclically calculating the origin coordinates of the corresponding battery model and the preset number of the battery model according to the calculation type of the battery cluster model. Then, the constructed energy storage cabinet model is sent to the detection module 62. When the detection module 62 detects a click event for the energy storage cabinet model, it determines the target model corresponding to the click event, and the generation module 63 visualizes the target model in response to the click event.

[0124] Each module in the above-mentioned visualization device for energy storage cabinets can be implemented in whole or in part by software, hardware and a combination thereof. Each of the above-mentioned modules can be embedded in or independent of a processor in a computer device in the form of hardware, or can be stored in a memory in a computer device in the form of software, so that the processor can call and execute operations corresponding to each of the above modules.

[0125] In one embodiment, a computer device is provided. The computer device may be a server, and its internal structure diagram may be as follows: Figure 7 As shown. The computer device includes a processor, a memory and a network interface connected through a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store energy storage cabinet visualization related data. The network interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a visualization method for an energy storage cabinet is implemented.

[0126] Those skilled in the art will understand that Figure 7 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0127] In one embodiment, a computer readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented:

[0128] Obtain a preset battery cluster model, and perform cyclic calculations through the anchor point coordinates of the battery cluster model and the preset number of the battery cluster model to obtain an energy storage cabinet model composed of multiple battery cluster models; wherein each battery cluster model includes multiple battery models, and the battery model is obtained by cyclically calculating the origin coordinates of the corresponding battery cluster model and the preset number of the battery model;

[0129] When a click event for the energy storage cabinet model is detected, a target model corresponding to the click event is determined; wherein the target model is at least one of a battery cluster model or a battery model;

[0130] The target model is visualized in response to the click event.

[0131] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties.

[0132] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetoresistive random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, etc., but are not limited to this.

[0133] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0134] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.

Claims

1. A visualization method for an energy storage cabinet, characterized in that: The method comprises: Obtain a preset battery cluster model, and perform a cyclic calculation based on the anchor point coordinates of the battery cluster model to obtain an energy storage cabinet model composed of multiple battery cluster models; wherein each battery cluster model includes multiple battery models, and the battery model is obtained by performing a cyclic calculation based on the origin coordinates of the corresponding battery cluster model; including performing a cyclic calculation based on the anchor point coordinates of the battery cluster model and the first-level number carried by the battery cluster model to obtain the energy storage cabinet model, wherein the first-level number corresponds one-to-one with the battery cluster model; the battery model is obtained by performing a cyclic calculation based on the origin coordinates of the corresponding battery cluster model and the second-level number carried by the battery model, and the second-level number corresponds one-to-one with the battery model; The method of performing cyclic calculation based on the anchor point coordinates of the battery cluster model and the primary number carried by the battery cluster model to obtain the energy storage cabinet model includes: The battery cluster coordinate calculation step includes: obtaining the battery cluster arrangement rule preset in the battery cluster model, and obtaining the first direction arrangement rule based on the battery cluster arrangement rule; determining the current first-level number among all the first-level numbers, and calculating the first direction coordinate of the battery cluster model corresponding to the current first-level number based on the current first-level number and the first direction arrangement rule, wherein the first direction coordinate is based on the x-axis coordinate; obtaining the second direction arrangement rule based on the battery cluster arrangement rule, wherein the first direction and the second direction are perpendicular to each other; and calculating the first direction coordinate corresponding to the current first-level number based on the current first-level number and the second direction arrangement rule. The second direction coordinate of the corresponding battery cluster model, wherein the second direction coordinate is based on the y-axis coordinate; repeat the battery cluster coordinate calculation step until the battery cluster direction coordinates corresponding to all the battery cluster models are calculated, and the corresponding battery cluster models are arranged based on the battery cluster direction coordinates to obtain the energy storage cabinet model, wherein the third direction coordinate of each battery cluster model is equal to the z-axis coordinate, and the battery cluster direction coordinate includes the first direction coordinate, the second direction coordinate and the third direction coordinate corresponding to each battery cluster model, wherein the anchor point coordinate includes the x-axis coordinate, the y-axis coordinate and the z-axis coordinate; When a click event for the energy storage cabinet model is detected, determining a target model corresponding to the click event; wherein the target model is at least one of the battery cluster model or the battery model; The target model is visually displayed in response to the click event.

2. The method according to claim 1, characterized in that The primary numbering complies with a preset primary numbering rule, and the secondary numbering complies with a preset secondary numbering rule; the secondary numbering of the battery model corresponds to the primary numbering of the battery cluster model corresponding to the battery model.

3. The method according to claim 2, characterized in that The origin coordinates include x-axis coordinates, y-axis coordinates and z-axis coordinates; after obtaining a preset battery cluster model and performing cyclic calculations through the anchor coordinates of the battery cluster model and the preset serial number of the battery cluster model, the method further includes: Battery coordinate calculation step: obtaining a battery arrangement rule preset in the battery model, and obtaining a third direction arrangement rule based on the battery arrangement rule; Determine a current secondary number among all the secondary numbers, and calculate the third direction coordinate of the battery model corresponding to the current secondary number based on the current secondary number and the third direction arrangement rule, wherein the third direction coordinate is based on the z-axis coordinate; Repeat the battery coordinate calculation step until the battery direction coordinates corresponding to all the battery models are calculated, and arrange the corresponding battery models based on the battery direction coordinates, wherein the second direction coordinate of each battery model is equal to the y-axis coordinate corresponding to the battery model; the first direction coordinate of the battery model is obtained by the x-axis coordinate corresponding to the battery model and the preset geometric parameters of the battery model; the battery direction coordinates include the first direction coordinate, the second direction coordinate and the third direction coordinate corresponding to each battery model.

4. The method according to claim 1, characterized in that When a click event for the energy storage cabinet model is detected, determining a target model corresponding to the click event includes: Convert the coordinates of the click event from the screen space to the world space to obtain an indication signal in the world space; All sub-models in the energy storage cabinet model are traversed, and a target model intersecting with the indication signal is determined in the sub-models, wherein the sub-models include the battery model and the battery cluster model.

5. The method according to claim 2, characterized in that: The visually displaying the target model in response to the click event includes: When it is detected that the target model is the battery cluster model, obtaining the first-level number corresponding to the target model, obtaining the battery cluster direction coordinates corresponding to the target model through the first-level number, and using the battery cluster direction coordinates as the starting point coordinates; Based on a preset animation rule, the end point coordinates of the battery cluster model are obtained by using the third direction coordinates of the starting point coordinates and a preset third dynamic multiple; Complete the visualization of the battery cluster model based on the starting point coordinates and the end point coordinates of the battery cluster model; or, When it is detected that the target model is the battery model, the secondary number corresponding to the target model is obtained, the battery direction coordinates corresponding to the target model are obtained through the secondary number, and the battery direction coordinates are used as the starting point coordinates; Based on the animation rule, the end point coordinates of the battery model are obtained by the second direction coordinates of the starting point coordinates and a preset second dynamic multiple; The visualization display of the battery model is completed based on the starting point coordinates and the end point coordinates of the battery model.

6. The method according to claim 1, characterized in that The visually displaying the target model in response to the click event includes: Obtaining a preset transparency setting, wherein the transparency setting includes a first transparency and a second transparency, and the second transparency is less than the first transparency; The transparency of the target model is set to the first transparency, and the transparency of models other than the target model is set to the second transparency.

7. A visualization device for an energy storage cabinet, characterized in that: The device comprises: A calculation module, used to obtain a preset battery cluster model, and perform a cyclic calculation based on the anchor point coordinates of the battery cluster model to obtain an energy storage cabinet model composed of multiple battery cluster models; wherein each battery cluster model includes multiple battery models, and the battery model is obtained by performing a cyclic calculation based on the origin coordinates of the corresponding battery cluster model; including performing a cyclic calculation based on the anchor point coordinates of the battery cluster model and the primary number carried by the battery cluster model to obtain the energy storage cabinet model, wherein the primary number corresponds to the battery cluster model one-to-one; the battery model is obtained by performing a cyclic calculation based on the origin coordinates of the corresponding battery cluster model and the secondary number carried by the battery model, and the secondary number corresponds to the battery model one-to-one; The method of performing cyclic calculation based on the anchor point coordinates of the battery cluster model and the primary number carried by the battery cluster model to obtain the energy storage cabinet model includes: The battery cluster coordinate calculation step includes: obtaining the battery cluster arrangement rule preset in the battery cluster model, and obtaining the first direction arrangement rule based on the battery cluster arrangement rule; determining the current first-level number among all the first-level numbers, and calculating the first direction coordinate of the battery cluster model corresponding to the current first-level number based on the current first-level number and the first direction arrangement rule, wherein the first direction coordinate is based on the x-axis coordinate; obtaining the second direction arrangement rule based on the battery cluster arrangement rule, wherein the first direction and the second direction are perpendicular to each other; and calculating the first direction coordinate corresponding to the current first-level number based on the current first-level number and the second direction arrangement rule. The second direction coordinate of the corresponding battery cluster model, wherein the second direction coordinate is based on the y-axis coordinate; repeat the battery cluster coordinate calculation step until the battery cluster direction coordinates corresponding to all the battery cluster models are calculated, and the corresponding battery cluster models are arranged based on the battery cluster direction coordinates to obtain the energy storage cabinet model, wherein the third direction coordinate of each battery cluster model is equal to the z-axis coordinate, and the battery cluster direction coordinate includes the first direction coordinate, the second direction coordinate and the third direction coordinate corresponding to each battery cluster model, wherein the anchor point coordinate includes the x-axis coordinate, the y-axis coordinate and the z-axis coordinate; A detection module, configured to determine a target model corresponding to a click event when a click event for the energy storage cabinet model is detected; wherein the target model is at least one of the battery cluster model or the battery model; A generating module is used to visually display the target model in response to the click event.

8. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 6 are implemented.

9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.