A method for electromagnetic field calculation based on dual-method finite-difference time-domain acceleration

By combining the dual method fusion method of explicit and implicit finite difference time domain algorithms in electromagnetic field simulation, the stability and efficiency problems of existing algorithms in complex structure simulation are solved, and efficient and accurate electromagnetic field calculations are achieved.

CN118036379BActive Publication Date: 2024-10-11BEIHANG UNIV
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410188896.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-02-20
Publication Date
2024-10-11
Estimated Expiration
2044-02-20

AI Technical Summary

Technical Problem

Existing finite difference time domain algorithms have stability limitations and numerical dispersion errors when simulating cross-scale electromagnetic targets with complex structures, and the implicit algorithm has low computational efficiency, making it difficult to meet the needs of efficient simulation in the engineering field.

Method used

The finite difference time domain acceleration method based on the dual method is used, combined with the explicit and implicit finite difference time domain algorithms, to establish boundary fusion conditions at the junction of the coarse grid and fine grid areas. The implicit algorithm iteratively calculates in the fine grid area to achieve accurate calculation of the electromagnetic field.

Benefits of technology

It improves the stability and calculation efficiency of electromagnetic field simulation, reduces numerical dispersion errors, is suitable for cross-scale electromagnetic target simulation of complex structures, and enhances the applicability of engineering applications.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118036379B_ABST
    Figure CN118036379B_ABST
Patent Text Reader

Abstract

The invention discloses an electromagnetic field calculation method based on dual-method finite-difference time-domain acceleration, which belongs to the field of computational electromagnetics. The invention uses a traditional explicit finite-difference time-domain method for a coarse-grid region, and uses an implicit unconditionally stable finite-difference time-domain algorithm for a fine-grid region; the coarse-grid region and the fine-grid region use the same large time step for iterative calculation, thereby reducing the number of iterations and improving iterative calculation efficiency; boundary conditions are constructed at the junction of the coarse-grid and fine-grid regions, so that electric and magnetic fields can be transmitted to each other through the boundary between the coarse-grid and fine-grid regions without loss, stability and high efficiency, thereby realizing smooth coupling of the two regions at the boundary.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to the field of computational electromagnetics, and in particular to an electromagnetic field calculation method based on dual-method finite-difference time-domain acceleration. Background Art

[0002] Computational electromagnetics is often used to simulate and solve the scattering characteristics, radiation characteristics and other related electromagnetic numerical characteristics of complex electromagnetic devices. Among them, the mainstream algorithm of time-domain computational electromagnetics is the finite-difference time-domain algorithm (FDTD), which has excellent characteristics such as easy parallelization, strong robustness, and convenience in solving complex materials. However, due to the Courant-Friedrichs-Lewy (CFL) stability condition, the finite-difference time-domain algorithm is still difficult to efficiently simulate cross-scale electromagnetic targets with complex structures, which limits its applicability in the engineering field.

[0003] In order to solve this technical difficulty, some scholars have proposed an implicit unconditionally stable finite-difference time-domain algorithm, which breaks through the CFL stability limit and has been proven to be stable from a mathematical theoretical level, and can effectively improve the simulation efficiency of electrically large-sized targets. However, although the CFL limit has been broken, in fact, the Courant-Friedrichs-Lewy Number (CFLN) cannot be infinite, because as the CFLN increases, the numerical dispersion error will also increase. In addition, the implicit algorithm needs to solve the inverse matrix of the step matrix of the entire calculation area, which will also reduce the calculation efficiency to a certain extent. Summary of the invention

[0004] The purpose of the present invention is to overcome the shortcomings of the prior art and provide an electromagnetic field calculation method based on dual-method finite-difference time-domain acceleration, which forms a dual-method fusion finite-difference time-domain acceleration method by fusing an explicit finite-difference time-domain algorithm with an implicit unconditionally stable finite-difference time-domain algorithm, establishes boundary fusion conditions at the interface between the coarse grid area and the fine grid area, and realizes accurate calculation of the electromagnetic field.

[0005] The object of the present invention is achieved through the following technical solution: an electromagnetic field calculation method based on dual-method finite-difference time-domain acceleration, comprising the following steps:

[0006] S1. Import the global fine grid grid information and material information, and perform splicing and synthesis operations on the outer coarse grid area, where the grid information contains the position coordinates of the cell vertices in the three axes of x, y, and z, and the material information contains the electromagnetic material parameters such as the dielectric constant, magnetic permeability, and electrical conductivity sampled by each cell. Then we need to manually determine which fine grid areas to retain. The retained fine grid areas are mainly determined by the location of the fine structure in the cross-scale target. At the same time, we need to define the coarse-fine grid ratio r, which is the ratio of the fine grid size to the coarse grid size. Then the remaining fine grid areas that are not retained need to be synthesized into coarse grid areas according to the coarse-fine grid ratio. Therefore, there is a boundary between the coarse grid area and the fine grid area. The grids on both sides of the boundary are distributed as fine grids and coarse grids respectively. The grid size of the coarse grid area is determined by the fine grid size and the grid ratio r. The material coefficient is the average value of all fine grid material coefficients used for synthesis; before iterative calculation, n=0 needs to be initialized and the maximum number of iterations n is set. max ; When the sampling time is less than 1, all field values ​​at that time are assumed to be 0;

[0007] S2. Iterative calculation of the electric field inside the coarse grid: All the coarse grid electric fields located at the boundary between the coarse grid and the fine grid are removed by iterative calculation using the explicit finite difference time domain method formula. After completing this step, the coarse grid electric field is stepped from time n to time n+1;

[0008] The calculation is as follows:

[0009]

[0010]

[0011] Among them, the superscript n, n+1, etc. represent the time sampling moment, the subscript i represents the coordinates of the electric and magnetic field quantities on the x-axis on the XOY plane, j represents the coordinates of the field quantities on the y-axis on the XOY plane, Δy is the discrete interval of the spatial partial derivative operator along the y-axis in the coarse grid area, and Δx is the discrete interval of the spatial partial derivative operator along the x-axis in the coarse grid area;

[0012] Assume that the coarse grid has N along the x-axis x There are N along the y-axis. y The coordinates of the coarse grid that overlaps the fine grid area are from ii along the x-axis. min to ii max , along the y-axis from jj min To jj max , satisfying relation 1 <ii min <=ii max <N x , 1 <jj min <=jj max <N y, define the number of fine grids distributed along the x-axis in the fine grid area as n x =(ii max -ii min +1)×r, the number of fine grids distributed along the y-axis in the fine grid area is n y =(jj max -jj min +1)×r;

[0013] In step S2, for E x For example, when the subscripts i and j satisfy: ii min <=i<=ii max And jj min <=j<=jj max When +1, the corresponding E is not calculated x , that is, only i∈(1,ii min )∪(ii max ,N x ) and j∈(1,jj min )∪(jj min +1,N x ), for each combination of i and j, calculate

[0014] In step S2, for E y For example, when the subscripts i and j satisfy: ii min <=i<=ii max +1 and jj min <=j<=jj max When E is not calculated y , that is, only i∈(1,ii min )∪(ii max +1,N x ) and j∈(1,jj min )∪(jj min ,N x ), for each combination of i and j, calculate

[0015] Δt is the calculation time interval, which needs to satisfy the CFL stability condition:

[0016]

[0017] Among them, μ min , ε min They represent the minimum conductivity and the minimum dielectric constant in the calculation area respectively.

[0018] S3. Calculate the coarse grid electric field at the interface: perform correction iteration on these coarse grid electric fields. After completing this step, all the electric fields of the coarse grids are stepped from time n to time n+1;

[0019] The correction method is as follows:

[0020] Since the fine grid area is nested in the coarse grid area, the coarse and fine grid boundaries are divided into four boundaries: top, bottom, left and right. The coarse grid electric field on each boundary is as follows:

[0021] There are Ex components on the left and right boundaries:

[0022] For the Ex component on the left boundary, the subscripts i, j satisfy: j = jj min And ii min <=i<=ii max , calculate for each combination of i and j That is, calculate the coarse grid electric field at the left boundary:

[0023]

[0024] in,

[0025] For the Ex component on the right boundary, the subscripts i, j satisfy: j = jj max +1 and ii min <=i<=ii max , calculate for each combination of i and j That is, calculate the coarse grid electric field at the right boundary:

[0026]

[0027] There are only Ey components on the upper and lower boundaries:

[0028] For the Ey component on the lower boundary, the subscripts i, j satisfy: i = ii min And jj min <=j<=jj max , calculate for each combination of i and j That is, calculate the coarse grid electric field at the lower boundary:

[0029]

[0030] in,

[0031] For the Ey component on the upper boundary, the subscripts i, j satisfy: i = ii max +1 and jj min <=j<=jj max , calculate for each combination of i and j That is, calculate the coarse grid electric field at the lower boundary:

[0032]

[0033] S4. Iterative calculation of the electric field inside the fine grid: All fine grid electric fields located at the boundary between the coarse grid and the fine grid are removed through iterative calculation using the explicit finite-difference time-domain method (electric field ey) and the unconditionally stable implicit finite-difference time-domain method (electric field ex). After completing this step, the fine grid electric field is stepped from time n to time n+1.

[0034] The calculation process is as follows:

[0035]

[0036]

[0037]

[0038] The symbol “^” above the coordinate symbol i, j indicates the coordinate symbol in the fine grid area, and It is an intermediate auxiliary variable and is not output as the final result. f with Δy f is the discrete spacing of the spatial partial derivative operator in the fine grid area, which is related to the grid ratio between the coarse grid and the fine grid and is represented by the symbol r. Variable h z , e x The calculation equation is in implicit form, and the result is solved by matrix inversion calculation.

[0039] S5. Calculate the electric field of the fine grid at the interface: Use the electric field value of the coarse grid at the interface to perform spatial interpolation to obtain the electric field value of the fine grid at the boundary. After completing this step, all the electric fields of the fine grid are stepped from time n to time n+1;

[0040] For the calculation formula of the fine grid electric field Ex on the left interface, the interpolation method is as follows:

[0041]

[0042] Where m = 1,…,r; j = jj min And ii min <=i<=ii max ,

[0043] For the calculation formula of the fine grid electric field Ex on the right interface, the interpolation method is as follows:

[0044]

[0045] Where m = 1,…,r; j = jj max +1 and ii min <=i<=iimax ,

[0046] For the calculation formula of the fine grid electric field Ey on the lower interface, the interpolation method is as follows:

[0047]

[0048] Where m = 1,…,r; i = ii min And jj min <=j<=jj max ,

[0049] For the calculation formula of the fine grid electric field Ey on the upper interface, the interpolation method is as follows:

[0050]

[0051] Where m = 1,…,r; i = ii max +1 and jj min <=j<=jj max ,

[0052] S6. Calculate the magnetic field in the coarse grid area: All magnetic fields in the coarse grid area are calculated by the explicit time-domain finite-difference method. All magnetic fields in the coarse grid are stepped from time n+1 / 2 to time n+3 / 2.

[0053] The calculation is as follows:

[0054]

[0055] S7. Calculate the magnetic field in the fine grid area: Calculate all magnetic fields in the fine grid area using the unconditionally stable implicit finite difference time-domain method. At this time, the magnetic field value on the coarse grid side next to the coarse-fine grid boundary needs to be used as the initial value for solving the tridiagonal matrix of the fine grid magnetic field. After completing this step, all magnetic fields in the fine grid are stepped from time n+1 / 2 to time n+3 / 2.

[0056] The calculation is as follows:

[0057]

[0058]

[0059] The symbol “^” above the coordinate symbol i, j indicates that it is the coordinate symbol in the fine grid area, and It is an intermediate auxiliary variable and is not output as the final result. f with Δy fis the discrete spacing of the spatial partial derivative operator in the fine grid area, which is related to the grid ratio between the coarse grid and the fine grid and is represented by the symbol r. Variable h z , e x The calculation equation is in implicit form, and the result is solved by matrix inversion calculation.

[0060] S8. After all calculations are completed, n=n+1, and then n is judged. If n is less than or equal to n max , then return to step S2; if n is greater than n max , the loop is terminated and the result is output. The output result is used as an observation array, which records the field values ​​of the electromagnetic field obtained in steps S2-S7 at each moment; it can be used to calculate electromagnetic parameters such as S parameters, field value variation curve over time, and resonant frequency. By analyzing these parameters, the characteristics of electromagnetic devices can be fully understood in detail, which is convenient for subsequent use and design improvement.

[0061] The beneficial effect of the present invention is that the present invention solves the Maxwell curl equations by fusing the traditional explicit finite-difference time-domain algorithm with the implicit unconditionally stable finite-difference time-domain algorithm to form a new dual-method fusion finite-difference time-domain acceleration method. It is necessary to establish boundary fusion conditions at the interface between the coarse grid area and the fine grid area to ensure the stability, efficiency and accuracy of the new fusion algorithm. BRIEF DESCRIPTION OF THE DRAWINGS

[0062] Figure 1 is a flow chart of the method of the present invention;

[0063] Figure 2 Schematic diagram of sub-grid distribution when the grid ratio r=5;

[0064] Figure 3 Schematic diagram of the electric field inside the coarse grid that needs to be calculated;

[0065] Figure 4 This is a schematic diagram of the coarse grid electric field at the interface that needs to be calculated;

[0066] Figure 5 Schematic diagram of the electric field inside the fine grid that needs to be calculated;

[0067] Figure 6 Schematic diagram of the fine grid electric field at the interface that needs to be calculated;

[0068] Figure 7 This is a schematic diagram of the coarse grid magnetic field that needs to be calculated;

[0069] Figure 8 Schematic diagram of the fine grid magnetic field that needs to be calculated;

[0070] Fig. 9Schematic diagram of field quantity distribution of FDTD unit cell in two-dimensional transverse electric wave mode;

[0071] Fig.10 This is a schematic diagram of the field distribution at the interface between coarse and fine grids when the two methods are fused;

[0072] Fig.11 Schematic diagram of the structure of a two-dimensional iris filter;

[0073] Fig.12 For different methods |S 21 |Comparison chart of calculation results. DETAILED DESCRIPTION

[0074] The technical solution of the present invention is further described in detail below in conjunction with the accompanying drawings, but the protection scope of the present invention is not limited to the following.

[0075] like Figure 1 As shown, a method for calculating an electromagnetic field based on dual-method finite-difference time-domain acceleration, a two-dimensional transverse electric wave mode (TE) in an electromagnetic field, comprises the following steps:

[0076] S1. Import the global fine grid grid point information and material information, and perform splicing and synthesis operations on the outer coarse grid area. The grid point information contains the position coordinates of the cell vertices in the three axes of x, y, and z, and the material information contains the electromagnetic material parameters such as the dielectric constant, magnetic permeability, and electrical conductivity sampled by each cell. Then we need to manually determine which fine grid areas to retain. The retained fine grid areas are mainly determined by the location of the fine structure in the cross-scale target. At the same time, we need to define the coarse-fine grid ratio r, which is the ratio of the fine grid size to the coarse grid size. Then the remaining fine grid areas that are not retained need to be synthesized into coarse grid areas according to the coarse-fine grid ratio. Therefore, there is a boundary between the coarse grid area and the fine grid area. The grids on both sides of the boundary are distributed as fine grids and coarse grids respectively. The grid size of the coarse grid area is determined by the fine grid size and the grid ratio r. The material coefficient is taken as the average value of all fine grid material coefficients used for synthesis. Figure 2 A schematic diagram of the subgrid distribution when the grid ratio r = 5 is given; before iterative calculation, it is necessary to initialize n = 0 and set the maximum number of iterations n max , it should be noted here that when the sampling time is less than or equal to 1, all field values ​​at that time are assumed to be 0, which is also in line with objective physical laws. For the electric and magnetic field components of interest, an observation array can be set to record the field values ​​of these components at each time step, which is convenient for data post-processing after the time cycle;

[0077] S2. Iterative calculation of the electric field inside the coarse grid: All the coarse grid electric fields located at the boundary between the coarse grid and the fine grid are iteratively calculated by the explicit finite difference time domain method formula. The value of the coarse grid electric field at time n and the value of the coarse grid magnetic field at time n+1 / 2 are required. After completing this step, the coarse grid electric field is stepped from time n to time n+1. The coarse grid internal electric field to be calculated (indicated by the black arrow) is as follows: Figure 3 As shown;

[0078] S3. Calculate the coarse grid electric field at the interface: To modify and iterate these coarse grid electric fields, the value of the coarse grid electric field at time n, the value of the coarse grid magnetic field and the fine grid magnetic field at time n+1 / 2 are required. After completing this step, all the electric fields of the coarse grid are stepped from time n to time n+1; the coarse grid electric field at the interface to be calculated (indicated by the black arrow) is as follows Figure 4 As shown;

[0079] S4. Iterative calculation of the electric field inside the fine grid: All fine grid electric fields except those located at the boundary between the coarse grid and the fine grid are iteratively calculated by the explicit finite-difference time-domain method (electric field ey) and the unconditionally stable implicit finite-difference time-domain method (electric field ex). The value of the fine grid electric field at time n and the value of the fine grid magnetic field at time n+1 / 2 are required. After completing this step, the fine grid electric field is stepped from time n to time n+1. The fine grid internal electric field to be calculated (indicated by the black arrow) is as follows: Figure 5 shown.

[0080] S5. Calculate the electric field of the fine grid at the interface: Use the electric field value of the coarse grid at the interface to perform spatial interpolation to obtain the electric field value of the fine grid at the boundary. After completing this step, all the electric fields of the fine grid are stepped from time n to time n+1; the calculated electric field of the fine grid at the interface (indicated by the black arrow) is as follows Figure 6 As shown;

[0081] S6. Calculate the magnetic field in the coarse grid area: The explicit finite difference time domain method is used to calculate all the magnetic fields in the coarse grid area. The value of the coarse grid magnetic field at time n+1 / 2 and the value of the coarse grid electric field at time n+1 are required. All the magnetic fields in the coarse grid are stepped from time n+1 / 2 to time n+3 / 2. The calculated coarse grid magnetic field (represented by the gray circle) is shown in Figure 7 As shown;

[0082] S7. Calculate the magnetic field in the fine grid area: Calculate all magnetic fields in the fine grid area using the unconditionally stable implicit finite difference time-domain method. The values ​​of the fine grid magnetic field and the coarse grid magnetic field at time n+1 / 2 and the value of the fine grid electric field at time n+1 are required. At this time, the magnetic field value on the coarse grid side next to the coarse-fine grid boundary is used as the initial value for solving the tridiagonal matrix of the fine grid magnetic field. After completing this step, all magnetic fields in the fine grid are stepped from time n+1 / 2 to time n+3 / 2. The fine grid magnetic field to be calculated (represented by the gray circle) is as follows: Figure 8 shown.

[0083] S8. After all calculations are completed, n=n+1, and then n is judged. If n is less than or equal to n max , then return to step S2; if n is greater than n max , the loop is terminated and the result is output.

[0084] Derivation of the explicit finite-difference time-domain algorithm formula for coarse-grid regions:

[0085] According to the classical Maxwell electromagnetic field theory, the relationship between the time-varying electric field and magnetic field curl can be expressed as follows:

[0086]

[0087]

[0088] Where H is the magnetic field intensity (A / m); D is the electric flux density (C / m 2 ); J is the current density (A / m 2 ); E is the electric field strength (V / m); B is the magnetic flux density (Wb / m 2 ), is the curl operator, × is the cross product symbol, It is the partial derivative operator in the time domain. The finite difference time domain algorithm is developed from the discretization of the two curl equations in Maxwell's equations. It uses the second-order central difference approximation method to discretize the space domain and the time domain, and obtains a set of differential iterative equations with discrete sampling in time and space.

[0089] To facilitate the derivation of the formula, the Maxwell curl equation is applied to linear, lossless, non-dispersive media. To simplify the derivation process, the explicit finite-difference time-domain formula for the two-dimensional transverse electric wave mode is derived here.

[0090] Assuming that the space is passive, the above two curl formulas can be simplified to the two-dimensional transverse electric wave mode:

[0091]

[0092]

[0093]

[0094] Wherein, μ represents magnetic permeability (H / m); ε represents dielectric constant (F / m); σ represents electrical conductivity (S / m). x is the electric field strength in the x direction, E y is the electric field strength in the y direction, H z is the magnetic field strength in the z direction. is the partial derivative operator in the x direction, is the partial derivative operator in the y direction.

[0095] If the second-order central difference is used for the above partial derivative operator, the traditional explicit finite-difference time-domain formula applicable to the two-dimensional transverse electric wave mode can be obtained. It can be seen that these formulas are unit formulas for a single element. In the actual calculation process, each field quantity needs to be traversed along the x and y axes to obtain all the field values ​​at a certain moment:

[0096]

[0097]

[0098]

[0099] Among them, the superscript n, n+1, etc. represent the time sampling moment, the subscript i represents the coordinates of the electric and magnetic field quantities on the x-axis on the XOY plane, j represents the coordinates of the field quantity on the y-axis on the XOY plane, Δy is the discrete interval of the spatial partial derivative operator along the y-axis in the coarse grid area, and Δx is the discrete interval of the spatial partial derivative operator along the x-axis in the coarse grid area. For ease of understanding, we give a schematic diagram of the unit grid and its field quantity distribution in the coarse grid area under the two-dimensional transverse electric wave mode, as shown in Fig. 9 As shown in the figure, the position distribution of the field quantity in the fine grid area is similar, except that the unit grid is smaller than the coarse grid; from the figure, it can be seen that for the two-dimensional transverse electric wave mode, if the FDTD method is used for discrete simulation calculation, the magnetic field component is distributed in the center of the cell, and the electric field component is distributed on the edges of the cell. When calculating the z-direction magnetic field of the coarse grid at time n+3 / 2, the field values ​​of the four electric fields around at time n and the field value of the z-direction magnetic field of the coarse grid at time n+1 / 2 are required. Similarly, when calculating the electric field of the n+1 coarse grid, the magnetic field around at time n+1 / 2 and the field value of the coarse grid electric field at time n are required.

[0100] Δt is the calculation time interval, which needs to satisfy the CFL stability condition:

[0101]

[0102] Among them, μ min , εmin They represent the minimum conductivity and the minimum dielectric constant in the calculation area respectively.

[0103] So far, the derivation of the explicit finite-difference time-domain algorithm for the two-dimensional transverse electric wave mode has been completed.

[0104] The unconditionally stable finite-difference time-domain algorithm is used in the fine-grid region:

[0105] The implicit method we use here is the Leapfrog ADI-FDTD algorithm. For three-dimensional space, we give its final iterative calculation formula:

[0106] Implicit electric field calculation formula:

[0107]

[0108] Implicit magnetic field calculation formula:

[0109]

[0110] Where E=[E x ,E y ,E z ] T ,H=[H x ,H y ,H z ] T , E and H respectively carry the electric field and magnetic field in the x, y, and z directions, while A and B are symbol matrices containing spatial differential operators in different directions:

[0111]

[0112] Since we are considering the two-dimensional transverse electric mode here, we need to simplify the implicit electric field and implicit magnetic field formulas above to obtain the formula for the two-dimensional transverse electric mode:

[0113]

[0114]

[0115]

[0116]

[0117]

[0118] The symbol “^” above the coordinate symbol i, j indicates the coordinate symbol in the fine grid area, and It is an intermediate auxiliary variable and is not output as the final result.f with Δy f is the discrete spacing of the spatial partial derivative operator in the fine grid area, which is related to the grid ratio between the coarse grid and the fine grid. We use the symbol r to represent this ratio. Then When the grid ratio between the coarse grid and the fine grid is 1:5, r=5.

[0119] By observation, we can find that at this time, the variable h z , e x They cannot be solved directly through explicit iteration because their calculation equations are in implicit form and matrix inversion calculations are required to solve the results.

[0120] Correction formula for the interface between coarse and fine grids:

[0121] After deriving the calculation formulas for the coarse grid area and the fine grid area, we need to focus on the correction formula at the interface. Before correcting the formula, we give a detailed diagram to illustrate the distribution of the field quantity at the interface, such as Fig.10 As shown (for the convenience of explaining the problem, the coarse and fine grid ratio r is set to 5):

[0122] The correction formula is divided into two parts, which respectively correct the coarse grid electric field on the interface and the fine grid electric field on the interface.

[0123] When the grid ratio is r = 5, taking the field distribution on a single boundary as an example, the coarse grid electric field on the interface needs to be corrected to:

[0124]

[0125] in, That is, the calculation formula of the coarse grid electric field located on the interface, which originally only required the participation of the coarse grid magnetic field in the calculation, was corrected, and it was changed to require the joint calculation of the coarse grid magnetic field on the left and the fine grid magnetic field on the right. The reason for this correction is that both the coarse grid area and the fine grid area are truncated at the interface, and the coarse grid electric field and the fine grid electric field located on the interface can no longer be iteratively calculated using the existing formula, so the existing formula needs to be corrected.

[0126] We have also modified the calculation formula for the fine grid electric field on the interface:

[0127] For the calculation formula of the fine grid electric field Ex on the left interface, the interpolation method is as follows:

[0128]

[0129] Where m = 1,…,r; j = jj min And ii min<=i<=ii max ,

[0130] For the calculation formula of the fine grid electric field Ex on the right interface, the interpolation method is as follows:

[0131]

[0132] Where m = 1,…,r; j = jj max +1 and ii min <=i<=ii max ,

[0133] For the calculation formula of the fine grid electric field Ey on the lower interface, the interpolation method is as follows:

[0134]

[0135] Where m = 1,…,r; i = ii min And jj min <=j<=jj max ,

[0136] For the calculation formula of the fine grid electric field Ey on the upper interface, the interpolation method is as follows:

[0137]

[0138] Where m = 1,…,r; i = ii max +1 and jj min <=j<=jj max ,

[0139] It can be seen that the fine-grid electric field on the interface is directly obtained by interpolating the corrected main-grid electric field. This is because the fine-grid electric field on the interface cannot be calculated according to the existing iterative formula, and requires the surrounding coarse-grid magnetic field and the fine-grid magnetic field to work together to calculate. Therefore, the simplest and most effective method is to directly interpolate the fine-grid electric field with the corrected coarse-grid electric field on the interface.

[0140] In the embodiment of the present application, in order to demonstrate the advantages of the proposed dual-method fusion method such as high efficiency, accuracy, and stability, we use a two-dimensional iris filter structure to demonstrate the technical effect of the algorithm, such as Fig.11 As shown, Δx is the discrete length of the coarse grid along the x-axis, and Δy is the discrete length of the coarse grid along the y-axis. At the same time, the excitation source marked by the dotted line on the left side adopts a Gaussian pulse source: τ=1.52 / (πf max ), f max=0.4GHz t0=3.673τ, the excitation source can excite a wide spectrum signal of 0-4GHz in this two-dimensional filter structure; two PEC sheets with small holes are added in the middle to filter specific frequency bands; the observation points marked with dashed segments on the right record the field values ​​of the electric and magnetic fields at different times as time steps change to solve the S parameters, and finally introduce absorption boundary conditions on the left and right sides of the entire area to absorb the incoming waves along the y direction. The size of the entire calculation area is 4m×0.7m, and the grid size of the coarse grid area is divided into 0.05m×0.05m. In the example of this technical effect verification, we set the grid ratio r to 5, then the corresponding unit grid size of the fine grid area is 0.01m×0.01m.

[0141] In this example, we calculated three types of results: the coarse grid result with a grid size of 0.05m×0.05m for the entire area, the fine grid result with a grid size of 0.01m×0.01m for the entire area, and the accelerated result of the dual-method fusion. Fig.12 As shown in the figure, it can be seen that the |S21| parameter calculated by coarse grid FDTD is different from the |S 21 The difference in parameters is the largest, because the calculation accuracy of FDTD is affected by the size of the grid. Using a coarse grid around the fine PEC sheet will reduce the calculation accuracy. The calculation results of the dual-method fusion acceleration method are in good agreement with the calculation results of the fine grid FDTD. This is because the dual-method fusion acceleration method uses the same grid size as the fine grid around the PEC sheet, which ensures the accurate division of the fine part of the filter structure, thereby ensuring the overall calculation accuracy.

[0142] At the same time, in order to analyze in more detail, we further summarize the various data involved in the calculation of different methods, as shown in Table 1. Table 1 compares the data involved in the calculation of three methods: fine grid FDTD, coarse grid FDTD and dual method fusion acceleration method.

[0143] Table 1 Comparison of computational overhead of fine grid, coarse grid, and dual-method fusion acceleration methods

[0144]

[0145] In Table 1, the time step refers to the value used in each iterative calculation of the time domain calculation method. The maximum stable time step of the fine grid FDTD is set to the standard step, which is determined by the CFL condition. The time step used by the other methods in the iterative calculation is divided by the standard step, which is recorded as CFLN. The calculation time refers to the total time consumed between the two steps of introducing the excitation source and calculating the S parameters of the entire area. As can be seen from Table 1, the coarse grid calculation speed is the fastest, but as can be seen from the previous text, its calculation accuracy is also the worst. Since the dual method fusion acceleration method uses a larger CFLN, the calculation speed of the dual method fusion acceleration method is significantly better than the fine grid method. Compared with the fine grid method, the calculation efficiency is improved by 33.21% ((26.65-17.80) / (26.65)), and as can be seen from the previous text, the dual method fusion acceleration method has similar calculation accuracy to the fine grid method.

[0146] Therefore, in summary, compared with the traditional FDTD method, the dual-method fusion acceleration method proposed in the present invention can greatly improve the overall calculation efficiency while maintaining the calculation accuracy, has the potential for practical engineering applications, and has prospects for commercial development.

[0147] The above is a preferred embodiment of the present invention. It should be understood that the present invention is not limited to the form disclosed herein, and should not be regarded as excluding other embodiments, but can be used in other combinations, modifications and environments, and can be modified within the scope of the concept described herein through the above teachings or the technology or knowledge of the relevant field. The changes and modifications made by those skilled in the art do not depart from the spirit and scope of the present invention, and should be within the scope of protection of the claims attached to the present invention.

Claims

1. An electromagnetic field calculation method based on dual-method finite-difference time-domain acceleration, Features: The following steps are involved: S1. Import the global fine grid point information and material information, and perform the splicing and synthesis operation of the coarse grid area, initialize n = 0, and set the maximum number of iterations n max ; S2. Iterative calculation of the electric field inside the coarse grid: All the coarse grid electric fields located at the boundary between the coarse and fine grids are removed by iterative calculation using the explicit finite difference time domain method formula: S3. Calculate the coarse grid electric field at the interface: perform correction iteration on these coarse grid electric fields: S4. Iterative calculation of the electric field inside the fine grid: All fine grid electric fields located at the boundary between the coarse grid and the fine grid are removed by iterative calculation using the explicit finite-difference time-domain method and the unconditionally stable implicit finite-difference time-domain method formulas; In step S4, the value of the fine grid electric field at time n and the value of the fine grid magnetic field at time n+1 / 2 are required. After completing this step, the fine grid electric field is stepped from time n to time n+1. The calculation process is as follows: Where Δt is the calculation time interval, μ represents the magnetic permeability, and ε represents the dielectric constant; the symbol "^" above the coordinate symbols i and j indicates that they are coordinate symbols in the fine grid area, and It is an intermediate auxiliary variable and is not output as the final result. f with Δy f is the discrete spacing of the spatial partial derivative operator in the fine grid area, which is related to the grid ratio between the coarse grid and the fine grid and is represented by the symbol r. Variable h z , e x The calculation equation is in implicit form, and the result is solved by performing matrix inversion calculation; S5. Calculate the electric field of the fine grid at the interface: Use the electric field value of the coarse grid at the interface to perform spatial interpolation to obtain the electric field value of the fine grid at the boundary. After completing this step, all the electric fields of the fine grid are stepped from time n to time n+1; S6. Calculate the magnetic field in the coarse grid area: Calculate all magnetic fields in the coarse grid area by explicit finite difference time domain method: S7. Calculate the magnetic field in the fine grid area: Calculate all magnetic fields in the fine grid area by using the unconditionally stable implicit finite-difference time-domain method; S8. After all calculations are completed, let n = n + 1, then make a judgment on n, if n is less than or equal to n max , then return to step S2; if n is greater than n max , the loop is terminated.

2. According to claim 1, an electromagnetic field calculation method based on dual-method finite-difference time-domain acceleration, Features: The step S1 comprises: S101. Import global fine grid point information and material information: The fine grid point information includes the position coordinates of the cell vertices in the x, y, and z axis directions, and the material information includes the electromagnetic material parameters of each cell, wherein the electromagnetic material parameters include dielectric constant, magnetic permeability, and electrical conductivity; S102. Given a fine grid area to be retained, define a coarse-fine grid ratio r, where r is the ratio of the fine grid size to the coarse grid size, and synthesize the fine grid area not to be retained into a coarse grid area according to the coarse-fine grid ratio; There is a boundary between the coarse mesh area and the fine mesh area, the meshes on both sides of the boundary are distributed as fine meshes and coarse meshes respectively, the mesh size of the coarse mesh area is determined by the fine mesh size and the mesh ratio r, and the material coefficient is the average value of all fine mesh material coefficients used for synthesis; S103. Before iterative calculation, it is necessary to initialize n=0 and set the maximum number of iterations n max When the sampling time is less than 1, all field values ​​at that time are set to 0 by default.

3. The electromagnetic field calculation method based on dual-method finite-difference time-domain acceleration according to claim 1, Features: In step S2, calculation needs to be performed based on the value of the coarse grid electric field at time n and the value of the coarse grid magnetic field at time n+1 / 2. After the calculation is completed, the grid electric field is stepped from time n to time n+1. The calculation is as follows: Among them, the superscript n, n+1 represent the time sampling moment, the subscript i represents the coordinates of the electric and magnetic field quantities on the x-axis on the XOY plane, j represents the coordinates of the field quantity on the y-axis on the XOY plane, Δy is the discrete interval of the spatial partial derivative operator along the y-axis in the coarse grid area, and Δx is the discrete interval of the spatial partial derivative operator along the x-axis in the coarse grid area; Assume that the coarse grid has N along the x-axis x There are N along the y-axis. y The coordinates of the coarse grid that overlaps the fine grid area are from ii along the x-axis. min To ii max , along the y-axis from jj min To jj max , satisfying relation 1 <ii min <=ii max <N x , 1 <jj min <=jj max <N y , define the number of fine grids distributed along the x-axis in the fine grid area as n x =(ii max -ii min +1)×r, the number of fine grids distributed along the y-axis in the fine grid area is n y =(jj max -jj min +1)×r; In step S2, for E x For example, when the subscripts i and j satisfy: ii min <=i<=ii max And jj min <=j<=jj max When +1, the corresponding E is not calculated x , only need to be in i∈(1,ii min )∪(ii max ,N x ) and j∈(1,jj min )∪(jj min +1,N x ), for each combination of i and j, calculate In step S2, for E y For example, when the subscripts i and j satisfy: ii min <=i<=ii max +1 and jj min <=j<=jj max When E is not calculated y , only need to be in i∈(1,ii min )∪(ii max +1,N x ) and j∈(1,jj min )∪(jj min ,N x ), for each combination of i and j, calculate Δt is the calculation time interval, which needs to satisfy the CFL stability condition: Among them, μ min , ε min They represent the minimum conductivity and the minimum dielectric constant in the calculation area respectively.

4. The electromagnetic field calculation method based on dual-method finite-difference time-domain acceleration according to claim 1, Features: In step S3, the correction method is as follows: Since the fine grid area is nested in the coarse grid area, the coarse and fine grid boundaries are divided into four boundaries: top, bottom, left and right. The coarse grid electric field on each boundary is as follows: There are Ex components on the left and right boundaries: For the Ex component on the left boundary, the subscripts i, j satisfy: j = jj min And ii min <=i<=ii max , for each combination of i and j, calculate the coarse grid electric field at the left boundary in, For the Ex component on the right boundary, the subscripts i, j satisfy: j = jj max +1 and ii min <=i<=ii max , for each combination of i and j, calculate the coarse grid electric field at the right boundary There are only Ey components on the upper and lower boundaries: For the Ey component on the lower boundary, the subscripts i, j satisfy: i = ii min And jj min <=j<=jj max , for each combination of i and j, calculate the coarse grid electric field at the lower boundary in, For the Ey component on the upper boundary, the subscripts i, j satisfy: i = ii max +1 and jj min <=j<=jj max , for each combination of i and j, calculate the coarse grid electric field at the lower boundary 5. The electromagnetic field calculation method based on dual-method finite-difference time-domain acceleration according to claim 1, Features: In step S5 For the calculation formula of the fine grid electric field Ex on the left interface, the interpolation method is as follows: Where m = 1,…,r; j = jj min And ii min <=i<=ii max , For the calculation formula of the fine grid electric field Ex on the right interface, the interpolation method is as follows: Where m = 1,…,r; j = jj max +1 and ii min <=i<=ii max , For the calculation formula of the fine grid electric field Ey on the lower interface, the interpolation method is as follows: Where m = 1,…,r; i = ii min And jj min <=j<=jj max , For the calculation formula of the fine grid electric field Ey on the upper interface, the interpolation method is as follows: Where m = 1,…,r; i = ii max +1 and jj min <=j<=jj max , 6. The electromagnetic field calculation method based on dual-method finite-difference time-domain acceleration according to claim 1, Features: In step S6, the calculation process needs to use the value of the coarse grid magnetic field at time n+1 / 2 and the value of the coarse grid electric field at time n+1. All magnetic fields of the coarse grid are stepped from time n+1 / 2 to time n+3 / 2. The calculation method is as follows:

7. The electromagnetic field calculation method based on dual-method finite-difference time-domain acceleration according to claim 1, Features: In step S7, the calculation process needs to use the values ​​of the fine grid magnetic field and the coarse grid magnetic field at time n+1 / 2, and the value of the fine grid electric field at time n+1. At this time, the magnetic field value on the coarse grid side next to the coarse-fine grid boundary needs to be used as the initial value when solving the tridiagonal matrix of the fine grid magnetic field. After completing this step, all magnetic fields of the fine grid are stepped from time n+1 / 2 to time n+3 / 2, and the calculation method is as follows: The symbol "^" above the coordinate symbol i, j indicates that it is the coordinate symbol in the fine grid area, and It is an intermediate auxiliary variable and is not output as the final result. f with Δy f is the discrete spacing of the spatial partial derivative operator in the fine grid area, which is related to the grid ratio between the coarse grid and the fine grid and is represented by the symbol r. Variable h z , e x The calculation equation is in implicit form, and the result is solved by matrix inversion calculation.