ELECTROMAGNETIC FIELD SIMULATION METHOD BASED ON FACE-CENTERED CUBIC AND SUBGRID TECHNIQUE

Information

  • Patent Application
  • 20250225293
  • Publication Number
    20250225293
  • Date Filed
    December 31, 2024
    a year ago
  • Date Published
    July 10, 2025
    6 months ago
  • CPC
    • G06F30/20
  • International Classifications
    • G06F30/20
Abstract
Provided is an electromagnetic field simulation method based on a face-centered cubic and a subgrid, including setting periodic boundary conditions and a metal plate to construct an electromagnetic field simulation model based on the face-centered cubic, FDTD and the subgrid; through the electromagnetic field simulation model, setting the source point in the subgrid region, selecting the detecting point, simulating the electromagnetic field simulated, and obtaining the moment domain waveform diagram of the electric field in the simulation region.
Description
CROSS-REFERENCE TO RELATED APPLICATIONS

This application claims priority to Chinese Patent Application No. 202410019009.0, filed on Jan. 5, 2024, the contents of which are hereby incorporated by reference.


TECHNICAL FIELD

This application belongs to the field of electromagnetic field simulation, and in particular relates to electromagnetic field simulation methods based on face-centered cubic and subgrids.


BACKGROUND

No matter the conventional Cartesian grid or the face-centered cubic grid, the two grids are modeled using a uniform space partition size, when the model structure is relatively fine, the moment consumption and memory occupation required by the simulation will be greatly increased, which seriously impairs the simulation efficiency. In recent years, there are many methods to improve the numerical dispersion, one of which is that a higher order Taylor expansion is used for the differential operator in Maxwell's equations to map to the FDDT algorithm, which is to add more grid points in the grid to constrain the calculation. Although this method may obviously improve the isotropy, the increase of grid points leads to slower calculation speed and the more constraint conditions, making it very complicated to process different coal quality boundaries and difficult to implement. The second method is to change the spectral characteristics of excitation and optimize the dispersion characteristics of specific frequency band and specific Angle by modifying the coefficients of Maxwell's iterative equation. The universality of this method is not high, and other coefficients are needed for different frequency bands and angles. These two improved methods are based on the conventional Cartesian grid. Some researchers have taken a new approach and began to explore new inspiration from the chemical grid structure. According to the theory of chemical structure, they discovered the face-centered cubic (FCC) grid, and then applied the FCC in the electromagnetic field and wave equation, and implemented related simulation. It is found that compared with the conventional Cartesian grid, FCC grids have looser stability conditions and better isotropy. At present, there are few researches on this method at home and abroad, and there are few related literatures. Many essential elements of FDTD method need to be studied.


For numerical simulation of models of different sizes, different grid partition sizes need to be selected. Fine grid partitioning will lead to more accurate conclusions, but it will consume a lot of moment and occupy much memory; rough grid partitioning leads to relatively large errors, but the simulation speed is faster and the memory burden is less. Therefore, an electromagnetic field simulation method based on a face-centered cubic and a subgrid is provided.


SUMMARY

To solve the above technical problems, the application provides an electromagnetic field simulation method based on face-centered cubic and subgrid.


To achieve the above purpose, the application provides an electromagnetic field simulation method based on a faced-centered cubic and a subgrid, including:


Based on faced-centered cubic and subgrid, setting periodic boundary conditions and a metal plate up to construct an electromagnetic field simulation model;

    • through the electromagnetic field simulation model, setting the source point in the subgrid region, and selecting a detecting point to simulate the electromagnetic field.


Optionally, setting the period boundary conditions includes:


Obtaining an updating equation of the face-centered cubic based on the sampling point distribution of the face-centered cubic grid combined with a sampling point distribution of FDTD and the updating equation;

    • obtaining the structure and constant of the simulation region;
    • according to a structure and a constant of the simulated region and the updated equation of the face-centered cubic the periodic boundary conditions are generated.


Optionally, setting the metal plate includes:

    • based on the position of the subgrid and the periodic boundary conditions, the metal plate is arranged vertically on both sides of the subgrid region.
    • optionally, the method of obtaining the updating equation for the faced-centered cubic is:
    • for TE mode








H
z

n
+

1
/
2



(


i
+

1
/
4


,

j
+

1
/
4



)

=



CP

(
m
)

·


H
z

n
-

1
/
2



(


i
+

1
/
4


,

j
+

1
/
4



)


-


CQ

(
m
)

·

[






1

Δ

x




(






E
y
n

(


i
+

1
/
2


,

j
+

1
/
2



)

+


E
y
n

(


i
+

1
/
2


,
j

)

-








E
y
n

(

i
,

j
+

1
/
2



)

-


E
y
n

(

i
,
j

)





)


-







1

Δ

y




(






E
x
n

(

i
,

j
+

1
/
2



)

+


E
x
n

(


i
+

1
/
2


,

j
+

1
/
2



)

-








E
x
n

(

i
,
j

)

+


E
y
n

(


i
+

1
/
2


,
j

)





)





]










CP

(
m
)

=




μ

(
m
)

/
Δ

t

-



σ
m

(
m
)

/
2





μ

(
m
)

/
Δ

t

+



σ
m

(
m
)

/
2










CQ

(
m
)

=

1



μ

(
m
)


Δ

t


+



σ
m

(
m
)

2









    • where CP(m) is a first coefficient, CQ(m) is a second coefficient, Hz is a value of the magnetic field in a z direction, i is a coordinate in an x direction, j is a y direction coordinate, Ey is a y direction electric field value, Ex is an x direction electric field value, Δx is a size of a grid in an x direction, Δy is a size of a grid in a y direction, σ(m) is a conductivity in position m, σm is a magnetoconductivity, Δt is a moment step, and μ is a magnetoconductivity coefficient.

    • for TM mode:











E
z

n
+
1


(

i
,
j

)

=



CA

(
m
)

·


E
z

n
+
1


(

i
,
j

)


-


CB

(
m
)

·

[






1

Δ

x




(





H
y

n
+

1
/
2



(


i
+

1
/
4


,

j
+

1
/
4

+


H
y

n
+

1
/
2



(


i
+

1
/
4


,

j
-

1
/
4

-













H
y

n
+

1
/
2



(


i
-

1
/
4


,

j
+

1
/
4



)

-


H
y

n
+

1
/
2



(


i
-

1
/
4


,

j
-

1
/
4



)





)


-







1

Δ

y




(





H
x

n
+

1
/
2



(


i
+

1
/
4


,

j
+

1
/
4

+


H
x

n
+

1
/
2



(


i
-

1
/
4


,

j
+

1
/
4

-













H
x

n
+

1
/
2



(


i
+

1
/
4


,

j
-

1
/
4



)

+


H
x

n
+

1
/
2



(


i
-

1
/
4


,

j
-

1
/
4



)





)





]










CA

(
m
)

=




ε

(
m
)

/
Δ

t

-


σ

(
m
)

/
2





ε

(
m
)

/
Δ

t

+


σ

(
m
)

/
2










CB

(
m
)

=

1



ε

(
m
)

/
Δ

t

+


σ

(
m
)

/
2









    • where CA(m) is a third coefficient, CB(m) is a fourth coefficient, Ez is an electric field value in a z direction, Hy is a value of a magnetic field in a y direction, Hx is a value of a magnetic field in an x direction, n is a space step, n−1 represents a space step at a previous moment, n+1 represents a space step at a next moment, n−½ represents a space step of a first half moment, n+½ represents a space step of a second half moment;





Optionally, Ex and Ey in the TE mode are:








E
x

n
+
1


(

i
,
j

)

=



CA

(
m
)

·


E
x
n

(

i
,
j

)


+


CB

(
m
)

·


1

Δ

y


[




(



H
z

n
+

1
/
2



(


i
+

1
/
4


,

j
+

1
/
4



)

+


H
z

n
+

1
/
2



(


i
-

1
/
4


,

j
+

1
/
4



)

-










H
z

n
+

1
/
2



(


i
+

1
/
4


,

j
-

1
/
4



)

-


H
z

n
+

1
/
2



(


i
-

1
/
4


,

j
-

1
/
4



)


)




]











E
y

n
+
1


(

i
,
j

)

=



CA

(
m
)

·


E
y
n

(

i
,
j

)


+


CB

(
m
)

·


1

Δ

x


[




(



H
z

n
+

1
/
2



(


i
+

1
/
4


,

j
+

1
/
4



)

+


H
z

n
+

1
/
2



(


i
+

1
/
4


,

j
-

1
/
4



)

-










H
z

n
+

1
/
2



(


i
-

1
/
4


,

j
+

1
/
4



)

-


H
z

n
+

1
/
2



(


i
-

1
/
4


,

j
-

1
/
4



)


)




]







Optionally, Hx and Hy in the TM mode are:









H
x

n
+

1
/
2



(


i
+

1
/
4


,

j
+

1
/
4



)

=



CP

(
M
)

·


H
x

n
-

1
/
2



(


i
+

1
/
4


,

j
+

1
/
4



)


-


CQ

(
m
)

·


1

Δ

y


[




(



E
z
n

(


i
+

1
/
2


,

j
+

1
/
2



)

+


E
z
n

(

i
,

j
+

1
/
2



)

-










E
z
n

(


i
+

1
/
2


,
j

)

-


E
z
n

(

i
,
j

)


)




]









H
y

n
+

1
/
2



(


i
+

1
/
4


,

j
+

1
/
4



)

=



CP

(
m
)

·


H
y

n
-

1
/
2



(


i
+

1
/
4


,

j
+

1
/
4



)


-


CQ

(
m
)

·


1

Δ

x


[




(



E
z
n

(


i
+

1
/
2


,

j
+

1
/
2



)

+


E
z
n

(


i
+

1
/
2


,
j

)

-










E
z
n

(

i
,

j
+

1
/
2



)

-


E
z
n

(

i
,
j

)


)




]








Where Hx and Hy are a magnetic field values in an x direction and a y direction respectively.


Optionally, simulation of electromagnetic fields includes:

    • S1, placing the subgrid region based on the simulation region;
    • S2, initializing the electric field and magnetic field components of the coarse and fine grids;
    • S3, obtaining the electric field component of the coarse grid at the next moment based on the surface center cubic and the initialized electric field component of coarse grid;
    • S4, the electric field component of the coarse grid at the next moment is transferred to the fine grid by linear interpolation, and the electric field component and magnetic field component of the fine grid at the next moment are obtained based on the size of the coarse grid of the faced-centered cubic;
    • S5, the magnetic field component of the fine grid at the next moment is weighted to obtain the magnetic field component of the coarse grid at the next moment of the junction;
    • S6, based on the face-centered cubic, the magnetic field component of the coarse grid at the next moment is obtained; if the iteration moment is greater than the preset iteration moment, it is the end; otherwise, return to S3.


Optionally, linear interpolation is used to transfer the next moment electric field component of coarse grid to the fine grid, including:







e

x

1


=

E

x

1









e

y

1


=

E

y

1









e

x

2


=


1
2



(


E

x

1


+

E

x

2



)









e

y

2


=


1
2



(


E

y

1


+

E

y

2



)








    • where ex1 and ex2 are the first and second electric field values in the x direction of the fine grid respectively, Ex1 and Ex2 are the first and second electric field values in the x direction of the coarse grid respectively, ey1 and ey2 are the first and second electric field values in the y direction of the fine grid respectively, Ey1 and Ey2 are the first and second electric field values in the y direction of the coarse grid respectively.





Optionally, linear interpolation is used to pass the next moment electric field component of coarse grid after the fine grid, including:

    • the magnetic field of the fine grid is processed:







H
z

=


1
4



(


h

z

1


+

h

z

2


+

h

z

3


+

h

z

4



)






Where Hz is the z direction magnetic field value of the coarse grid, hz1, hz2, hz3 and hz4 are the first, second, third and fourth magnetic field values in the z direction of the fine grid respectively.


Optionally, simulation of the electromagnetic field also includes:

    • waveform is obtained based on the source point;
    • the moment domain waveform is obtained by the detecting point according to the waveform, and the simulation result is verified.


The beneficial effects of the application are:

    • the application applies the subgrid in the FCC grid, the fine part of the simulation adopts the fine grid partitioning, the updating equation is simple, and the simulation efficiency is obviously improved; the method may reduce the moment consumption and memory occupation required by FCC algorithm simulation in the simulation process, and improve the simulation efficiency.





BRIEF DESCRIPTION OF THE DRAWINGS

For more clearly describing the technical scheme in the embodiments of the application or the prior art, the drawings required for use in the embodiments are briefly introduced below. Obviously, the drawings described below are only embodiments of the application, and other drawings may be obtained from them without creative labor by persons of ordinary skill in the art.



FIG. 1 is a flow chart of electromagnetic field simulation method based on face-centered cubic and subgrid in embodiments of the application.



FIG. 2 is a grid structure diagram of the two-dimensional FCC embodiment of the application.



FIG. 3 is a schematic diagram of ¼ two-dimensional FCC cell of the embodiment of the application.



FIG. 4 is a schematic diagram of electromagnetic field distribution at the junction of coarse and fine grids of the embodiment of the application.



FIG. 5 shows the simulation region of the embodiment of the application and the specific distribution diagram of the subgrid and metal plate.



FIG. 6 is a comparison diagram of component moment-domain waveforms obtained by FCC subgrid and FDTD simulation detecting points respectively in embodiments of the application.



FIG. 7 is a comparison diagram of component moment domain waveforms obtained respectively by FCC subgrid and FCC simulation detecting points of embodiments of the application.





DETAILED DESCRIPTION OF THE EMBODIMENTS

The following is a clear and complete description of the technical scheme in the embodiments of the application in combination with the drawings. Obviously, the described embodiments are only a part of the embodiments of the application, but not the whole embodiments. Based on the embodiments of the applications, all other embodiments obtained by ordinary technicians in the art without making creative labor fall within the scope of protection of the application.


In order to make the above purposes, features and advantages of the application more obvious and understandable, the application is further explained in detail in conjunction with the drawings and specific embodiments.


As shown in FIGS. 1-7, the embodiment provides an electromagnetic field simulation method based on face-centered cubic and subgrids, including:

    • based on FCC finite-difference moment-domain and subgrid, the electromagnetic field simulation model is constructed by setting periodic boundary conditions and adding metal plates, the constructed simulation model is used to obtain the moment-domain waveform diagram of the electric field in the simulation region by setting source points in the subgrid region and selecting detecting points;
    • in the process of constructing the electromagnetic field simulation model, based on the distribution of sampling points in the FCC grid, the updating equation of the complete conductor boundary form FCC is obtained through the conventional FDTD sampling point distribution and the updating equation;
    • based on the various structures and constants of the simulation region, the periodic boundary conditions are generated according to the derived FCC updating equation.


In the process of building an electromagnetic field simulation model, the simulation process of the model includes the following steps:

    • the subgrid region is placed based on simulation region;
    • the electric field and magnetic field components of coarse grid and fine grid are initialized;
    • the electric field components of the coarse grid at the next moment are obtained based on the face-centered cubic and the initialized electric field components;
    • the electric field component of the coarse grid is transferred to the fine grid by linear interpolation;
    • the electromagnetic component of the fine grid at the next moment is obtained using half the size of the FCC coarse grid;
    • the magnetic field components of the coarse grid under the junction are obtained by weighting the magnetic field components of the fine grid at the next moment;
    • the magnetic field component of the coarse grid at the next moment is obtained by FCC and the whether to end the cycle or not is judged by moment.


In the process of constructing the electromagnetic field simulation model, by setting the position and periodic boundary conditions of the subgrid, two metal plates are placed vertically on both sides of the subgrid region;

    • the moment domain waveform of reflection field may be obtained by setting the metal plate.


In the process of constructing the electromagnetic field simulation model, by setting the location of the subgrid and the metal plate, the point source is selected and placed in the center region where the subgrid and the metal plate are vertical;

    • selecting the probe point according to the point source location.


In the process of building the electromagnetic field simulation model, the updating equation of two-dimensional FCC is derived through Maxwell equation:


TE mode includes formulas (1)-(7):











H
z

n
+

1
/
2



(


i
+

1
/
4


,

j
+

1
/
4



)

=



CP

(
m
)

·


H
z

n
-

1
/
2



(


i
+

1
/
4


,

j
+

1
/
4



)


-





(
1
)










CQ

(
m
)

·

[






1

Δ

x




(






E
y
n

(


i
+

1
/
2


,

j
+

1
/
2



)

+


E
y
n

(


i
+

1
/
2


,
j

)

-








E
y
n

(

i
,

j
+

1
/
2



)

-


E
y
n

(

i
,
j

)





)


-







1

Δ

y




(






E
x
n

(

i
,

j
+

1
/
2



)

+


E
x
n

(


i
+

1
/
2


,

j
+

1
/
2



)

-








E
x
n

(

i
,
j

)

+


E
x
n

(


i
+

1
/
2


,
j

)





)





]











CP

(
m
)

=




μ

(
m
)

/
Δ

t

-



σ
m

(
m
)

/
2





μ

(
m
)

/
Δ

t

+



σ
m

(
m
)

/
2







(
2
)













CQ

(
m
)

=

1



μ

(
m
)

/
Δ

t

+



σ
m

(
m
)

/
2







(
3
)









    • where Hz is a z direction magnetic field value, i is a x-direction coordinate, and j is a y direction coordinate, the CP(m) is a first coefficient, the CQ(m) is a second coefficient, Ey is a y direction electric field value, Ex is a x direction electric field value, Δx is a size of a grid in a x direction, Δy is a size of the grid in a y direction, σm is a magnetoconductivity, Δt is a moment step, n is a space step, n−1 represents a space step at a previous moment, n+1 represents a space step at a next moment; n−½ represents a space step of a first half moment, n+½ represents a space step of a second half moment.





For Ex and Ey, getting that:











E
x

n
+
1


(

i
,
j

)

=



CA

(
m
)

·


E
x
n

(

i
,
j

)


+





(
4
)










CB

(
m
)

·


1

Δ

y


[




(



H
z

n
+

1
/
2



(


i
+

1
/
4


,

j
+

1
/
4



)

+


H
z

n
+

1
/
2



(


i
-

1
/
4


,

j
+

1
/
4



)

-










H
z

n
+

1
/
2



(


i
+

1
/
4


,

j
-

1
/
4



)

-


H
z

n
+

1
/
2



(


i
-

1
/
4


,

j
-

1
/
4



)


)




]












E
y

n
+
1


(

i
,
j

)

=



CA

(
m
)

·


E
y
n

(

i
,
j

)


+





(
5
)










CB

(
m
)

·


1

Δ

x


[




(



H
z

n
+

1
/
2



(


i
+

1
/
4


,

j
+

1
/
4



)

+


H
z

n
+

1
/
2



(


i
+

1
/
4


,

j
-

1
/
4



)

-










H
z

n
+

1
/
2



(


i
-

1
/
4


,

j
+

1
/
4



)

-


H
z

n
+

1
/
2



(


i
-

1
/
4


,

j
-

1
/
4



)


)




]











CA

(
m
)

=




ε

(
m
)

/
Δ

t

-


σ

(
m
)

/
2





ε

(
m
)

/
Δ

t

+


σ

(
m
)

/
2







(
6
)













CB

(
m
)

=

1



ε

(
m
)

/
Δ

t

+


σ

(
m
)

/
2







(
7
)









    • where CA(m) is a third coefficient, CB(m) is a fourth coefficient, ε(m) is a dielectric constant at a m position, and σ(m) is a conductivity at a m position.





Similarly, TM pattern includes formulas (8)-(10):











E
z

n
+
1


(

i
,
j

)

=



CA

(
m
)

·


E
z

n
+
1


(

i
,
j

)


-





(
8
)










CB

(
m
)

·

[






1

Δ

x




(






H
y

n
+

1
2



(


i
+

1
4


,

j
+

1
4



)

+


H
y

n
+

1
2



(


i
+

1
4


,

j
-

1
4



)

-








H
y

n
+

1
2



(


i
-

1
4


,

j
+

1
4



)

-


H
y

n
+

1
2



(


i
-

1
4


,

j
-

1
4



)





)


-







1

Δ

y




(






H
x

n
+

1
2



(


i
+

1
4


,

j
+

1
4



)

+


H
x

n
+

1
2



(


i
-

1
4


,

j
+

1
4



)

-








H
x

n
+

1
2



(


i
+

1
4


,

j
-

1
4



)

+


H
x

n
+

1
2



(


i
-

1
4


,

j
-

1
4



)





)





]







    • where Ez is an electric field value in a z direction, Hy is a magnetic field value in a y direction, and Hx is a value of the magnetic field in a x direction.

    • Hx and Hy are:














H
x

n
+

1
/
2



(


i
+

1
/
4


,

j
+

1
/
4



)

=



CP

(
m
)

·


H
x

n
-

1
/
2



(


i
+

1
/
4


,

j
+

1
/
4



)


-


CQ

(
m
)

·


1

Δ

y


[




(



E
z
n

(


i
+

1
/
2


,

j
+

1
/
2



)

+


E
z
n

(

i
,

j
+

1
/
2



)

-










E
z
n

(


i
+

1
/
2


,
j

)

-


E
z
n

(

i
,
j

)


)




]







(
9
)














H
y

n
+

1
/
2



(


i
+

1
/
4


,

j
+

1
/
4



)

=



CP

(
m
)

·


H
y

n
-

1
/
2



(


i
+

1
/
4


,

j
+

1
/
4



)


-


CQ

(
m
)

·


1

Δ

x


[




(



E
z
n

(


i
+

1
/
2


,

j
+

1
/
2



)

+


E
z
n

(


i
+

1
/
2


,
j

)

-










E
z
n

(

i
,

j
+

1
/
2



)

-


E
z
n

(

i
,
j

)


)




]







(
10
)







Where Hx and Hy are a magnetic field values in a x direction and a y direction respectively, Hxn-½ is a value of a magnetic field in a x direction at a previous moment.


After obtaining an updating equation of a two-dimensional FCC, when the ratio of coarse to fine grids placed in the simulation region is 2:1, the field value exchange from the coarse grid to the subgrid region is realized by linear interpolation of the electric field of the coarse grid at the intersection line position to the electric field of the fine grid at the corresponding position of the subgrid. The mode of linear interpolation may be described by the following equations (11)-(14):










e

x

1


=

E

x

1






(
11
)













e

y

1


=

E

y

1






(
12
)













e

x

2


=


1
2



(


E

x

1


+

E

x

2



)






(
13
)













e

y

2


=


1
2



(


E

y

1


+

E

y

2



)






(
14
)









    • where ex1 and ex2 are a first electric field value and a second electric field value in the x direction of the fine grid respectively, Ex1 and Ex2 are the first electric field value and a second electric field value in the x direction of the coarse grid respectively, ey1 and ey2 are a first electric field value and a second electric field value in the y direction of the fine grid respectively, Ey1 and Ey2 are a first electric field value and a second electric field value in the y direction of the coarse grid respectively.





Obtaining the coefficient of linear interpolation according to the distance, and the interpolation of the electric field component in the y direction is the same as that in the x direction. However, since the magnetic field corresponding to the coarse grid of 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, which is described according to the following formula (15):










H
z

=


1
4



(


h

z

1


+

h

z

2


+

h

z

3


+

h

z

4



)






(
15
)









    • where Hz is a magnetic field value in a z direction of the coarse grid, hz1, hz2, hz3 and hz4 are a first, second, third and fourth magnetic field values in the z direction of the fine grid respectively.





After obtaining the messages of each process in the simulation region, generating a waveform through the source point, and obtaining a required moment domain waveform at the detecting point, which is convenient to verify the correctness of the result in the later stage.


According to the technical scheme, the application has the following technical effects:


In the simulation process, the technical scheme reduces the moment consumption and memory occupation required by the simulation and improves the simulation efficiency. As the ratio of the FCC moment value of FCC added to the subgrid and that of FCC not added to the subgrid is 1:4, 86.39% may be improved. This method aims to reduce the moment consumption and memory occupation of FCC algorithm simulation and improve the simulation efficiency when simulating fine models. Starting from the face-centered cubic grid, the updating equation of FCC grid is given first, and then the subgrid is combined with it to provide an interpolation method different from the conventional FDTD subgrid; finally, according to the characteristics of subgrid, a weighting method for the boundary magnetic field of coarse and fine grid is given. Finally, in order to verify the accuracy of the proposed algorithm, a simulation surface example with metal plate is presented. The proposed method is proved accurate by comparing the moment-domain waveforms of the detecting points in the simulation region with different updating methods.


The simulation method is shown in FIG. 1, including steps 01-07:

    • 01, initializing the electromagnetic components of the coarse grid as well as the fine grid;
    • 02, obtaining the electric field components of the coarse grid at the next moment by FCC;
    • 03, passing to a fine grid using linear interpolation;
    • 04, obtaining the electromagnetic component of the fine grid at the next moment obtained by using half the size of the FCC coarse grid;
    • 05, by weighting the magnetic field components of the fine grid at the next moment, obtaining the magnetic field components of the coarse grid at the next moment;
    • 06, obtaining the magnetic field components of the coarse grid at the next moment by FCC;
    • 07, checking whether the cycle is ended or not based on the moment. If the cycle is not ended, return to Step 02.


In this embodiment, starting from Maxwell's equations:


In the two-dimensional case, Maxwell's moment-domain equations for TE mode are shown in the formula (16):

















E
x




t


=


1
ε



(





H
z




y


-

σ


E
x



)












E
y




t


=


1
ε



(


-




H
z




x



-

σ


E
y



)












H
z




t


=


1
μ



(





E
x




y


-




E
y




x


-


σ
m



H
z



)






}




(
16
)







Maxwell's moment domain equations for TM mode are as shown in the formula (17):

















H
x




t


=


1
μ



(


-




E
z




y



-


σ
m



E
x



)












H
y




t


=


1
μ



(


-




E
z




x



-


σ
m



E
y



)












E
z




t


=


1
ε



(





H
y




x


-




H
x




y


-

σ


H
z



)






}




(
17
)









    • where Ex is a x direction electric field value, Ey is a y direction electric field value, Ez is a z direction electric field value, Hx is a x direction magnetic field value, Hy is a y direction magnetic field value, Hz is a z direction electric field value; ε is a dielectric constant, μ is a magnetoconductivity coefficient, σ is a conductivity, and σm is a magnetoconductivity.






FIG. 2 shows the distribution of sampling points in the two-dimensional FCC grid: A FDTD grid contains four FCC grids, the electric fields of the FCC grid are distributed at four vertices of the FCC grid, so there are 9 magnetic fields of FCC grid distributed in a FDTD grid, and the magnetic fields of FCC grid are distributed in the middle of FCC grid, and there are 4 magnetic fields distributed in an FCC grid;


Taking TE mode HZ component equation for example, the discrete scheme of FCC-FDTD is analyzed. For convenience, ¼ two-dimensional FCC cells (Four electric fields surround a magnetic field in the middle) are taken as shown in FIG. 3, the moment deflection is discretized directly by the central difference method, while the space deflection guide first uses the average of each party to the midpoint, and then performs central difference, for example, in the x direction, Ey(i+½, j) and Ey(i+½, j+½) averaged to get are Ey(i+½, j+¼); and then Ey(i, j) and Ey (i, j+½) are averaged to get Ey(i, j+¼). Finally the last two values are subtracted and then divided by the spatial interval Δx/2 to obtain the partial derivative in the x direction, and the same applies to the y direction. Finally, discrete iterative formula of Hz is obtained. The formulas (1)-(7) above are applicable for TE mode, and the formulas (8)-(10) above are applicable for r TM mode.


The method of the application is shown in FIG. 4.


The conventional FDTD algorithm usually uses a uniform Yee grid to partition the specific target. When the target is too small, a finer grid is needed to partition the specific target, so the whole simulation process consumes more moment and occupies more memory. The FCC subgrid used in this embodiment does not need to update the electric field and magnetic field of the coarse grid in the entire simulation region, but only needs to set the fine grid in the specified region for electric field and magnetic field iteration. Since the sampling points of FCC grid are different from those of FDTD, the interpolation processing of FCC is different from that of FDTD. The interpolation method used in this embodiment is shown in FIG. 3:


When the ratio of coarse to fine grids placed in the simulation region is 2:1, the field value exchange between the coarse grid and the subgrid region is realized by linear interpolation between the coarse grid electric field at the intersection boundary and the fine grid electric field at the corresponding position of the subgrid, the linear interpolation method may be described by the above formulas (11)-(14).


The coefficient of linear interpolation 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, because 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 to a certain extent, and the processing method is described in accordance with the above formula (15).


In order to prove the algorithm is correct, this embodiment takes the simulation region structure with a metal plate for example, and uses the conventional FDTD, FCC fine grid and the algorithm proposed in this embodiment to calculate the moment domain waveform of the detecting points in the simulation region with metal plate respectively. The specific sizes are shown in FIG. 5, The left and right sides of the 0.2 m*0.2 m resonator are respectively added with metal plates with a width of 0.02 m. The sizes of the coarse grid are 9.9931*104 m, the sizes of the fine grid are 4.9965*104 m, and the ratio of the coarse to fine grid is 2:1. The calculated number of coarse grids is 200*200 minus 2*20*90 as the number of PEC plates, and the calculated number of fine grids is 40*400, whose Boundary Condition is set as Periodic Boundary Condition. Gaussian excitation source is added in the middle of the fine grids region, and the pulse width is τ=5.0*10-11 t0=2.25*10-10;


It can be seen from FIG. 6 and FIG. 7 that the method provided by the application is consistent with the waveform obtained by the conventional FDTD method. Although there are some differences in some parts due to different iterative updating equations of the two methods, the overall results provided by the application are correct, which effectively verifies the method provided by the application is correct. To be safe, the results of the method provided by the application are also compared with the results of the FCC algorithm of fine grid partitioning. It can be seen that the results of the calculation method provided by the application are better in agreement with the results of the FCC algorithm of the fine grid than the results of the conventional FDTD of the fine grid, thus more verifying the good accuracy of the algorithm provided by the application.


In order to clearly state the advantages of the method provided by the application in saving moment, Table 1 shows the comparison result between the method provided by the application and the conventional FCC calculation moment. The moment is recorded by iterating 100 steps at 2 intervals, and the average moment is taken.
















TABLE 1










The grid
The grid
The grid






ratio of the
ratio of the
ratio of the






method of the
method of the
method of the



FCC (1:2
FCC (1:3
FCC (1:4
application =
application =
application =



comparison)
comparison)
comparison)
1:2
1:3
1:4






















Number of grid
6e3
9e3
12e3
3e3
3e3
3e3


point


Iteration steps
1e2
1e2
 1e2
1e2
1e2
1e2


Average time (s)
1.9313614
4.2804278
7.4374206
0.4922964
0.494175
0.4995656









It can be seen from the table that when the grid ratio is 1:4, the algorithm provided by the application can save 93.28% of the calculation moment compared with the FCC grid.


The above embodiments are only some embodiments of the application, and do not limit the scope of the application. Under the premise of not deviating from the design spirit of the application, all kinds of changes and improvement of the technical schemes made by ordinary technicians in the field shall fall within the scope of protection determined by the claims of the application.

Claims
  • 1. An electromagnetic field simulation method based on a face-centered cubic and a subgrid, comprising: based on the faced-centered cubic and the subgrid, setting periodic boundary conditions and a metal plate, and constructing an electromagnetic field simulation model;setting a source point in a subgrid region through the electromagnetic field simulation model, selecting a detecting point, and simulating an electromagnetic field;wherein setting the periodic boundary conditions comprises:obtaining an updating equation of the face-centered cubic based on sampling point distribution of the face-centered cubic grid combined with the sampling point distribution of FDTD and the updating equation;obtaining a structure and a constant of a simulation region;generating the periodic boundary conditions according to the structure and the constant of the simulation region and the updating equation of the faced-centered cubic;for TM mode:
  • 2. The electromagnetic field simulation method based on a face-centered cubic and a subgrid according to claim 1, wherein setting the metal plate comprises: arranging the metal plate vertically on both sides of the subgrid region based on a position of the subgrid and the periodic boundary conditions.
  • 3. The electromagnetic field simulation method based on a face-centered cubic and a subgrid according to claim 1, wherein a method of obtaining the updating equation of the face-centered cubic is: for TE mode:
  • 4. The electromagnetic field simulation method based on a face-centered cubic and a subgrid according to claim 3, wherein the Ex and the Ey in the TE mode are:
  • 5. The electromagnetic field simulation method based on a face-centered cubic and a subgrid according to claim 1, wherein simulating the electromagnetic field comprises: S1, placing the subgrid region based on the simulation region;S2, initializing an electric field component and a magnetic field component of coarse and fine grids;S3, obtaining an electric field component of the coarse grid at a next moment based on the face-centered cubic and an initialized the electric field component of the coarse grid;S4, transferring the electric field component of the coarse grid at the next moment to the fine grid by a linear interpolation, and obtaining an electric field component and a magnetic field component of the fine grid at the next moment based on a size of the coarse grid of the face-centered cubic;S5, weighting the magnetic field component of the fine grid at the next moment to obtain a magnetic field component of the coarse grid at a next moment of a junction; andS6, based on the face-centered cubic, obtaining the magnetic field component of the coarse grid at the next moment, and ending if an iteration moment is greater than a preset iteration moment; otherwise, returning to the S3.
  • 6. The electromagnetic field simulation method based on a face-centered cubic and a subgrid according to claim 5, wherein transferring the electric field component of the coarse grid at the next moment to the fine grid by a linear interpolation comprises:
  • 7. The electromagnetic field simulation method based on a face-centered cubic and a subgrid according to claim 5, wherein transferring the electric field component of the coarse grid at the next moment to the fine grid by a linear interpolation is followed by: processing a magnetic field of the fine grid:
  • 8. The electromagnetic field simulation method based on a face-centered cubic and a subgrid according to claim 1, wherein simulating electromagnetic field is also followed by: obtaining a waveform based on the source point; andobtaining a moment domain waveform by the detecting point according to the waveform, and verifying a simulation result.
Priority Claims (1)
Number Date Country Kind
202410019009.0 Jan 2024 CN national