Electromagnetic field simulation method based on face-centered cube and sub-grid

Through the electromagnetic field simulation method of the surface center cube and sub-grid, combined with periodic boundary conditions and metal plates, the high consumption problem of traditional Cartesian mesh during fine model simulation is solved, efficient electromagnetic field simulation is achieved, and simulation efficiency is significantly improved and fineness.

CN117951886BActive Publication Date: 2024-11-15ANHUI UNIV
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410019009.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-01-05
Publication Date
2024-11-15
Estimated Expiration
2044-01-05

AI Technical Summary

Technical Problem

Traditional Cartesian mesh is expensive in time and memory when simulating fine models, and different size models require different meshing, resulting in low simulation efficiency.

Method used

The electromagnetic field simulation method based on the surface center cube and sub-grid is adopted. By setting periodic boundary conditions and metal plates, combining the sampling point distribution and update equation of FDTD, the update equation of the surface center cube is generated to realize the junction field value of the thickness grid. Exchange and weighting processing.

Benefits of technology

It significantly improves simulation efficiency, reduces time cost and memory consumption, and improves simulation precision. The fine part of the simulation adopts fine meshing, and the update equations are simple, which significantly improves simulation efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117951886B_ABST
    Figure CN117951886B_ABST
Patent Text Reader

Abstract

The present invention discloses an electromagnetic field simulation method based on a face-centered cube and a sub-grid, comprising: based on a face-centered cube, FDTD and a sub-grid, setting periodic boundary conditions and a metal plate, and constructing an electromagnetic field simulation model; setting a source point in the sub-grid region through the electromagnetic field simulation model, selecting a detection point, simulating the electromagnetic field, and obtaining a time domain waveform of the electric field in the simulation region. The method provided by the present invention can reduce the time cost and memory consumption required for simulation during the simulation process, and improve the simulation efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention belongs to the field of electromagnetic field simulation, and in particular relates to an electromagnetic field simulation method based on a face-centered cube and a sub-grid. Background Art

[0002] Whether it is a traditional Cartesian grid or a face-centered cube grid, both grids use a uniform spatial division size for modeling. When the model structure is relatively fine, the time cost and memory consumption required for simulation will increase significantly, which seriously affects the simulation efficiency. In recent years, there are many methods to improve numerical dispersion. One of them is to use a higher-order Taylor expansion for the differential operator in the Maxwell equations. When it comes to the FDDT algorithm, it is to add more grid points to the grid to constrain the calculation. Although this method can significantly improve isotropy, the increase in grid points leads to a decrease in calculation speed. The increase in constraints makes the processing of different coal quality boundaries very complicated and difficult to implement. The second method is to modify the coefficients of the Maxwell iterative equations to change the spectral characteristics of the excitation and optimize the dispersion characteristics of specific frequency bands and specific angles. This method is not very universal, and different frequency bands and angles require other coefficients. Both of these improvement methods are based on the traditional Cartesian grid. Some researchers took a different approach and began to explore new inspiration from the chemical grid structure. Based on the theory of chemical structure, they discovered the face-centered cube grid (FCC). They then applied FCC to the electromagnetic field and wave equations, and performed related simulations. They found that compared with the traditional Cartesian grid, the FCC grid has more relaxed stability conditions and better isotropy. At present, there is little research on this method at home and abroad, and there are only a handful of related literature. Many essential elements of the FDTD method need to be studied.

[0003] For numerical simulation of models of different sizes, different mesh sizes need to be selected. Fine meshing will obtain more accurate conclusions, but it will consume a lot of time and occupy more memory capacity; while coarse meshing will result in larger relative error results, but it is faster in simulation speed and less memory burden. Therefore, the present invention provides an electromagnetic field simulation method based on face-centered cubes and subgrids. Summary of the invention

[0004] In order to solve the above technical problems, the present invention proposes an electromagnetic field simulation method based on face-centered cube and sub-grid.

[0005] To achieve the above object, the present invention provides an electromagnetic field simulation method based on a face-centered cube and a subgrid, comprising:

[0006] Based on the face-centered cube and subgrid, periodic boundary conditions and metal plates are set to build an electromagnetic field simulation model;

[0007] The electromagnetic field simulation model is used to set source points in the sub-grid area, select detection points, and simulate the electromagnetic field.

[0008] Optionally, setting the periodic boundary condition includes:

[0009] Based on the sampling point distribution of the face center cube grid combined with the sampling point distribution and update equation of FDTD, an update equation of the face center cube is obtained;

[0010] Get the structure and constants of the simulation region;

[0011] The periodic boundary conditions are generated according to the structure and constants of the simulation region and the update equations of the face-centered cube.

[0012] Optionally, providing the metal plate includes:

[0013] Based on the position of the sub-grid and the periodic boundary conditions, the metal plates are vertically arranged on both sides of the sub-grid area.

[0014] Optionally, a method for obtaining the update equation of the face center cube is:

[0015] For TE mode:

[0016]

[0017]

[0018]

[0019]

[0020] Among them, CP(m) is the first coefficient, CQ(m) is the second coefficient, H z is the magnetic field value in the z direction, i is the coordinate in the x direction, j is the coordinate in the y direction, E y is the electric field value in the y direction, E x is the electric field value in the x direction, Δx is the grid size in the x direction, Δy is the grid size in the y direction, σ(m) is the conductivity at position m, σ m is the magnetic permeability, Δt is the time step, μ is the magnetic permeability coefficient;

[0021] For TM mode:

[0022]

[0023]

[0024]

[0025] Among them, CA(m) is the third coefficient, CB(m) is the fourth coefficient, E z is the electric field value in the z direction, H y is the magnetic field in the y direction, H x is the magnetic field value in the x direction, n is the space step, n-1 represents the space step of the previous moment, n+1 represents the space step of the next moment, n-1 / 2 represents the space step of the first half of the moment, and n+1 / 2 represents the space step of the second half of the moment.

[0026] Optionally, in the TE mode, E x and E y for:

[0027]

[0028]

[0029] Optionally, in the TM mode, H x and H y for:

[0030]

[0031]

[0032] Among them, H x and H y are the magnetic field values ​​in the x and y directions respectively.

[0033] Optionally, simulation of the electromagnetic field includes:

[0034] S1. Based on the simulation area, placing the sub-grid area;

[0035] S2. Initialize the electric field component and magnetic field component of the coarse grid and the fine grid;

[0036] S3. Based on the face center cube and the initialized coarse grid electric field component, obtain the coarse grid electric field component at the next moment;

[0037] S4. Using linear interpolation, the electric field component of the coarse grid at the next moment is transferred to the fine grid, and based on the size of the coarse grid of the face center cube, the electric field component and the magnetic field component of the fine grid at the next moment are obtained;

[0038] S5. Weighting the magnetic field component of the fine grid at the next moment to obtain the magnetic field component of the coarse grid at the junction at the next moment;

[0039] S6. Based on the face center cube, obtain the magnetic field component of the coarse grid at the next moment. If the iteration time is greater than the preset iteration time, end; otherwise, return to S3.

[0040] Optionally, transferring the coarse grid electric field component at the next moment to the fine grid by using linear interpolation includes:

[0041] e x1 =E x1

[0042] e y1 =E y1

[0043]

[0044]

[0045] Among them, e x1 and e x2 are the first and second electric field values ​​in the x direction of the fine grid, E x1 and E x2 are the first and second electric field values ​​in the x direction of the coarse grid, e y1 and e y2 are the first and second electric field values ​​in the y direction of the fine grid, E y1 and E y2 are the first and second electric field values ​​in the y direction of the coarse grid, respectively.

[0046] Optionally, the method of transferring the electric field component of the coarse grid at the next moment to the fine grid by linear interpolation includes:

[0047] The magnetic field of the fine grid is processed:

[0048]

[0049] Among them, H z is the magnetic field value in the z direction of the coarse grid, h z1 、h z2 、h z3 、h z4 They are the first, second, third and fourth magnetic field values ​​in the fine grid z direction respectively.

[0050] Optionally, the electromagnetic field simulation also includes:

[0051] Acquire a waveform based on the source point;

[0052] The time domain waveform is obtained according to the waveform through the detection point to verify the simulation result.

[0053] The beneficial effects of the present invention are:

[0054] The present invention applies subgrids in the FCC grid, uses fine grid division for the simulation fine part, simplifies the updating equation, and significantly improves the simulation efficiency; the method provided by the present invention can reduce the time cost and memory consumption required for FCC algorithm simulation during the simulation process, and improves the simulation efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

[0055] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.

[0056] Figure 1 This is a flow chart of an electromagnetic field simulation method based on a face-centered cube and a sub-grid according to an embodiment of the present invention;

[0057] Figure 2 Schematic diagram of the grid structure of a two-dimensional FCC according to an embodiment of the present invention;

[0058] Figure 3 A schematic diagram of a 1 / 4 two-dimensional FCC cell of an embodiment of the present invention;

[0059] Figure 4 A schematic diagram of the electromagnetic field distribution at the junction of coarse and fine grids according to an embodiment of the present invention;

[0060] Figure 5 A schematic diagram of the specific distribution of the simulation area, sub-grids, and metal plates according to an embodiment of the present invention;

[0061] Figure 6 A comparison diagram of component time domain waveforms respectively obtained from the FCC subgrid and the FDTD simulation detection point according to an embodiment of the present invention;

[0062] Figure 7 It is a comparison diagram of component time domain waveforms respectively obtained from the FCC sub-grid and the FCC simulation detection point according to an embodiment of the present invention. DETAILED DESCRIPTION

[0063] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0064] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, the present invention is further described in detail below with reference to the accompanying drawings and specific embodiments.

[0065] like Figure 1-7 As shown, this embodiment provides an electromagnetic field simulation method based on a face-centered cube and a sub-grid, including:

[0066] Based on FCC time-domain finite difference and sub-grid, an electromagnetic field simulation model is constructed by setting periodic boundary conditions and adding metal plates. The constructed simulation model is used to simulate the electromagnetic field by setting source points in the sub-grid area, selecting detection points, and obtaining the time domain waveform of the electric field in the simulation area.

[0067] In the process of building the electromagnetic field simulation model, based on the FCC finite difference time domain, according to the distribution of each sampling point of the FCC grid, the update equation of the FCC in the form of a complete conductor boundary is obtained through the traditional FDTD sampling point distribution and update equation;

[0068] Based on the various structures and constants in the simulation area, periodic boundary conditions are generated according to the derived FCC update equations.

[0069] In the process of building an electromagnetic field simulation model, the simulation process of the model contains the following steps:

[0070] Based on the simulation area, place the sub-grid area;

[0071] Initialize the electric and magnetic field components of the coarse and fine grids;

[0072] Based on the face center cube and the initialized coarse grid electric field component, the electric field component of the coarse grid at the next moment is obtained;

[0073] Using linear interpolation to transfer the electric field component of the coarse grid at the next moment to the fine grid;

[0074] Use half the size of the FCC coarse grid to obtain the electric and magnetic field components of the fine grid at the next moment;

[0075] The magnetic field component of the coarse grid at the junction at the next moment is obtained by weighting the magnetic field component of the fine grid at the next moment;

[0076] The magnetic field component of the coarse grid at the next moment is obtained through FCC, and the time is used to determine whether to end this cycle.

[0077] In the process of building the electromagnetic field simulation model, by setting the position of the sub-grid and the periodic boundary conditions, two metal plates are selected and placed vertically on both sides of the sub-grid area;

[0078] The metal plate is provided to facilitate the acquisition of the time domain waveform of the later reflection field.

[0079] In the process of constructing the electromagnetic field simulation model, by setting the positions of the sub-grid and the metal plate, a point source is selected and placed in the central area where the sub-grid and the metal plate are perpendicular;

[0080] Select the detection point according to the point source location.

[0081] In the process of building the electromagnetic field simulation model, the update equation of the two-dimensional FCC is derived through Maxwell's equations:

[0082] For the TE mode, including formulas (1)-(7):

[0083]

[0084]

[0085]

[0086] Among them, H z is the magnetic field value in the z direction, i is the coordinate in the x direction, j is the coordinate in the y direction, CP(m) is the first coefficient, CQ(m) is the second coefficient, E y is the electric field value in the y direction, E x is the electric field value in the x direction, Δx is the grid size in the x direction, Δy is the grid size in the y direction, σ m is the magnetic permeability, Δt is the time step, n is the space step, n-1 represents the space step of the previous moment, n+1 represents the space step of the next moment, n-1 / 2 and n+1 / 2 represent the space step every half moment, among which n-1 / 2 represents the space step of the first half moment, and n+1 / 2 represents the space step of the second half moment.

[0087] For E x and E y , can be obtained

[0088]

[0089]

[0090]

[0091]

[0092] Wherein, CA(m) is the third coefficient, CB(m) is the fourth coefficient, ε(m) is the dielectric constant at the m position, and σ(m) is the conductivity at the m position.

[0093] Similarly, for the TM mode, including formulas (8)-(10):

[0094]

[0095]

[0096] Among them, E z is the electric field value in the z direction, H y is the magnetic field in the y direction, H x is the magnetic field value in the x direction.

[0097] H x and H y for:

[0098]

[0099]

[0100] Among them, H x and H y are the magnetic field values ​​in the x and y directions respectively, is the magnetic field value in the x direction at the previous moment.

[0101] After obtaining the update equation of the two-dimensional FCC, when the ratio of coarse to fine grids in the simulation area is 2:1, the field value exchange from the coarse grid to the sub-grid area is achieved by linear interpolation of the coarse grid electric field at the boundary position to the fine grid electric field at the corresponding position of the sub-grid. The linear interpolation method can be described by the following equations (11)-(14):

[0102] e x1 =E x1 (11)

[0103] e y1 =E y1 (12)

[0104]

[0105]

[0106] Among them, e x1 and e x2 are the first and second electric field values ​​in the x direction of the fine grid, E x1 and E x2 are the first and second electric field values ​​in the x direction of the coarse grid, e y1 and e y2 are the first and second electric field values ​​in the y direction of the fine grid, E y1 and E y2 are the first and second electric field values ​​in the y direction of the coarse grid,

[0107] The linear interpolation coefficient is obtained according to the distance. The interpolation method of the electric field component in the y direction is the same as that in the x direction. However, since the magnetic field of the coarse grid corresponding to the FCC fine grid is replaced by the electric field of the fine grid, the magnetic field of the fine grid needs to be processed in a certain way. The processing method is described by the following formula (15):

[0108]

[0109] Among them, H z is the magnetic field value in the z direction of the coarse grid, h z1 、h z2 、h z3 、h z4 They are the first, second, third and fourth magnetic field values ​​in the fine grid z direction respectively.

[0110] After obtaining the information of each process in the simulation area, a waveform is generated through the source point, and the required time domain waveform is obtained at the detection point, which is convenient for later verification of the correctness of the result.

[0111] It can be seen from the above technical solution that the present invention discloses the following technical effects:

[0112] The method provided by the present invention can reduce the time cost and memory consumption required for simulation during the simulation process, and improve the simulation efficiency. By comparing the time values ​​of FCC with and without sub-grids at 1:4, the efficiency can be increased by 86.39%. This method aims to reduce the time cost and memory consumption required for FCC algorithm simulation and improve the simulation efficiency when simulating a fine model. Starting from the face-centered cube grid, the update equation of the FCC grid is first given, and then the sub-grid is combined with it to provide an interpolation method different from the traditional FDTD sub-grid. Finally, according to the characteristics of the sub-grid, a weighted method for the magnetic field at the junction of the coarse and fine grids is given. Finally, in order to verify the accuracy of the algorithm, a simulation surface example with a metal plate added is proposed for verification. The accuracy of the proposed method is proved by comparing the time domain waveforms of the electric field at the detection points in the simulation area using different update methods.

[0113] like Figure 1 The simulation method shown specifically includes steps 01-07:

[0114] 01 Initialize the electric field component and magnetic field component of the coarse grid and fine grid;

[0115] 02 Obtain the electric field component of the coarse grid at the next moment through FCC;

[0116] 03Use linear interpolation to transfer to a fine grid;

[0117] 04Use half the size of the FCC coarse grid to obtain the electric and magnetic field components of the fine grid at the next moment;

[0118] 05 Obtain the magnetic field component of the coarse grid at the junction at the next moment by weighting the magnetic field component of the fine grid at the next moment;

[0119] 06 Obtain the magnetic field component of the coarse grid at the next moment through FCC;

[0120] 07 Determine whether the cycle is finished by time. If not, return to step 02.

[0121] In this embodiment, starting from Maxwell's equations:

[0122] In the two-dimensional case, the Maxwell time-domain equations for the TE mode are given by equation (16):

[0123]

[0124] The Maxwell time domain equations in TM mode are as follows:

[0125]

[0126] Among them, E x represents the value of the electric field in the x direction, E y represents the value of the electric field in the y direction, E z represents the value of the electric field in the z direction, H x represents the value of the electric field in the x direction, H y represents the value of the electric field in the y direction, H z represents the value of the electric field in the z direction; ε is the dielectric constant, μ is the magnetic permeability coefficient, σ is the conductivity, σ m Magnetic permeability.

[0127] like Figure 2 The figure shows the distribution of sampling points of the FCC two-dimensional grid: one FDTD grid contains 4 FCC grids, and the electric field of the FCC grid is distributed at the four vertices of the FCC grid. Therefore, one FDTD grid has the magnetic field of 9 FCC grids, and the magnetic field of the FCC grid is distributed in the middle of the FCC grid. One FCC grid has 4 magnetic fields.

[0128] In TE mode H z Taking the component equation as an example, the discrete format of FCC-FDTD is analyzed. For convenience, take 1 / 4 of the two-dimensional FCC cell (four electric fields surrounding a magnetic field in the middle) as Figure 3 As shown, the time partial derivative is directly discretized using the central difference method, and the spatial partial derivative is first averaged by the midpoint in each direction, and then the central difference is performed. For example, in the x direction, first E y (i+1 / 2, j) and E y (i+1 / 2, j+1 / 2) is averaged to get Ey (i+1 / 2, j+1 / 4); then by E y (i, j) and E y (i, j+1 / 4). Finally, subtract the two and divide by the spatial interval Δx / 2 to get the partial derivative in the x direction. The y direction is processed similarly, and finally H is obtained. z The discrete iterative formula for TE mode is as follows: formula (1)-(7) above; and formula (8)-(10) above is included for TM mode.

[0129] like Figure 4 The method of the present invention is specifically introduced and explained.

[0130] The traditional FDTD algorithm usually uses a uniform Yee grid to divide a specific target. When the target is too small, a finer grid is needed to divide the specific target, which will take more time and memory to complete the entire simulation process. The FCC subgrid used in this example does not need to update the electric and magnetic fields of the coarse grid of the entire simulation area. It only needs to set a fine grid in the specified area to iterate the electric and magnetic fields. Since the sampling points of the FCC grid are different from those of the FDTD, the interpolation processing of FCC is different from that of FDTD. The interpolation method used in this example is as follows: Figure 3 As shown:

[0131] When the ratio of coarse grid to fine grid in the simulation area is 2:1, the field value exchange from the coarse grid to the sub-grid area is achieved by linear interpolation of the coarse grid electric field at the boundary position to the fine grid electric field at the corresponding position of the sub-grid. The linear interpolation method can be described by the above formulas (11)-(14).

[0132] The linear interpolation coefficients are obtained according to the distance. The interpolation method of the electric field component in the y direction is the same as that in the x direction. However, since the magnetic field of the coarse grid corresponding to the FCC fine grid is replaced by the electric field of the fine grid, the magnetic field of the fine grid needs to be processed in a certain way. The processing method is described in the above formula (15).

[0133] In order to verify the correctness of the algorithm, this example takes the simulation area structure with a metal plate as an example, and uses traditional FDTD, FCC fine grid and the algorithm proposed in this example to calculate the time domain waveform of the detection point in the simulation area with the metal plate. Figure 5 As shown in the figure, metal plates with a width of 0.02 m are added to the left and right sides of the 0.2 m × 0.2 m resonant cavity, and the size of the coarse grid is 9.9931 × 10 -4 m, the size of the fine grid is 4.9965×10 -4m, the ratio of coarse to fine grid is 2:1, where the number of coarse grid calculations is 200×200 minus the number of PEC plates 2×20×90, where the number of fine grid calculations is 40×400, and the boundary condition is set to periodic boundary condition (Periodic Boundary Condition). A Gaussian excitation source is added in the middle of the fine grid area, and the pulse width is τ=5.0×10 -11 , t0=2.25×10 -10 ;

[0134] from Figure 6 and Figure 7 It can be seen that the waveform diagram obtained by the method provided by the present invention is consistent with that obtained by the traditional FDTD method, although there are some slight differences in some parts, which is due to the difference in the iterative update equations of the two methods, but it does not affect the correctness of the overall result provided by the present invention, which effectively verifies the correctness of the method provided by the present invention. For the sake of insurance, the results of the method provided by the present invention are also compared with the results of the FCC algorithm of fine grid division. It can be seen that the results of the method provided by the present invention and the results of the fine grid FCC algorithm are better consistent with the results of the fine grid traditional FDTD, thereby further verifying the accuracy of the algorithm provided by the present invention.

[0135] In order to clearly illustrate the time-saving advantage of the method provided by the present invention, Table 1 shows the comparison results of the calculation time of the method provided by the present invention and the traditional FCC method, and the method uniformly adopts 100 iterations, records the time every 2 steps, and takes the average time.

[0136] Table 1

[0137]

[0138] It can be seen from the table that, compared with the FCC grid, when the grid ratio is 1:4, the algorithm provided by the present invention can save 93.28% of the calculation time.

[0139] The embodiments described above are only descriptions of the preferred embodiments of the present invention and are not intended to limit the scope of the present invention. Without departing from the design spirit of the present invention, various modifications and improvements made to the technical solutions of the present invention by ordinary technicians in this field should all fall within the protection scope determined by the claims of the present invention.

Claims

1. Electromagnetic field simulation method based on face-centered cube and sub-grid, It is characterized in that include: Based on the face-centered cube and subgrid, periodic boundary conditions and metal plates are set to build an electromagnetic field simulation model; By using the electromagnetic field simulation model, source points are set in the sub-grid area, detection points are selected, and the electromagnetic field is simulated; Setting the periodic boundary condition includes: Based on the sampling point distribution of the face center cube grid combined with the sampling point distribution and update equation of FDTD, an update equation of the face center cube is obtained; Get the structure and constants of the simulation region; generating the periodic boundary condition according to the structure and constants of the simulation region and the update equation of the face-centered cube; For TM mode: Among them, CA(m) is the third coefficient, CB(m) is the fourth coefficient, E z is the electric field value in the z direction, H y is the magnetic field value in the y direction, H x is the magnetic field value in the x direction, n is the space step, n-1 is the space step of the previous moment, n+1 is the space step of the next moment, n-1 / 2 is the space step of the first half moment, n+1 / 2 is the space step of the second half moment, ε(m) is the dielectric constant at position m, σ(m) is the conductivity at position m, and Δt is the time step; In the TM mode, H x and H y for: Among them, CQ(m) is the second coefficient, i is the x-direction coordinate, j is the y-direction coordinate, Δx is the x-direction grid size, Δy is the y-direction grid size, and CP(m) is the first coefficient.

2. The electromagnetic field simulation method based on face-centered cube and sub-grid as claimed in claim 1, It is characterized in that Providing the metal plate comprises: Based on the position of the sub-grid and the periodic boundary conditions, the metal plates are vertically arranged on both sides of the sub-grid area.

3. The electromagnetic field simulation method based on face-centered cube and sub-grid as claimed in claim 1, It is characterized in that The method for obtaining the update equation of the face center cube is: For TE mode: Among them, CP(m) is the first coefficient, CQ(m) is the second coefficient, H z is the magnetic field value in the z direction, i is the coordinate in the x direction, j is the coordinate in the y direction, E y is the electric field value in the y direction, E x is the electric field value in the x direction, Δx is the grid size in the x direction, Δy is the grid size in the y direction, σ m is the magnetic permeability, Δt is the time step, and μ is the magnetic permeability coefficient.

4. The electromagnetic field simulation method based on face-centered cube and sub-grid as claimed in claim 3, It is characterized in that In the TE mode, E x and E y for:

5. The electromagnetic field simulation method based on face-centered cube and sub-grid as claimed in claim 1, It is characterized in that Simulating electromagnetic fields includes: S1. Based on the simulation area, placing the sub-grid area; S2. Initialize the electric field component and magnetic field component of the coarse grid and the fine grid; S3. Based on the face center cube and the initialized coarse grid electric field component, obtain the coarse grid electric field component at the next moment; S4. Using linear interpolation, the electric field component of the coarse grid at the next moment is transferred to the fine grid, and based on the size of the coarse grid of the face center cube, the electric field component and the magnetic field component of the fine grid at the next moment are obtained; S5. Weighting the magnetic field component of the fine grid at the next moment to obtain the magnetic field component of the coarse grid at the junction at the next moment; S6. Based on the face center cube, obtain the magnetic field component of the coarse grid at the next moment. If the iteration time is greater than the preset iteration time, end; otherwise, return to S3.

6. The electromagnetic field simulation method based on face-centered cube and sub-grid as claimed in claim 5, It is characterized in that Transferring the coarse grid electric field component at the next moment to the fine grid by linear interpolation includes: And x1 =And x1 And y1 =And y1 Among them, e x1 and e x2 are the first and second electric field values ​​in the x direction of the fine grid, E x1 and E x2 are the first and second electric field values ​​in the x direction of the coarse grid, e y1 and e y2 are the first and second electric field values ​​in the y direction of the fine grid, E y1 and E y2 are the first and second electric field values ​​in the y direction of the coarse grid, respectively.

7. The electromagnetic field simulation method based on face-centered cube and sub-grid as claimed in claim 5, It is characterized in that The method of transferring the electric field component of the coarse grid at the next moment to the fine grid by linear interpolation comprises: The magnetic field of the fine grid is processed: Among them, H z is the magnetic field value in the z direction of the coarse grid, h z1 、h z2 、h z3 、h z4 They are the first, second, third and fourth magnetic field values ​​in the fine grid z direction respectively.

8. The electromagnetic field simulation method based on face-centered cube and sub-grid as claimed in claim 1, It is characterized in that Simulating the electromagnetic field also includes: Acquire a waveform based on the source point; The time domain waveform is obtained according to the waveform through the detection point to verify the simulation result.