Electromagnetic simulation method, device, electronic device and storage medium
By discretizing the electromagnetic space into lattice cells and using Fibonacci stacks to store electromagnetic information, the problem of high computational complexity in existing electromagnetic simulations is solved, enabling efficient electromagnetic simulation and support for changes in entity state.
Patent Information
- Application Number
- CN202310559125.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-05-17
- Publication Date
- 2024-11-15
- Estimated Expiration
- 2043-05-17
AI Technical Summary
Existing electromagnetic simulation methods have high computational complexity, consume a lot of computing resources, and lack unified and orderly management of electromagnetic quantities in space.
The electromagnetic space is discretized into multiple lattice cells, and the electromagnetic information of each lattice cell is generated by a preset entity pair. A Fibonacci stack is built in each lattice cell to store different electromagnetic intensity information under the same electromagnetic frequency band. The maximum or minimum electromagnetic intensity information can be obtained by querying the Fibonacci stack in the lattice cell.
It effectively reduces simulation complexity, computational overhead, and simulation efficiency, supports the addition, deletion, and movement of entities, and expands the application scope of electromagnetic environments.
Smart Images

Figure CN116579166B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the electromagnetic field, and in particular to an electromagnetic simulation method, device, electronic equipment and storage medium. Background Art
[0002] In complex electromagnetic simulation, it is necessary to traverse all electromagnetic quantities in space to perform electromagnetic simulation. Due to the different electromagnetic characteristics of entities themselves, different impacts on the electromagnetic environment of space, and the complex situation that there may be multiple entities in space, the existing electromagnetic simulation methods have the problems of high computational complexity and high consumption of computing resources. In addition, there is a lack of a unified and orderly management method for electromagnetic quantities in space in the existing electromagnetic simulation. Summary of the invention
[0003] The purpose of this application is to solve the technical problems mentioned in the background technology, and to provide an electromagnetic simulation method, device, electronic device and storage medium.
[0004] In the first aspect, an embodiment of the present application provides an electromagnetic simulation method, comprising: when a preset entity is placed in a preset simulation space, generating electromagnetic information of the preset entity for each cell in the preset simulation space, the electromagnetic information comprising: electromagnetic frequency band information, electromagnetic intensity information; establishing one or more Fibonacci heaps for each cell, each Fibonacci heap being used to store and access different electromagnetic intensity information under the same electromagnetic frequency band information; and performing electromagnetic simulation of the electromagnetic environment including the preset entity based on the cell and the Fibonacci heap.
[0005] In this embodiment, electromagnetic space is discretized into multiple cells, electromagnetic information of each cell is generated for a preset entity, and a Fibonacci heap is established in each cell to store and access different electromagnetic intensity information under the same electromagnetic frequency band information, so as to perform electromagnetic simulation on the electromagnetic space. It only needs to access the Fibonacci heap in each cell to obtain the maximum or minimum electromagnetic intensity information in the electromagnetic space. Compared with the existing complex simulation method that needs to traverse all data, it can effectively reduce the simulation complexity and reduce the computational overhead, thereby improving the simulation efficiency.
[0006] In one embodiment, before generating the electromagnetic information of each cell in the preset simulation space by the preset entity, it also includes: setting an initial simulation space; performing a first discretization process on the initial simulation space to obtain the preset simulation space; wherein the first discretization process is used to divide the initial simulation space into different cells.
[0007] In this embodiment, the initial simulation space is discretized and divided into different grids. Compared with simulating a continuous electromagnetic environment, using discrete grids can effectively reduce the amount of calculation and calculation overhead required for simulation and improve simulation efficiency.
[0008] In one embodiment, the electromagnetic information of the preset entity for each cell in the preset simulation space is generated, and the electromagnetic information includes: electromagnetic frequency band information and electromagnetic intensity information, including: performing a second discretization process on the electromagnetic frequency contained in the preset entity to obtain the electromagnetic frequency band information, wherein the second discretization process is used to divide the electromagnetic frequency into different frequency bands; and generating the electromagnetic intensity information based on the electromagnetic intensity of the preset entity and the distance between each cell and the preset entity.
[0009] In this embodiment, the electromagnetic frequency contained in the preset entity is discretized to obtain electromagnetic frequency band information. Each cell has corresponding electromagnetic information, namely, discrete electromagnetic frequency band information and electromagnetic intensity information, which makes it easier for the Fibonacci heap to store and access different electromagnetic information, thereby further reducing the computational overhead of electromagnetic simulation.
[0010] In one embodiment, by querying different Fibonacci heaps in each of the cells, the maximum electromagnetic intensity information or the minimum electromagnetic intensity information under different electromagnetic frequency band information in each of the cells is obtained.
[0011] In this embodiment, since the Fibonacci heap of each cell stores the maximum or minimum value of the electromagnetic intensity information under the corresponding electromagnetic frequency band information, by querying the different Fibonacci heaps in each cell, the maximum electromagnetic intensity information or minimum electromagnetic intensity information under different electromagnetic frequency band information in each cell can be quickly obtained.
[0012] In one embodiment, the electromagnetic strength information also includes: device sub-information, the device sub-information is associated with the preset entity, and the preset entity is determined by obtaining the maximum electromagnetic strength information or the minimum electromagnetic strength information of each cell and based on the device sub-information in the maximum electromagnetic strength information or the minimum electromagnetic strength information.
[0013] In this embodiment, the device sub-information is associated with the preset entity. Therefore, the specific information of the preset entity can be determined by obtaining the maximum electromagnetic intensity information, which is convenient for analyzing a series of information such as the device type of each preset entity to meet the user's usage needs.
[0014] In one embodiment, before performing electromagnetic simulation, the method further includes: setting different preset entities into different groups according to the device sub-information, and different groups are in an alliance relationship or an adversarial relationship.
[0015] In this embodiment, when performing electromagnetic simulation, the device sub-information is obtained, and the group to which each preset entity is assigned can be determined according to the device sub-information, thereby meeting the need to simulate specific relationships between different entities.
[0016] In one embodiment, the method further includes: deleting a preset entity before the change in the electromagnetic environment, and / or inserting a changed entity in the electromagnetic environment.
[0017] In this embodiment, a series of operations such as deletion, addition, update, and translation all belong to entity state changes. By performing electromagnetic simulation on the changed entities in the electromagnetic environment, the use scope of the electromagnetic environment is expanded, thereby meeting the need for electromagnetic simulation of the changed entities.
[0018] In the second aspect, the present application provides an electromagnetic simulation device, including: an electromagnetic information generation module, configured to generate electromagnetic information of the preset entity for each cell in the preset simulation space when the preset entity is placed in the preset simulation space, the electromagnetic information including: electromagnetic frequency band information and electromagnetic intensity information; an electromagnetic information storage module, configured to establish one or more Fibonacci heaps according to each cell, each Fibonacci heap is used to store and access different electromagnetic intensity information under the same electromagnetic frequency band information; an electromagnetic simulation module, configured to perform electromagnetic simulation of the electromagnetic environment including the preset entity based on the cell and the Fibonacci heap.
[0019] In one embodiment, the electromagnetic simulation device further includes: an electromagnetic information query module configured to obtain maximum electromagnetic intensity information or minimum electromagnetic intensity information under different electromagnetic frequency band information in each of the cells by querying different Fibonacci heaps in each of the cells.
[0020] In a third aspect, the present application provides an electronic device, including a memory and a processor, wherein the memory stores computer-readable instructions, and when the computer-readable instructions are executed by the processor, the processor executes the above-mentioned electromagnetic simulation method.
[0021] In a fourth aspect, the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program runs on a computer, the computer executes the above-mentioned electromagnetic simulation method.
[0022] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, the preferred embodiments of the present invention are specifically cited below and described in detail with reference to the attached drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0023] In order to more clearly illustrate the technical solution of the embodiments of the present application, the drawings required for use in the embodiments of the present application are briefly introduced below.
[0024] Figure 1 A flowchart of an electromagnetic simulation method provided in one embodiment of the present application;
[0025] Figure 2A schematic diagram of a preset simulation space provided in an embodiment of the present application;
[0026] Figure 3 A schematic diagram of a Fibonacci heap provided in one embodiment of the present application;
[0027] Figure 4 One of the device block diagrams of the electromagnetic simulation device provided in one embodiment of the present application;
[0028] Figure 5 A second device block diagram of an electromagnetic simulation device provided in an embodiment of the present application;
[0029] Figure 6 A schematic diagram of the structure of an electronic device provided in one embodiment of the present application. DETAILED DESCRIPTION
[0030] 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.
[0031] Please refer to Figure 1 , is a flow chart of an electromagnetic simulation method provided in one embodiment of the present application, the electromagnetic simulation method includes steps S110 to S130.
[0032] Step S110: When a preset entity is placed in a preset simulation space, electromagnetic information of the preset entity for each cell in the preset simulation space is generated, where the electromagnetic information includes: electromagnetic frequency band information and electromagnetic intensity information.
[0033] The preset simulation space is used to simulate the physical space, and the preset entity is used to simulate the entity that can cause a certain electromagnetic impact on the surrounding electromagnetic environment.
[0034] In this embodiment, the preset simulation space can be used to simulate physical spaces such as mountains, cities, sky, oceans, indoors, and combinations thereof.
[0035] In one embodiment, obtaining a preset simulation space includes: setting an initial simulation space; performing a first discretization process on the initial simulation space to obtain the preset simulation space. The initial simulation space may be a two-dimensional space or a three-dimensional space, and correspondingly, the cells in the simulation space may be two-dimensional or three-dimensional.
[0036] By performing a first discretization process on the initial simulation space, a preset simulation space divided into different cells is obtained.
[0037] Please refer to Figure 2 , is a schematic diagram of a preset simulation space in an embodiment of the present application, Figure 2 The preset simulation space in (a) is divided into hexagonal cells. Figure 2 The preset simulation space in (b) is divided into square cells, A, B, C, and D represent different preset entities, and the four circles represent the electromagnetic influence ranges of A, B, C, and D, respectively.
[0038] In this embodiment, the first discretization process is used to divide the initial simulation space into different cells of the same size and evenly arranged, and each cell can represent an area or a position in the physical space.
[0039] Please refer to Figure 2 , the cells of the preset space can be of different shapes, for example, the cells can be hexagonal cells as shown in (a), or square cells as shown in (b). In addition, the size of the cells can also be set according to the needs. For example, when the simulation accuracy needs to be improved, each cell can be set to a cell with a smaller area. When performing large-scale electromagnetic simulation, each cell can be set to a cell with a larger area to reduce simulation operations.
[0040] The preset entity is used to simulate an entity with a certain electromagnetic frequency and electromagnetic strength. The electromagnetic parameters can be set according to the entity first. For example, the electromagnetic frequency, electromagnetic strength, influence range and other parameters can be set to obtain the preset entity.
[0041] After obtaining the preset entity, the preset entity can be placed in a preset simulation space. When the preset entity is placed in the preset simulation space, electromagnetic information of the preset entity for each cell in the preset simulation space will be generated, and the electromagnetic information includes: electromagnetic frequency band information and electromagnetic intensity information.
[0042] In one embodiment, the electromagnetic intensity information further includes: device sub-information, and the device sub-information is associated with a preset entity.
[0043] By obtaining the maximum electromagnetic intensity information of each cell and locating each preset entity according to the device sub-information in the maximum electromagnetic intensity information, it is convenient to analyze a series of information such as the device type of each preset entity to meet the user's usage needs.
[0044] In one embodiment, before simulation, different preset entities can be set as different groups according to the device sub-information, and different groups can be in alliance or confrontation. After obtaining the device sub-information, the group to which each preset entity is assigned can be determined according to the device sub-information, thereby meeting the need to simulate specific relationships between different entities.
[0045] In one embodiment, the electromagnetic frequency contained in the preset entity may be subjected to a second discretization process to obtain electromagnetic frequency band information, and then the electromagnetic intensity information may be calculated and generated based on the electromagnetic intensity of the preset entity and the distance between each cell and the preset entity.
[0046] In this embodiment, before performing the second discretization process, the electromagnetic spectrum may be pre-divided into specific frequency bands according to a certain interval.
[0047]
[0048]
[0049] Table 1
[0050] Exemplarily, the division may be performed according to the set frequency intervals in Table 1 above. There are many specific division methods, and the above are only examples and are not intended to limit the present application.
[0051] By mapping the electromagnetic frequency contained in the preset entity to the above-divided frequency band, the electromagnetic frequency band information of the preset entity can be obtained.
[0052] Accordingly, when there are multiple preset entities with different electromagnetic frequencies in the preset simulation space, the electromagnetic environment where a cell is located will have different electromagnetic frequency band information generated by different preset entities. In addition, when there is only one multi-frequency preset entity in the preset simulation space, the electromagnetic environment where the cell is located may also have different electromagnetic frequency band information.
[0053] The preset entity placed in the preset simulation space acts as an interference source and will cause electromagnetic interference to the electromagnetic environment of each cell in the preset simulation space. The electromagnetic strength information is obtained by calculating the electromagnetic strength of the preset entity and the distance between each cell and the preset entity, thereby realizing the quantification of the electromagnetic interference of the preset entity on each cell in the preset simulation space.
[0054] Accordingly, when there are multiple preset entities in the preset simulation space, the electromagnetic environment of a cell will contain electromagnetic intensity information generated by different preset entities. Since the electromagnetic intensities of the multiple preset entities and the distances from the cell are different, there are maximum and minimum values in the generated electromagnetic intensity information.
[0055] Step S120: establishing one or more Fibonacci heaps for each of the cells, each of the Fibonacci heaps being used to store and access different electromagnetic intensity information under the same electromagnetic frequency band information.
[0056] In the electromagnetic environment where each cell is located, there will be electromagnetic information generated by different preset entities, and the electromagnetic information includes: different electromagnetic frequency band information and different electromagnetic intensity information.
[0057] Among them, different electromagnetic frequency band information can be generated at the cell by multiple preset entities with different electromagnetic frequencies, or by a multi-frequency preset entity at the cell. Correspondingly, different electromagnetic intensity information can be generated at the cell by different preset entities.
[0058] In this embodiment, one or more Fibonacci heaps are established in each cell to access the above different electromagnetic information, wherein each Fibonacci heap corresponds to a specific frequency band, that is, a same electromagnetic frequency information, and is used to access different electromagnetic information under the electromagnetic frequency information.
[0059] Please refer to Figure 3 , is a schematic diagram of a Fibonacci heap in an embodiment of the present application.
[0060] Exemplarily, the Fibonacci heap is a Fibonacci heap storing the electromagnetic intensity information corresponding to the first cell and the first electromagnetic frequency band information. Each node element in the Fibonacci heap includes a structure and two pointers pointing to the node elements in the Fibonacci heap respectively, and the structure stores the corresponding electromagnetic intensity information.
[0061] The top of the Fibonacci heap has a pointer pointing to the minimum electromagnetic intensity information. It can be understood that the pointer at the top of the Fibonacci heap can also point to the maximum electromagnetic intensity information. The above is only an example and is not intended to be limiting.
[0062] When there are multiple preset entities in the preset simulation space, the electromagnetic environment where a cell is located will contain electromagnetic intensity information generated by different preset entities. The electromagnetic intensity information contains maximum and minimum values.
[0063] In this embodiment, the Fibonacci heap can compare a certain electromagnetic intensity information under the same electromagnetic frequency band information with the current minimum value of the electromagnetic intensity information stored in the structure pointed to by the top pointer of the heap. When the electromagnetic intensity information is greater than the current minimum value, the electromagnetic intensity information is inserted into a certain position in the Fibonacci heap using the Fibonacci heap update method. When the electromagnetic intensity information is less than the current minimum value, the electromagnetic intensity information is used as the new current minimum value and saved in the structure pointed to by the top pointer of the heap.
[0064] By operating the above-mentioned different electromagnetic intensity information one by one, the orderly storage of all electromagnetic intensity information can be achieved, and finally the structure pointed to by the Fibonacci heap pointer stores the minimum value of the electromagnetic intensity information under a certain electromagnetic frequency band information of the current cell.
[0065] It can be understood that when the pointer at the top of the Fibonacci heap points to the maximum value of the electromagnetic intensity information, the structure pointed to by the Fibonacci heap pointer finally stores the maximum value of the electromagnetic intensity information under a certain electromagnetic frequency band information of the current cell.
[0066] Step S130: Based on the cell and the Fibonacci heap, an electromagnetic simulation is performed on the electromagnetic environment including the preset entity.
[0067] In this embodiment, the Fibonacci heap of each cell stores the maximum or minimum value of the electromagnetic intensity information under the corresponding electromagnetic frequency band information. By querying the different Fibonacci heaps in each cell, the maximum electromagnetic intensity information or minimum electromagnetic intensity information under different electromagnetic frequency band information in each cell can be quickly obtained.
[0068] Compared with complex simulation methods that need to traverse all electromagnetic values in the electromagnetic environment, an electromagnetic simulation method in an embodiment of the present application only needs to access the Fibonacci heap in each cell, and can quickly access the electromagnetic information of each cell through the Fibonacci heap to achieve accurate electromagnetic simulation of the electromagnetic environment containing preset entities.
[0069] Electromagnetic simulation of the changed entity is achieved by inserting a new entity into the electromagnetic environment, deleting an existing entity in the electromagnetic environment, moving an existing entity, updating the properties of an existing entity, etc.
[0070] In one embodiment, when a preset entity existing in an electromagnetic environment needs to be deleted, the preset entity to be deleted is a changing entity. For the cell affected by the changing entity, the electromagnetic intensity information related to the changing entity stored in the Fibonacci heap of the cell can be deleted, thereby realizing electromagnetic simulation of the electromagnetic environment in which the preset entity is deleted.
[0071] For example, when the electromagnetic intensity information of the change entity in the Fibonacci heap of a cell is not the minimum value in the Fibonacci heap, the electromagnetic intensity information is deleted from the Fibonacci heap, and the Fibonacci heap structure is updated.
[0072] For another example, when the electromagnetic intensity information of the changing entity in the Fibonacci heap of a cell is the minimum value in the Fibonacci heap, the electromagnetic intensity information is removed from the top of the Fibonacci heap, and then the heap is reconstructed, and the electromagnetic minimum value temporary storage heap is reconstructed according to the construction method of the Fibonacci heap, and the pointer is pointed to the minimum electromagnetic signal information stored in the Fibonacci heap.
[0073] In one embodiment, when a new entity is inserted into an electromagnetic environment, the newly inserted entity is a changing entity. For the cell affected by the changing entity, electromagnetic intensity information related to the changing entity can be inserted into the Fibonacci heap of the cell, thereby realizing electromagnetic simulation of the electromagnetic environment of the newly inserted entity.
[0074] For example, the electromagnetic intensity information of the changed entity can be compared with the electromagnetic intensity information stored at the top of the Fibonacci heap in the cell. If it is greater than the electromagnetic intensity information at the top of the heap, the electromagnetic information of the newly inserted entity is inserted into a certain position in the Fibonacci heap according to the Fibonacci heap update method; if it is less than the electromagnetic intensity information at the top of the heap, the pointer is pointed to the inserted structure with the minimum value, and the electromagnetic information at the top of the original heap is updated to other positions in the Fibonacci heap.
[0075] In one embodiment, when an entity existing in an electromagnetic environment is translated, the translated entity is a changing entity. The changing entity can be first deleted from the original cell, and the electromagnetic intensity information related to the changing entity can be deleted from the Fibonacci heap of the cell affected by the changing entity. The changing entity is then placed in a new cell, and the electromagnetic intensity information related to the changing entity is inserted into the Fibonacci heap of the new cell.
[0076] In one embodiment, when there is an entity in the electromagnetic environment whose electromagnetic characteristics change, the entity with the changed electromagnetic characteristics is a changing entity. The changing entity can be first deleted from the original cell where it was located, and at the same time, the electromagnetic strength information related to the changing entity can be deleted from the Fibonacci heap of the cell affected by the changing entity. After the electromagnetic strength information of the changing entity is redefined, the changing entity is placed back into the electromagnetic environment, and the electromagnetic strength information related to the changing entity is inserted from the Fibonacci heap of the cell affected by the changing entity.
[0077] In an embodiment of the present application, electromagnetic simulation of the electromagnetic space is performed by discretizing the electromagnetic space into multiple cells, generating electromagnetic information of each cell for a preset entity, and establishing a Fibonacci heap in each cell for storing and accessing different electromagnetic intensity information under the same electromagnetic frequency band information. It only needs to access the Fibonacci heap in each cell to obtain the maximum or minimum electromagnetic intensity information in the electromagnetic space. Compared with the existing complex simulation method that needs to traverse all data, it can effectively reduce the simulation complexity and reduce the computational overhead, thereby improving the simulation efficiency.
[0078] Based on the same inventive concept, an embodiment of the present application also provides an electromagnetic simulation device.
[0079] Figure 4 is a device block diagram of an electromagnetic simulation device provided by an embodiment of the present application, such as Figure 4 As shown, the device may include the following modules:
[0080] The electromagnetic information generating module 210 is configured to generate electromagnetic information of the preset entity for each cell in the preset simulation space when the preset entity is placed in the preset simulation space, wherein the electromagnetic information includes: electromagnetic frequency band information and electromagnetic intensity information;
[0081] The electromagnetic information storage module 220 is configured to establish one or more Fibonacci heaps for each of the cells, each of the Fibonacci heaps being used to store and access different electromagnetic intensity information under the same electromagnetic frequency band information;
[0082] The electromagnetic simulation module 230 is configured to perform electromagnetic simulation on the electromagnetic environment including the preset entity based on the lattice element and the Fibonacci heap.
[0083] Please refer to Figure 5 , is a device block diagram of an electromagnetic simulation device of an embodiment of the present application, and the device also includes: an electromagnetic information query module 240, which is configured to obtain the maximum electromagnetic intensity information or the minimum electromagnetic intensity information under different electromagnetic frequency band information in each of the grid elements by querying different Fibonacci heaps in each of the grid elements.
[0084] For details on the implementation process of the functions and effects of each module in the above-mentioned electromagnetic simulation device, please refer to the implementation process of the corresponding steps in the above-mentioned electromagnetic simulation method, which will not be repeated here.
[0085] Please refer to Figure 6 The embodiment of the present application further provides an electronic device 300, including: at least one processor 310 and a memory 320, Figure 6 A processor 310 is taken as an example. The processor 310 and the memory 320 are connected via a bus 330. The memory 320 stores instructions that can be executed by the processor 310. The instructions are executed by the processor 310 so that the electronic device 300 can execute all or part of the process of the electromagnetic simulation method in the above embodiment.
[0086] The memory 320 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable red-only memory (PROM), read-only memory (ROM), magnetic storage, flash memory, disk or optical disk.
[0087] It should be noted that the electronic device 300 is merely an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.
[0088] The present application also provides a computer-readable storage medium, which stores a computer program. The computer program can be executed by the processor 310 to complete the electromagnetic simulation method provided by the present application.
[0089] In several embodiments provided in the present application, the disclosed devices and methods may also be implemented in other ways. The device embodiments described above are merely schematic, for example, the flowcharts and block diagrams in the accompanying drawings show the possible architecture, functions and operations of the devices, methods and computer program products according to the multiple embodiments of the present application. In this regard, each box in the flowchart or block diagram may represent a module, a program segment or a part of a code, and a module, a program segment or a part of a code contains one or more executable instructions for implementing a specified logical function. In some alternative implementations, the functions marked in the box may also occur in an order different from that marked in the accompanying drawings. For example, two consecutive boxes can actually be executed substantially in parallel, and they may sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or the flowchart, and the combination of boxes in the block diagram and / or the flowchart, can be implemented with a dedicated hardware-based system that performs a specified function or action, or can be implemented with a combination of dedicated hardware and computer instructions.
[0090] In addition, the functional modules in the various embodiments of the present application may be integrated together to form an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent part.
[0091] It should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit it. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or replace some or all of the technical features therein with equivalents. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present application.
Claims
1. An electromagnetic simulation method, characterized in that: include: When a preset entity is placed in a preset simulation space, electromagnetic information of the preset entity for each cell in the preset simulation space is generated, wherein the electromagnetic information includes: electromagnetic frequency band information and electromagnetic intensity information; One or more Fibonacci heaps are established for each of the cells, each of the Fibonacci heaps is used to store and access different electromagnetic intensity information under the same electromagnetic frequency band information; Based on the lattice element and the Fibonacci heap, performing electromagnetic simulation on an electromagnetic environment including the preset entity; Wherein, when the preset entity existing in the electromagnetic environment needs to be deleted, the preset entity to be deleted is a changing entity, and for the cell affected by the changing entity, the electromagnetic intensity information related to the changing entity stored in the Fibonacci heap of the cell is deleted, thereby realizing electromagnetic simulation of the electromagnetic environment in which the preset entity is deleted; When a new entity is inserted into the electromagnetic environment, the inserted new entity is a changing entity, and for a cell affected by the changing entity, electromagnetic intensity information related to the changing entity is inserted into the Fibonacci heap of the cell, thereby realizing electromagnetic simulation of the electromagnetic environment of the newly inserted entity; When an entity existing in the electromagnetic environment is translated, the translated entity is a changed entity. The changed entity is first deleted from the original cell, and the electromagnetic intensity information related to the changed entity is deleted from the Fibonacci heap of the cell affected by the changed entity. Then, the changed entity is placed in a new cell, and the electromagnetic intensity information related to the changed entity is inserted into the Fibonacci heap of the new cell. When there is an entity in the electromagnetic environment whose electromagnetic characteristics change, the entity with the changed electromagnetic characteristics is a changed entity. The changed entity is first deleted from the original cell where it is located, and at the same time, the electromagnetic intensity information related to the changed entity is deleted from the Fibonacci heap of the cell affected by the changed entity. After the electromagnetic intensity information of the changed entity is redefined, the changed entity is placed back into the electromagnetic environment, and the electromagnetic intensity information related to the changed entity is inserted from the Fibonacci heap of the cell affected by the changed entity.
2. The electromagnetic simulation method according to claim 1, characterized in that: Before generating electromagnetic information of each cell in the preset simulation space by the preset entity, the method further includes: Set the initial simulation space; The initial simulation space is subjected to a first discretization process to obtain the preset simulation space; wherein the first discretization process is used to divide the initial simulation space into different cells.
3. The electromagnetic simulation method according to claim 1, characterized in that: The electromagnetic frequency band information is obtained by performing a second discretization process on the electromagnetic frequency contained in the preset entity, wherein the second discretization process is used to divide the electromagnetic frequency into different frequency bands; the electromagnetic intensity information is calculated and generated according to the electromagnetic intensity of the preset entity and the distance between each of the grid elements and the preset entity.
4. The electromagnetic simulation method according to claim 1, characterized in that: Also includes: By querying different Fibonacci heaps in each of the cells, the maximum electromagnetic intensity information or the minimum electromagnetic intensity information under different electromagnetic frequency band information in each of the cells is obtained.
5. The electromagnetic simulation method according to claim 4, characterized in that: The electromagnetic strength information also includes: device sub-information, which is associated with the preset entity. The preset entity is determined by obtaining the maximum electromagnetic strength information or the minimum electromagnetic strength information of each cell and based on the device sub-information in the maximum electromagnetic strength information or the minimum electromagnetic strength information.
6. The electromagnetic simulation method according to claim 5, characterized in that: Before performing electromagnetic simulation, the method further includes: setting different preset entities into different groups according to the device sub-information, and different groups are in alliance or confrontation relationship.
7. The electromagnetic simulation method according to claim 1, characterized in that: Also includes: A preset entity before the change is deleted in the electromagnetic environment, and / or a changed entity is placed in the electromagnetic environment.
8. An electromagnetic simulation device, characterized in that: include: The electromagnetic information generating module is configured to generate electromagnetic information of the preset entity for each cell in the preset simulation space when the preset entity is placed in the preset simulation space, wherein the electromagnetic information includes: electromagnetic frequency band information and electromagnetic intensity information; The electromagnetic information storage module is configured to establish one or more Fibonacci heaps for each of the cells, each of the Fibonacci heaps being used to store and access different electromagnetic intensity information under the same electromagnetic frequency band information; An electromagnetic simulation module, configured to perform electromagnetic simulation on an electromagnetic environment including the preset entity based on the lattice element and the Fibonacci heap; Wherein, when the preset entity existing in the electromagnetic environment needs to be deleted, the preset entity to be deleted is a changing entity, and for the cell affected by the changing entity, the electromagnetic intensity information related to the changing entity stored in the Fibonacci heap of the cell is deleted, thereby realizing electromagnetic simulation of the electromagnetic environment in which the preset entity is deleted; When a new entity is inserted into the electromagnetic environment, the inserted new entity is a changing entity, and for a cell affected by the changing entity, electromagnetic intensity information related to the changing entity is inserted into the Fibonacci heap of the cell, thereby realizing electromagnetic simulation of the electromagnetic environment of the newly inserted entity; When an entity existing in the electromagnetic environment is translated, the translated entity is a changed entity. The changed entity is first deleted from the original cell, and the electromagnetic intensity information related to the changed entity is deleted from the Fibonacci heap of the cell affected by the changed entity. Then, the changed entity is placed in a new cell, and the electromagnetic intensity information related to the changed entity is inserted into the Fibonacci heap of the new cell. When there is an entity in the electromagnetic environment whose electromagnetic characteristics change, the entity with the changed electromagnetic characteristics is a changed entity. The changed entity is first deleted from the original cell where it is located, and at the same time, the electromagnetic intensity information related to the changed entity is deleted from the Fibonacci heap of the cell affected by the changed entity. After the electromagnetic intensity information of the changed entity is redefined, the changed entity is placed back into the electromagnetic environment, and the electromagnetic intensity information related to the changed entity is inserted from the Fibonacci heap of the cell affected by the changed entity.
9. The electromagnetic simulation device according to claim 8, characterized in that: Also includes: The electromagnetic information query module is configured to obtain the maximum electromagnetic intensity information or the minimum electromagnetic intensity information under different electromagnetic frequency band information in each of the cells by querying different Fibonacci heaps in each of the cells.
10. An electronic device, characterized in that: The method comprises a memory and a processor, wherein the memory stores computer-readable instructions, and when the computer-readable instructions are executed by the processor, the processor executes the electromagnetic simulation method according to any one of claims 1 to 7.
11. A computer-readable storage medium, characterized in that: The readable storage medium stores a computer program, and when the computer program is executed on a computer, the computer is enabled to execute the electromagnetic simulation method according to any one of claims 1 to 7.
