Electromagnetic simulation method and device, electronic equipment and storage medium

By converting the time domain excitation source into the frequency domain excitation source, the problem of inconsistent excitation source input conditions in electromagnetic simulation software is solved, the flexible conversion of the excitation source and the accuracy of the simulation results are achieved, and the usability and effect of the simulation software are improved.

CN120688204APending Publication Date: 2025-09-23BEIJING CO WHEELS TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410339160.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-03-22
Publication Date
2025-09-23

AI Technical Summary

Technical Problem

Existing electromagnetic simulation software may fail to add the excitation source or affect the simulation results when the excitation source input conditions are not met, limiting the usability and effectiveness of the simulation software.

Method used

By converting the time domain excitation source into a frequency domain excitation source, the sampling conditions of the excitation source are obtained, sampling and Fourier transform processing are performed, and frequency domain data is generated as the second excitation source for electromagnetic simulation to generate frequency domain simulation results.

Benefits of technology

The limitation of simulation software on the type of excitation source is reduced, the usability and simulation effect of simulation software are improved, and the matching of excitation sources and the accuracy of simulation results can be achieved in different software.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120688204A_ABST
    Figure CN120688204A_ABST
Patent Text Reader

Abstract

The invention relates to an electromagnetic simulation method and device, electronic equipment and a storage medium. The electromagnetic simulation method provided by the invention comprises the steps that a first excitation source is acquired, and the first excitation source refers to an input signal for electromagnetic simulation; under the condition that the first excitation source is a time domain excitation source, converting the first excitation source from the time domain excitation source to a frequency domain excitation source to obtain a second excitation source; and performing electromagnetic simulation based on the second excitation source to generate a frequency domain simulation result. According to the method provided by the invention, through conversion between the excitation sources, limitation on the excitation sources is reduced, and usability is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of electromagnetic simulation technology, and in particular to an electromagnetic simulation method, device, electronic device, and storage medium. Background Art

[0002] In recent years, with the widespread application of electronic systems, design requirements have also increased. Multiple electromagnetic simulations are required during design to meet these requirements. Currently, electromagnetic simulations are mostly performed using electromagnetic simulation software, such as the three-dimensional full-wave electromagnetic simulation software (FEKO). When performing electromagnetic simulations using FEKO, the excitation source is generally in the form of a voltage source, and a frequency domain algorithm is used, that is, a frequency domain voltage excitation source is used. The simulation results given by the software are also the response of the electronic system under voltage excitation conditions. In other words, the software pre-sets the type of excitation source that can be added. However, in actual applications, if the input conditions of the excitation port of the electromagnetic simulation are time-domain voltage or time-domain current waveforms, that is, if the actual input conditions do not match the input conditions pre-set by the software, the software function is likely to be limited, resulting in failure to add the excitation source or affecting the simulation results. Summary of the Invention

[0003] In order to solve the above technical problems, the present disclosure provides an electromagnetic simulation method, device, electronic device and storage medium, which reduce the restrictions of different software on the excitation source by converting between excitation sources and improve usability.

[0004] In a first aspect, an embodiment of the present disclosure provides an electromagnetic simulation method, the method comprising:

[0005] Acquire a first excitation source, where the first excitation source refers to an input signal for electromagnetic simulation;

[0006] In the case where the first excitation source is a time domain excitation source, converting the first excitation source from a time domain excitation source to a frequency domain excitation source to obtain a second excitation source;

[0007] Perform electromagnetic simulation based on the second excitation source to generate frequency domain simulation results.

[0008] Optionally, converting the first excitation source from a time domain excitation source to a frequency domain excitation source to obtain a second excitation source includes:

[0009] Determining a sampling condition corresponding to the first excitation source, and performing sampling processing on the first excitation source based on the sampling condition to obtain time domain data;

[0010] Performing a transformation process on the time domain data to obtain frequency domain data, wherein the frequency domain data is used to characterize the corresponding relationship between frequency and excitation source amplitude;

[0011] The frequency domain data is used as a second excitation source; or, the frequency domain data is sampled to obtain the second excitation source.

[0012] The sampling condition includes the first number of sampling points.

[0013] Optionally, the sampling process of the first excitation source based on the sampling condition to obtain time domain data includes:

[0014] Determining a maximum frequency of the first excitation source waveform, and determining a first sampling frequency based on the maximum frequency;

[0015] The first excitation source is sampled based on the first sampling frequency and the first number of sampling points to obtain time domain data, wherein the time domain data is used to represent the correspondence between time and voltage waveform values.

[0016] Optionally, transforming the time domain data to obtain frequency domain data includes:

[0017] Calculating a sampling time difference between two adjacent data in the time domain data, and calculating a second sampling frequency according to the sampling time difference;

[0018] Performing Fourier transform on the voltage waveform value in the time domain data to obtain transformed data;

[0019] Calculating the second number of sampling points according to the counted number of all voltage waveform values ​​included in the time domain data;

[0020] The transformed data is sampled based on the second sampling frequency and the second number of sampling points to obtain the frequency domain data.

[0021] Optionally, performing electromagnetic simulation based on the second excitation source to generate frequency domain simulation results includes:

[0022] Adding a frequency domain excitation source to a target port based on the frequency and amplitude of the second excitation source, wherein the target port refers to the port to which the excitation source is to be added;

[0023] Performing electromagnetic simulation under the frequency domain excitation source to generate the frequency domain simulation result.

[0024] Optionally, adding a frequency domain excitation source to the target port based on the frequency and amplitude of the second excitation source includes:

[0025] Acquiring the number of target ports, and determining a plurality of target excitation sources having the same frequency from the second excitation sources when the number of target ports is greater than a preset threshold;

[0026] constructing port data based on the same frequency and the excitation source amplitudes of the plurality of target excitation sources;

[0027] A frequency domain excitation source is added to each target port using the port data.

[0028] Optionally, after performing electromagnetic simulation based on the second excitation source and generating frequency domain simulation results, the method includes:

[0029] defining a time domain excitation signal according to the first excitation source;

[0030] Based on the time domain excitation signal, a time domain simulation result corresponding to the frequency domain simulation result is generated.

[0031] In a second aspect, an embodiment of the present disclosure provides an electromagnetic simulation device, comprising:

[0032] an acquisition unit, configured to acquire a first excitation source for electromagnetic simulation;

[0033] a conversion unit, configured to, when the first excitation source is a time domain excitation source, convert the first excitation source from a time domain excitation source into a frequency domain excitation source to obtain a second excitation source;

[0034] The simulation unit is used to perform electromagnetic simulation based on the second excitation source to generate frequency domain simulation results.

[0035] In a third aspect, an embodiment of the present disclosure provides an electronic device, including:

[0036] Memory;

[0037] processor; and

[0038] computer programs;

[0039] The computer program is stored in the memory and is configured to be executed by the processor to implement the electromagnetic simulation method as described above.

[0040] In a fourth aspect, an embodiment of the present disclosure provides a computer-readable storage medium having a computer program stored thereon, which implements the steps of the electromagnetic simulation method as described above when the computer program is executed by a processor.

[0041] An embodiment of the present disclosure provides an electromagnetic simulation method, comprising: obtaining a first excitation source, wherein the first excitation source refers to an input signal for electromagnetic simulation; when the first excitation source is a time domain excitation source, converting the first excitation source from a time domain excitation source to a frequency domain excitation source to obtain a second excitation source; and performing electromagnetic simulation based on the second excitation source to generate frequency domain simulation results. After obtaining the excitation source for electromagnetic simulation, the method provided by the present disclosure determines the type of the excitation source. If the excitation source type does not match the excitation source type of the software to be simulated, the excitation source can be converted to an excitation source suitable for the software to be simulated. This conversion method between excitation sources effectively reduces the limitations of the simulation software on the excitation source, improves usability, and further improves the simulation effect. BRIEF DESCRIPTION OF THE DRAWINGS

[0042] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the present disclosure.

[0043] In order to more clearly illustrate the embodiments of the present disclosure or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.

[0044] Figure 1 A schematic diagram of a flow chart of an electromagnetic simulation method provided in an embodiment of the present disclosure;

[0045] Figure 2 A schematic diagram of a time domain waveform provided by an embodiment of the present disclosure;

[0046] Figure 3 A schematic diagram of a frequency domain waveform provided by an embodiment of the present disclosure;

[0047] Figure 4 A frequency domain simulation result diagram provided by an embodiment of the present disclosure;

[0048] Figure 5 A schematic diagram of introducing a time domain excitation source provided in an embodiment of the present disclosure;

[0049] Figure 6 A schematic diagram of a time domain simulation provided by an embodiment of the present disclosure;

[0050] Figure 7 A schematic flow chart of another electromagnetic simulation method provided in an embodiment of the present disclosure;

[0051] Figure 8 A schematic structural diagram of an electromagnetic simulation device provided in an embodiment of the present disclosure;

[0052] Figure 9 A schematic structural diagram of an electronic device provided in an embodiment of the present disclosure. DETAILED DESCRIPTION

[0053] In order to more clearly understand the above-mentioned objectives, features and advantages of the present disclosure, the scheme of the present disclosure will be further described below. It should be noted that the embodiments of the present disclosure and the features therein can be combined with each other in the absence of conflict.

[0054] In the following description, many specific details are set forth to facilitate a full understanding of the present disclosure, but the present disclosure may also be implemented in other ways different from those described herein; it is obvious that the embodiments in the specification are only part of the embodiments of the present disclosure, rather than all of the embodiments.

[0055] In response to the above technical problems, an embodiment of the present disclosure provides an electromagnetic simulation method, which realizes the addition of time domain excitation sources in FEKO electromagnetic simulation by converting time domain excitation sources into frequency domain excitation sources. The excitation source conversion method is applicable to a variety of simulation models. For example, when performing electromagnetic simulation on physical simulation models such as wire harness crosstalk and coils, when adding excitation at the corresponding port, it is not restricted by the excitation input conditions. After setting the required frequency and number of frequency points, the impedance, field strength, induced current and other data that can be obtained by running the system effectively reduce the restrictions of the excitation source on the simulation software, further improve the usability of the excitation source, and to a certain extent, improve the user experience.

[0056] Figure 1 A flow chart of an electromagnetic simulation method provided in an embodiment of the present disclosure is applied to electromagnetic simulation software (hereinafter referred to as software) with pre-set excitation input conditions. The excitation input conditions refer to the excitation source type, such as the frequency domain excitation source, specifically including: Figure 1 The following steps S101 to S103 are shown:

[0057] S101: Acquire a first excitation source, where the first excitation source refers to an input signal for electromagnetic simulation.

[0058] It can be understood that the first excitation source is obtained. The first excitation source refers to the input signal used for electromagnetic simulation. Before running the simulation analysis, at least one excitation source must be set as the input signal excitation. The specific first excitation source can be added to the software through the port as one of the input conditions for the software to perform electromagnetic simulation. Among them, the first excitation source can be a time domain excitation source or a frequency domain excitation source, and can further be a time domain current or time domain voltage in the time domain excitation source, or a frequency domain voltage and other forms.

[0059] S102 : When the first excitation source is a time-domain excitation source, convert the first excitation source from a time-domain excitation source into a frequency-domain excitation source to obtain a second excitation source.

[0060] It is understandable that, based on the above S101, it is determined whether the first excitation source is a time domain excitation source or a frequency domain excitation source, that is, the type of the excitation source is determined, and it is further determined whether the type matches the excitation source type preset by the software. For example, if the excitation source that matches the software is a frequency domain voltage source, and the first excitation source is a time domain voltage source, when this input excitation source does not match the preset excitation source of the software, the first excitation source is converted from a time domain excitation source to a frequency domain excitation source to obtain a second excitation source, and the second excitation source matches the excitation source type preset by the software. It is understandable that for software whose preset excitation source type is a time domain voltage source, the frequency domain excitation source can also be converted to a time domain excitation source, that is, for scenarios where the actual input excitation source and the preset input excitation source do not match, the actual input excitation source can be converted to a preset input excitation source that matches the software by excitation source conversion. The following embodiment takes the conversion of the time domain excitation source to the frequency domain excitation source and the application of FEKO software for electromagnetic simulation as an example to explain in detail. Other possible application scenarios are not described here in detail, and the conversion between excitation sources can be set according to user needs.

[0061] Optionally, the above-mentioned conversion of the first excitation source from a time domain excitation source to a frequency domain excitation source to obtain a second excitation source can be specifically achieved through the following steps:

[0062] Determine the sampling conditions corresponding to the first excitation source, and sample the first excitation source based on the sampling conditions to obtain time domain data; transform the time domain data to obtain frequency domain data, wherein the frequency domain data is used to characterize the correspondence between frequency and excitation source amplitude; use the frequency domain data as the second excitation source; or, sample the frequency domain data to obtain a second excitation source.

[0063] It is understandable that the sampling conditions are determined according to the type of the first excitation source. Different types of excitation sources correspond to different sampling conditions. The sampling conditions include parameter information required for sampling and converting the excitation source. After determining the sampling conditions, the first excitation source is sampled and processed based on the sampling conditions to obtain time domain data. The time domain data can be in Excel format, or the time domain data can be directly exported to Excel format. Subsequently, the time domain data is transformed to obtain frequency domain data. The transformation process can be Fourier transform, and the frequency domain data can be in text document format. The frequency domain data represents the correspondence between frequency (F) and excitation source amplitude (V). For example, 1*10 4HZ corresponds to 0.3 V. After the frequency domain data is obtained, the frequency domain data is sampled and processed to obtain a second excitation source, or the frequency domain data is directly used as the second excitation source.

[0064] The sampling condition includes the first number of sampling points.

[0065] Optionally, the sampling process of the first excitation source based on the sampling condition to obtain time domain data may be specifically implemented through the following steps:

[0066] Determining a maximum frequency of the first excitation source waveform, and determining a first sampling frequency based on the maximum frequency;

[0067] The first excitation source is sampled based on the first sampling frequency and the first number of sampling points to obtain time domain data, wherein the time domain data is used to represent the correspondence between time and voltage waveform values.

[0068] It can be understood that the sampling conditions include parameter information such as the number of sampling points and the sampling frequency. When exporting the time domain data, the appropriate number of sampling points should be selected based on the amount of data included in the first excitation source. The number of sampling points can be understood as the total number of samples, denoted as N, which can be an even number, such as 1200. As for the sampling frequency, according to the sampling theorem, the sampling frequency must be at least twice the maximum frequency of the excitation source, and the higher the sampling frequency, the more complete the original information in the excitation source can be retained. In this embodiment, the maximum frequency is determined based on the time domain waveform of the first excitation source, for example, 3.3kHz, and the sampling frequency (Fs) can be 200kHz. Among them, the time domain data represents the correspondence between time and voltage waveform values. Some of the exported time domain data are shown in Table 1. When the sampling frequency is high, the sampling time is relatively close, but the voltage waveform values ​​are different.

[0069] Table 1:

[0070] Serial number time Voltage waveform value 1 -6.03E-01 1.18E+01 2 -6.03E-01 1.22E+01 3 -6.03E-01 1.25E+01

[0071] Optionally, the above-mentioned transformation processing of the time domain data to obtain frequency domain data can be specifically implemented through the following steps:

[0072] Calculating a sampling time difference between two adjacent data in the time domain data, and calculating a second sampling frequency based on the sampling time difference; performing Fourier transform on the voltage waveform value in the time domain data to obtain transformed data; calculating a second number of sampling points based on the statistical number of all voltage waveform values ​​included in the time domain data; and sampling and processing the transformed data based on the second sampling frequency and the second number of sampling points to obtain the frequency domain data.

[0073] It can be understood that the time domain data is subjected to Fourier transform (FFT transform), where the frequencies are: 0, Fs / N, 2Fs / N, …, (N / 2)*Fs / N, Fs is the sampling frequency of 200 kHz, that is, the reciprocal of the sampling time difference between any two adjacent rows in the time domain data, and N is the total number of samples output according to the first excitation source waveform and the oscilloscope settings. Specifically, the difference in sampling time between two adjacent rows in the time domain data is calculated, that is, T = t(2) - t(1), and the inverse of the sampling time difference T is used as the second sampling frequency, that is, Fs = 1 / T, and the number of all rows included in the time domain data (the number of all voltage waveform values ​​(V) included in the time domain data) is obtained, that is, N = length(V), and the voltage waveform value (V) is subjected to FFT transformation to obtain the transformed data (y). The first data (y1) is obtained based on the absolute value of the ratio of the transformed data (y) and the second sampling point number (N). The first data (y1) is further sampled, for example, it can be sampled once every 10 data to obtain the second data (y2). The second data (y2) can be understood as the excitation source amplitude, and then the frequency corresponding to the excitation source amplitude is calculated according to the second sampling frequency and the second sampling point number, and the frequency domain data is obtained based on the combination of the frequency and the corresponding excitation source amplitude, thereby completing the conversion between the frequency domain data and the time domain data.

[0074] For example, see Figure 2 , Figure 2 A time domain waveform schematic diagram is provided for an embodiment of the present disclosure. The time domain waveform is constructed based on the time and voltage waveform values ​​in the time domain data, and can be understood as the time domain waveform of the first excitation source. As shown in the figure, time (Time(s)) is used as the horizontal axis and the voltage waveform value (Voltage(V)) is used as the vertical axis.

[0075] For example, see Figure 3 , Figure 3 A frequency domain waveform diagram provided in an embodiment of the present disclosure is provided. The frequency domain waveform is constructed based on the frequency and excitation source amplitude in the frequency domain data. It can be understood as the frequency domain waveform of the second excitation source. As shown in the figure, time (Frequency (Hz)) is used as the horizontal axis and the excitation source amplitude (Voltage (V)) is used as the vertical axis. Figure 3 The frequency domain waveform shown is generated by Figure 2 The time domain waveform shown is obtained by Fourier transform.

[0076] S103: Perform electromagnetic simulation based on the second excitation source to generate frequency domain simulation results.

[0077] It can be understood that, based on the above S102, the frequency domain excitation source after Fourier transform is added through the file editor (Editfeko) in the software. Editfeko is used to set the solution parameters, that is, to set data such as frequency and amplitude. After the setting is completed, the electromagnetic simulation can be started to generate frequency domain simulation results. The specific simulation process in the software will not be described in detail.

[0078] For example, see Figure 4 , Figure 4 A frequency domain simulation result diagram provided by an embodiment of the present disclosure is shown. Figure 4 This is the result diagram obtained by harness simulation. In FEKO, according to the above simulation process, the amplitude and frequency of the frequency domain excitation source are added to the port to solve the frequency domain simulation results, such as Figure 4 The figure shows the field strength results around the harness. In this simulation case, the frequency domain simulation results can also be understood as the frequency domain field strength results.

[0079] Optionally, performing electromagnetic simulation based on the second excitation source to generate frequency domain simulation results can be specifically implemented through the following steps:

[0080] A frequency domain excitation source is added to a target port based on the frequency and amplitude of the second excitation source, wherein the target port refers to the port to which the excitation source is to be added; and electromagnetic simulation is performed under the frequency domain excitation source to generate the frequency domain simulation result.

[0081] As you can understand, the frequency and amplitude from the second excitation source are added to the target port to add excitation to that port. The target port can be understood as the excitation port. Specifically, you can set up a for loop to read the frequency (F) and amplitude (V) data from a text document (frequency domain data). The for loop is terminated by setting the "!next" code statement at the end. During the loop, the corresponding frequency and amplitude are set in the FR and AK lines in the software. After completing the port settings, perform electromagnetic simulation under this frequency domain excitation source to generate frequency domain simulation results.

[0082] Optionally, adding a frequency domain excitation source to the target port based on the frequency and amplitude of the second excitation source can be implemented by the following steps:

[0083] Obtain the number of target ports, and when the number of target ports is greater than a preset threshold, determine multiple target excitation sources with the same frequency from the second excitation source; construct port data based on the same frequency and the excitation source amplitudes of the multiple target excitation sources; and add a frequency domain excitation source to each target port through the port data.

[0084] It can be understood that the number of excitation ports provided by the software, or the number of excitation sources that need to be added, is obtained. When the number is greater than a preset threshold, the preset threshold can be 1. For one excitation port and only one excitation source, the excitation source can be added to the port directly based on the frequency domain data. For multiple excitation ports and multiple excitation sources, the port setting method is the same as that of an excitation port. Each excitation source can be added to each excitation port in turn, or a target excitation source with the same frequency is determined among multiple excitation sources, and the same frequency and the amplitude of all target excitation sources are combined to obtain a port data. The document format of the port data can be F-V1-V2, that is, each frequency in the text document corresponds to 2 amplitudes, that is, the amplitudes corresponding to other excitation sources with the same frequency are added to a text document as the third column of data and set in the corresponding #VoltageSource row of the software. The remaining excitation sources that do not have the same frequency can be added to the remaining excitation ports in turn.

[0085] Optionally, after performing electromagnetic simulation based on the second excitation source and generating frequency domain simulation results, the method further includes:

[0086] A time domain excitation signal is defined according to the first excitation source; and a time domain simulation result corresponding to the frequency domain simulation result is generated based on the time domain excitation signal.

[0087] It is understandable that after obtaining the frequency domain simulation results, if you need to view the time domain simulation results in FEKO, considering the complexity of the software's own inverse Fourier transform, you can directly define the time domain excitation signal in the post-processing module (POSTFEKO) in the software. Specifically, you can define the time domain excitation signal based on time domain data or the first excitation source, and you can export the excitation source waveform to a text document format or a table. At the same time, set it in the time domain menu bar (Time analysis) in the software. In this case, the field strength, load, probe and other outputs are all time domain simulation results corresponding to the first excitation source. The time domain simulation results and the frequency domain simulation results correspond to each other. According to different simulation requirements, you can view the simulation results in the time domain or frequency domain.

[0088] For example, see Figure 5 , Figure 5 This is a schematic diagram of a time domain excitation source import provided by the embodiment of the present disclosure. The import process of time domain data is as follows: Figure 5 As shown, you can set the sampling frequency and sampling points and other information in this interface to get the following Figure 6 The time domain simulation results shown correspond to the frequency domain simulation results.

[0089] For example, see Figure 6 , Figure 6A time domain simulation schematic diagram is provided for an embodiment of the present disclosure. The time domain simulation result is the simulation result of the first excitation source, and the frequency domain simulation result is the simulation result of the second excitation source. The second excitation source is obtained by converting the first excitation source. This solves the limitation of the simulation software on the excitation source, and enables the viewing of the time domain simulation results and the frequency domain simulation results.

[0090] It is understandable that the time domain simulation results and the frequency domain simulation results can be displayed on the software interface at the same time, or the display mark of the time domain simulation results can be triggered, and the time domain simulation results are displayed in response to the display mark. The specific display of the simulation results is not limited.

[0091] The electromagnetic simulation results provided by the embodiments of the present disclosure overcome the limitations of FEKO software or other simulation software on port excitation sources by converting between time domain excitation sources and frequency domain excitation sources. In addition, since different simulation software have different emphases on the frequency domain and time domain, a post-processing process is added to analyze the time domain results. Both frequency domain simulation results and time domain simulation results can be viewed, making the software more comprehensive in simulation analysis and having wide applicability and promotion for problems in actual electromagnetic simulation work.

[0092] Based on the above embodiments, Figure 7 A flow chart of another electromagnetic simulation method provided by the embodiment of the present disclosure, specifically including the following steps: Figure 7 The following process is shown:

[0093] The simulation process includes: (1) testing the excitation source waveform; (2) sampling the excitation source and exporting the time domain data in Excel format; (3) performing Fourier transform on the time domain data to obtain the frequency domain waveform of the excitation source; (4) if the frequency domain waveform cannot be obtained or an incorrect waveform is obtained, correct the Fourier transform program and execute step (3); (5) if the correct waveform is obtained, add the frequency domain excitation source through Editfeko; (6) generate the fek file for simulation and obtain the frequency domain simulation results; (7) obtain the time domain simulation results corresponding to the frequency domain simulation results based on the time domain data.

[0094] Understandable, Figure 7 The specific implementation instructions of each step shown can be found in the above embodiments and will not be repeated here.

[0095] Figure 8 The electromagnetic simulation device provided by the embodiment of the present disclosure can execute the processing flow provided by the above electromagnetic simulation method embodiment, such as Figure 8 As shown, the apparatus 800 includes an acquisition unit 801, a conversion unit 802, and a simulation unit 803, wherein:

[0096] An acquisition unit 801 is configured to acquire a first excitation source, where the first excitation source refers to an input signal for electromagnetic simulation;

[0097] A conversion unit 802 is configured to, when the first excitation source is a time domain excitation source, convert the first excitation source from a time domain excitation source into a frequency domain excitation source to obtain a second excitation source;

[0098] The simulation unit 803 is configured to perform electromagnetic simulation based on the second excitation source to generate frequency domain simulation results.

[0099] Optionally, the conversion unit 802 is configured to:

[0100] Determining a sampling condition corresponding to the first excitation source, and performing sampling processing on the first excitation source based on the sampling condition to obtain time domain data;

[0101] Performing a transformation process on the time domain data to obtain frequency domain data, wherein the frequency domain data is used to characterize the corresponding relationship between frequency and excitation source amplitude;

[0102] The frequency domain data is used as a second excitation source; or, the frequency domain data is sampled to obtain the second excitation source.

[0103] The sampling condition includes the first number of sampling points.

[0104] Optionally, the conversion unit 802 is configured to:

[0105] Determining a maximum frequency of the first excitation source waveform, and determining a first sampling frequency based on the maximum frequency;

[0106] The first excitation source is sampled based on the first sampling frequency and the first number of sampling points to obtain time domain data, wherein the time domain data is used to represent the correspondence between time and voltage waveform values.

[0107] Optionally, the conversion unit 802 is configured to:

[0108] Calculating a sampling time difference between two adjacent data in the time domain data, and calculating a second sampling frequency according to the sampling time difference;

[0109] Performing Fourier transform on the voltage waveform value in the time domain data to obtain transformed data;

[0110] Calculating the second number of sampling points according to the counted number of all voltage waveform values ​​included in the time domain data;

[0111] The transformed data is sampled based on the second sampling frequency and the second number of sampling points to obtain the frequency domain data.

[0112] Optionally, the simulation unit 803 is used to:

[0113] Adding a frequency domain excitation source to a target port based on the frequency and amplitude of the second excitation source, wherein the target port refers to the port to which the excitation source is to be added;

[0114] Performing electromagnetic simulation under the frequency domain excitation source to generate the frequency domain simulation result.

[0115] Optionally, the simulation unit 803 is used to:

[0116] Acquiring the number of target ports, and determining a plurality of target excitation sources having the same frequency from the second excitation sources when the number of target ports is greater than a preset threshold;

[0117] constructing port data based on the same frequency and the excitation source amplitudes of the plurality of target excitation sources;

[0118] A frequency domain excitation source is added to each target port using the port data.

[0119] Optionally, the apparatus 800 is further configured to:

[0120] defining a time domain excitation signal according to the first excitation source;

[0121] Based on the time domain excitation signal, a time domain simulation result corresponding to the frequency domain simulation result is generated.

[0122] Figure 8 The electromagnetic simulation device of the illustrated embodiment can be used to implement the technical solution of the above-mentioned method embodiment. Its implementation principle and technical effects are similar and will not be described in detail here.

[0123] Figure 9 This is a schematic diagram of the structure of the electronic device provided by the embodiment of the present disclosure. Figure 9 , which shows a schematic structural diagram of an electronic device 900 suitable for implementing the embodiments of the present disclosure. The electronic device 900 in the embodiments of the present disclosure may include, but is not limited to, mobile terminals such as mobile phones, laptop computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), in-vehicle terminals (such as in-vehicle navigation terminals), wearable electronic devices, and fixed terminals such as digital TVs, desktop computers, smart home devices, and the like. Figure 9 The electronic device shown is only an example and should not limit the functions and scope of use of the embodiments of the present disclosure.

[0124] like Figure 9As shown, the electronic device 900 may include a processing device (e.g., a central processing unit, a graphics processing unit, etc.) 901, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 902 or a program loaded from a storage device 908 into a random access memory (RAM) 903 to implement the electromagnetic simulation test method of the embodiment described in the present disclosure. Various programs and data required for the operation of the electronic device 900 are also stored in the RAM 903. The processing device 901, the ROM 902, and the RAM 903 are connected to each other via a bus 904. An input / output (I / O) interface 905 is also connected to the bus 904.

[0125] Typically, the following devices may be connected to the I / O interface 905: an input device 906 including, for example, a touch screen, a touchpad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; an output device 907 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; a storage device 908 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 909. The communication device 909 may allow the electronic device 900 to communicate with other devices wirelessly or by wire to exchange data. Although Figure 9 The electronic device 900 is shown with various devices, but it should be understood that it is not required to implement or possess all of the devices shown. More or fewer devices may be implemented or possessed instead.

[0126] In particular, according to an embodiment of the present disclosure, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product, which includes a computer program carried on a non-transitory computer-readable medium, and the computer program contains program code for executing the method shown in the flowchart, thereby implementing the electromagnetic simulation test method described above. In such an embodiment, the computer program can be downloaded and installed from the network via the communication device 909, or installed from the storage device 908, or installed from the ROM 902. When the computer program is executed by the processing device 901, the above-mentioned functions defined in the method of the embodiment of the present disclosure are performed.

[0127] It should be noted that the computer-readable medium mentioned above in the present disclosure may be a computer-readable signal medium or a computer-readable storage medium, or any combination of the two. A computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or component, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present disclosure, a computer-readable storage medium may be any tangible medium that contains or stores a program that can be used by or in conjunction with an instruction execution system, device, or component. In the present disclosure, a computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, which carries computer-readable program code. Such a propagated data signal may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. A computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium that can transmit, propagate, or transport a program for use by or in conjunction with an instruction execution system, apparatus, or device. The program code contained on the computer-readable medium may be transmitted using any suitable medium, including but not limited to wires, optical cables, RF (radio frequency), etc., or any suitable combination thereof.

[0128] In some embodiments, the client and server can communicate using any currently known or future developed network protocol, such as HTTP (HyperText Transfer Protocol), and can be interconnected with any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), an internet (e.g., the Internet), and a peer-to-peer network (e.g., an ad hoc peer-to-peer network), as well as any currently known or future developed network.

[0129] The computer-readable medium may be included in the electronic device, or may exist independently without being incorporated into the electronic device.

[0130] Optionally, when the above one or more programs are executed by the electronic device, the electronic device may also execute other steps described in the above embodiments.

[0131] Computer program code for performing the operations of the present disclosure may be written in one or more programming languages, or a combination thereof, including, but not limited to, object-oriented programming languages ​​such as Java, Smalltalk, C++, and conventional procedural programming languages ​​such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a stand-alone software package, partially on the user's computer and partially on a remote computer, or entirely on the remote computer or server. In cases involving a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., through the Internet using an Internet service provider).

[0132] The flowcharts and block diagrams in the accompanying drawings illustrate the possible implementation architecture, functions and operations of the systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each box in the flowchart or block diagram can represent a module, program segment, or a part of code, and the module, program segment, or a part of code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order than that marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can 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 flowchart, and the combination of the boxes in the block diagram and / or flowchart, can be implemented with a dedicated hardware-based system that performs the specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0133] The units involved in the embodiments described in this disclosure may be implemented in software or hardware, wherein the name of a unit does not necessarily limit the unit itself.

[0134] The functions described above herein may be performed, at least in part, by one or more hardware logic components. For example, and without limitation, exemplary types of hardware logic components that may be used include: field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chip (SOCs), complex programmable logic devices (CPLDs), and the like.

[0135] In the context of the present disclosure, a machine-readable medium can be a tangible medium that can contain or store a program for use by or in conjunction with an instruction execution system, device or equipment. A machine-readable medium can be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium can include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium can include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0136] It should be noted that, in this document, relational terms such as "first" and "second" are used only to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or gateway that includes a series of elements includes not only those elements, but also other elements that are not explicitly listed, or also includes elements that are inherent to such process, method, article or gateway. In the absence of further restrictions, the elements defined by the sentence "including a..." do not exclude the presence of other identical elements in the process, method, article or gateway that includes the elements.

[0137] The foregoing description is intended only to provide specific embodiments of the present disclosure, intended to enable those skilled in the art to understand and implement the present disclosure. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present disclosure. Therefore, the present disclosure is not intended to be limited to the embodiments described herein, but rather to be construed in the broadest manner consistent with the principles and novel features disclosed herein.

Claims

1. An electromagnetic simulation method, characterized in that: The method comprises: Acquire a first excitation source, where the first excitation source refers to an input signal for electromagnetic simulation; In the case where the first excitation source is a time domain excitation source, converting the first excitation source from a time domain excitation source to a frequency domain excitation source to obtain a second excitation source; Perform electromagnetic simulation based on the second excitation source to generate frequency domain simulation results.

2. The method according to claim 1, characterized in that The converting the first excitation source from a time domain excitation source to a frequency domain excitation source to obtain a second excitation source comprises: Determining a sampling condition corresponding to the first excitation source, and performing sampling processing on the first excitation source based on the sampling condition to obtain time domain data; Performing a transformation process on the time domain data to obtain frequency domain data, wherein the frequency domain data is used to characterize the corresponding relationship between frequency and excitation source amplitude; The frequency domain data is used as a second excitation source; or, the frequency domain data is sampled to obtain the second excitation source.

3. The method according to claim 2, characterized in that The sampling condition includes a first sampling point number, and the sampling process is performed on the first excitation source based on the sampling condition to obtain time domain data, including: Determining a maximum frequency of the first excitation source waveform, and determining a first sampling frequency based on the maximum frequency; The first excitation source is sampled based on the first sampling frequency and the first number of sampling points to obtain time domain data, wherein the time domain data is used to represent the correspondence between time and voltage waveform values.

4. The method according to claim 2, characterized in that The transforming process of the time domain data to obtain frequency domain data includes: Calculating a sampling time difference between two adjacent data in the time domain data, and calculating a second sampling frequency according to the sampling time difference; Performing Fourier transform on the voltage waveform value in the time domain data to obtain transformed data; Calculating the second number of sampling points according to the counted number of all voltage waveform values ​​included in the time domain data; The transformed data is sampled based on the second sampling frequency and the second number of sampling points to obtain the frequency domain data.

5. The method according to claim 1, wherein The performing electromagnetic simulation based on the second excitation source to generate frequency domain simulation results includes: Adding a frequency domain excitation source to a target port based on the frequency and amplitude of the second excitation source, wherein the target port refers to the port to which the excitation source is to be added; Performing electromagnetic simulation under the frequency domain excitation source to generate the frequency domain simulation result.

6. The method according to claim 5, characterized in that Adding a frequency domain excitation source to the target port based on the frequency and amplitude of the second excitation source includes: Acquiring the number of target ports, and determining a plurality of target excitation sources having the same frequency from the second excitation sources when the number of target ports is greater than a preset threshold; constructing port data based on the same frequency and the excitation source amplitudes of the plurality of target excitation sources; A frequency domain excitation source is added to each target port using the port data.

7. The method according to claim 1, characterized in that After performing electromagnetic simulation based on the second excitation source and generating frequency domain simulation results, the method includes: defining a time domain excitation signal according to the first excitation source; Based on the time domain excitation signal, a time domain simulation result corresponding to the frequency domain simulation result is generated.

8. An electromagnetic simulation device, characterized in that: The device comprises: an acquisition unit, configured to acquire a first excitation source, where the first excitation source refers to an input signal for electromagnetic simulation; a conversion unit, configured to, when the first excitation source is a time domain excitation source, convert the first excitation source from a time domain excitation source into a frequency domain excitation source to obtain a second excitation source; The simulation unit is used to perform electromagnetic simulation based on the second excitation source to generate frequency domain simulation results.

9. An electronic device, characterized in that: include: Memory; processor; as well as computer programs; The computer program is stored in the memory and is configured to be executed by the processor to implement the electromagnetic simulation method according to any one of claims 1 to 7.

10. 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 electromagnetic simulation method according to any one of claims 1 to 7 are implemented.