Electromagnetic simulation parallel computing method
Through the multi-processor parallel computing and the distribution mechanism of Ansys Remote Solve Manager module, the problem of low computational efficiency of single-processor electromagnetic simulation is solved, and the rapid completion of electromagnetic simulation calculation tasks is achieved, which significantly reduces the calculation time and improves the research progress and Cost-effective.
Patent Information
- Application Number
- CN202411099953.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-12
- Publication Date
- 2024-12-10
AI Technical Summary
In the prior art, the efficiency of electromagnetic simulation using a single processor is limited, and it is difficult to effectively reduce the calculation time.
Multiple processors are used to compute in parallel. By setting up nodes, the processors in each node have multiple cores. The Ansys Remote Solve Manager module is used to distribute electromagnetic simulation computing tasks, and data exchange and sharing are realized through Ethernet or InfiniBand. The MPI protocol is used. Perform data transfer and ensure the normal operation of the MPI protocol and the reasonable configuration of processor resources through CMD scripts.
It significantly reduces the calculation time of electromagnetic simulation and improves the calculation efficiency. Especially in the case of large calculation volume, it improves the research progress in the fields of microwave, communication, national defense, military, medical, and scientific research, and reduces the development costs of enterprises.
Smart Images

Figure FDA0004989103920000011
Abstract
Description
Technical Field
[0001] The present invention relates to the field of electromagnetic simulation calculation, and more specifically, to an electromagnetic simulation parallel calculation method. Background Art
[0002] Electromagnetic simulation is a key technology widely used in science, engineering and technology. It provides us with a powerful tool to understand and predict the behavior of electromagnetic fields, thus promoting innovation in wireless communications, electronic devices, medical devices and many other fields. The core idea of electromagnetic simulation is to simplify the Maxwell equations of the discretized three-dimensional model into differential or integral equations and solve each small part of the discretized three-dimensional model through algebraic equations. The discretization of the three-dimensional structure model is called meshing from the perspective of computational electromagnetics. This method discretizes the three-dimensional structure model into cell-like structures such as hexahedrons, tetrahedrons, triangles, etc. The time for calculating electromagnetic simulation is constrained by the number of grids mentioned above and the frequency to be calculated. In the current business model that focuses on input-output ratio and time efficiency, how to reduce the calculation time of the model requires careful consideration. Summary of the invention
[0003] In view of the problem of limited efficiency when using a single processor for electromagnetic simulation calculation in the prior art, the purpose of the present invention is to provide an electromagnetic simulation parallel computing method, which improves the electromagnetic simulation calculation efficiency through parallel computing of multiple processors, and its specific scheme includes: setting up a node, the node includes multiple processors, and each processor has multiple cores; the IPs of all processors in the node are in the same network segment; all processors realize data exchange and sharing through Ethernet or InfiniBand; Ansys Electronics Desktop module is deployed in each processor, and the Ansys Electronics Desktop module account of each processor is consistent; the same computer management account is registered in each processor using Ansys Remote Solve Manager module; and the electromagnetic simulation calculation tasks of the Ansys Electronics Desktop module are distributed to each processor through the Ansys Remote Solve Manager module.
[0004] The present invention is further configured as follows: a plurality of nodes are provided, and IPs of different nodes are located in different network segments; and processors of different nodes realize data exchange and sharing through Ethernet or InfiniBand.
[0005] The present invention is further configured such that the data transmission rate of the network switches used by Ethernet and InfiniBand is greater than or equal to 1 MB / s.
[0006] The present invention is further configured such that: the MPI protocol is used to transfer data between different processors.
[0007] The present invention is further configured that: the normal operation of the MPI protocol between different processors is implemented by using a CMD script.
[0008] The present invention is further configured such that: the Ansys Electronics Desktop module is deployed at the same location within each processor.
[0009] The present invention is further configured to use a CMD script to display the operating speed, memory and data transmission status of each processor in real time.
[0010] The present invention is further configured such that the number of cores available in the Ansys Electronics Desktop module is set to the total number of cores minus one.
[0011] The present invention is further configured as follows: the memory available for the Ansys Electronics Desktop module is set to 99% of the sum of the physical memories of all processors.
[0012] The present invention is further configured as follows: in the Ansys Electronics Desktop module, when the electromagnetic simulation calculation adopts the finite element method, the three-dimensional structure model is discretized into a plurality of grids, and the length of the grid is less than or equal to the wavelength of the electromagnetic wave. times.
[0013] In summary, compared with the prior art, the present invention has the following beneficial effects: the Ansys RemoteSolve Manager module in the present invention can distribute electromagnetic simulation calculation tasks to different processors to process different parts of the electromagnetic simulation calculation tasks in parallel, which helps to speed up the overall calculation process of the electromagnetic simulation calculation tasks. In particular, when the calculation amount of the electromagnetic simulation calculation tasks is large, the electromagnetic simulation parallel calculation method proposed in the present invention can significantly reduce the calculation time, improve the research progress in the fields of microwave, communication, national defense, military, medical, and scientific research, and reduce the development costs of enterprises. DETAILED DESCRIPTION
[0014] The technical solution of the present invention will be clearly described below. Obviously, the described embodiments are not all embodiments of the present invention. All other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the invention.
[0015] The Chinese meaning of the term "Ethernet" is Ethernet. The abbreviation of the term "InfiniBand" is IB, and its Chinese meaning is infinite bandwidth. The term "Ansys Electronics Desktop" is the electronic design and electromagnetic simulation module in Ansys software. The term "Ansys Remote Solve Manager" is the remote solver manager in Ansys software, which can realize remote update and task allocation of computing tasks. The full name of the term "MPI" is Message Passing Interface, which is used to write parallel computers. The term "CMD" is a command line program in the Windows system.
[0016] Example
[0017] A preferred embodiment of the present invention provides an electromagnetic simulation parallel computing method, which includes setting up at least one node, each node includes multiple processors, and each processor has multiple cores; the IPs of all processors of the same node are in the same network segment, and the IPs of different nodes are in different network segments; the processors of different nodes realize data exchange and sharing through Ethernet or InfiniBand; an Ansys Electronics Desktop module is deployed in each processor, and the Ansys Electronics Desktop module account of each processor is consistent; the same computer management account is registered in each processor using the Ansys Remote Solve Manager module; the electromagnetic simulation computing tasks of the Ansys Electronics Desktop module are distributed to each processor through the Ansys Remote Solve Manager module and the computing nodes of the Ansys Electronics Desktop module, the number of cores of each node and the memory of each node are configured.
[0018] The Ansys Remote Solve Manager module can assign electromagnetic simulation computing tasks to different processors to process different parts of electromagnetic simulation computing tasks in parallel, which helps to speed up the overall computing process of electromagnetic simulation computing tasks, especially when the electromagnetic simulation computing tasks have a large amount of computation. In the case of multiple nodes, the data transmission rate between processors on the same node is faster than the data transmission rate between processors on different nodes. Therefore, the electromagnetic simulation computing tasks with greater data correlation can be preferentially assigned to the same node to obtain higher computing efficiency. The scale and capacity of the computing cluster composed of all processors in this embodiment can be flexibly expanded by adjusting the number of processors and cores to flexibly cope with large-scale electromagnetic simulation computing tasks. This embodiment can be applied under the Windows operating system.
[0019] In this embodiment, the nodes are multiple, and each node is provided with four processors P0-P3, each processor has four cores, and the total number of cores of a single node in the Ansys Electronics Desktop module is 16.
[0020] Specifically, the Ansys Electronics Desktop module is deployed at the same location in each processor to simplify the operation of data scheduling between the processors.
[0021] Specifically, the MPI protocol is used to transfer data between different processors to reduce the possibility of extending the electromagnetic simulation calculation time due to the integration of calculation data between processors.
[0022] Specifically, the data transmission rate of the network switches used by Ethernet and InfiniBand is greater than or equal to 1MB / s to achieve efficient data exchange between different processors, further reducing the possibility of extended electromagnetic simulation calculation time due to the integration of calculation data between processors.
[0023] Specifically, the normal operation of the MPI protocol between different processors is implemented using CMD scripts to ensure that the MPI protocol is started and run in the same way on different computing nodes or processors, ensuring the consistency and reliability of the MPI protocol operation in each processor and reducing errors and time consumption in manual operations.
[0024] Specifically, the CMD script is used to display the operating speed, memory and data transmission status of each processor in real time, so as to view the operating status of each processor in real time.
[0025] Specifically, the number of available cores in the Ansys Electronics Desktop module is set to the total number of cores minus one, leaving one core for system and other tasks to run, thus avoiding system overload and reduced response speed in the computing cluster.
[0026] Specifically, the memory available to the Ansys Electronics Desktop module is set to 99% of the sum of the physical memory of all processors to ensure that the Ansys Electronics Desktop module can fully utilize all available memory resources in the system and improve the efficiency and capacity of simulation calculations. The remaining 1% of memory will be used to ensure the normal operation of the processor operating system.
[0027] Specifically, when the Ansys Electronics Desktop module is running, the required grid length should be optimized in advance to maximize the advantages of parallel computing. For example, when the electromagnetic simulation is performed using the finite element method, the three-dimensional structure model is discretized into multiple grids, and the length of the grid is less than or equal to the wavelength of the electromagnetic wave. times.
[0028] Using a processor with 19 cores and the Ansys Electronics Desktop module, the radiation of a monopole antenna in the range of 1 GHz to 100 GHz was calculated with the Ansys Electronics Desktop module occupying 18 cores and 99% of the physical memory, and the final time was 10 minutes. Adding a processor with the same 19 cores, that is, using two processors with 19 cores, the radiation of the same monopole antenna in the range of 1 GHz to 100 GHz was calculated with the Ansys Electronics Desktop module occupying 38 cores and 99% of the physical memory, and the final time was 3 minutes. This shows that multi-processor parallel computing can significantly improve the computational efficiency of electromagnetic simulation computing tasks.
[0029] To sum up, the Ansys Remote Solve Manager module in this embodiment can distribute electromagnetic simulation calculation tasks to different processors to process different parts of the electromagnetic simulation calculation tasks in parallel, which helps to speed up the overall calculation process of the electromagnetic simulation calculation tasks. Especially when the electromagnetic simulation calculation tasks have a large amount of calculation, the electromagnetic simulation parallel calculation method proposed in this embodiment can significantly reduce the calculation time, improve the research progress in the fields of microwave, communication, national defense, military, medical, and scientific research, and reduce enterprise development costs.
[0030] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.
Claims
1. A parallel computing method for electromagnetic simulation, characterized by: Establish a node, wherein the node includes multiple processors, each processor having multiple cores; the IP addresses of all processors in the node are in the same network segment; all processors exchange and share data via Ethernet or InfiniBand; each processor is deployed with an Ansys Electronics Desktop module, and each processor has the same Ansys Electronics Desktop module account; Use the Ansys Remote Solve Manager module to register the same computer management account in each processor; use the Ansys Remote Solve Manager module to distribute the electromagnetic simulation calculation tasks of the Ansys Electronics Desktop module to each processor.
2. The electromagnetic simulation parallel computing method according to claim 1, characterized in that: There are multiple nodes, and the IP addresses of different nodes are located in different network segments; the processors of different nodes realize data exchange and sharing through Ethernet or InfiniBand.
3. The electromagnetic simulation parallel computing method according to claim 1 or 2, characterized in that: The data transmission rate of the network switches used by Ethernet and InfiniBand is greater than or equal to 1MB / s.
4. The electromagnetic simulation parallel computing method according to claim 1 or 2, characterized in that: The MPI protocol is used to transfer data between different processors.
5. The electromagnetic simulation parallel computing method according to claim 4, characterized in that: The normal operation of the MPI protocol between different processors is implemented using CMD scripts.
6. The electromagnetic simulation parallel computing method according to claim 1 or 2, characterized in that: The Ansys Electronics Desktop modules are deployed in the same location within each processor.
7. The electromagnetic simulation parallel computing method according to claim 1 or 2, characterized in that: Use CMD scripts to display the running speed, memory and data transmission of each processor in real time.
8. The electromagnetic simulation parallel computing method according to claim 1, characterized in that: The number of cores available in the Ansys Electronics Desktop module is set to the total number of cores minus one.
9. The electromagnetic simulation parallel computing method according to claim 8, characterized in that: The memory available to the Ansys Electronics Desktop module is set to 99% of the sum of the physical memory of all processors.
10. The electromagnetic simulation parallel computing method according to claim 1 or 2, characterized in that: In the Ansys Electronics Desktop module, when the electromagnetic simulation calculation adopts the finite element method, the three-dimensional structure model is discretized into multiple grids, and the length of the grid is less than or equal to the wavelength of the electromagnetic wave. times.
