A SFDTD method for time-varying plasma flow field based on three-level parallel computing

Through the SFDTD method of time-varying plasma flow field based on three-level parallel calculation, the problems of missing absorption boundary conditions and low accuracy of irregular target processing of the SFDTD method in time-varying plasma research are solved, and efficient parallel calculation is realized, which is suitable for For complex structures and irregular targets, the calculation accuracy and efficiency are improved.

CN117973169BActive Publication Date: 2024-10-25BEIHANG UNIV
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410221127.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-02-28
Publication Date
2024-10-25
Estimated Expiration
2044-02-28

AI Technical Summary

Technical Problem

The existing SFDTD method suffers from the lack of absorption boundary conditions in the study of time-varying plasma electromagnetic properties, large step approximation errors when dealing with irregular targets, and lack of parallel acceleration technology, resulting in low calculation accuracy and insufficient applicability, and is only suitable for small and simple structural models. .

Method used

The time-varying plasma flow field SFDTD method based on three-level parallel calculation is used to calculate the electromagnetic characteristic parameters through the three-level parallel calculation method, set the CPML absorption boundary of the hexahedral plasma, combine the medium conformal technology to process the irregular grid, and use MPI , OpenMP and AVX instruction sets to achieve efficient parallel computing.

Benefits of technology

It improves the calculation accuracy and efficiency of time-varying plasma electromagnetic characteristics modeling, is suitable for complex structures and irregular targets, realizes efficient parallel calculation, and significantly improves calculation efficiency and accuracy.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117973169B_ABST
    Figure CN117973169B_ABST
Patent Text Reader

Abstract

The present invention relates to a time-varying plasma flow field SFDTD method based on three-level parallel calculation, including: under ideal conductor boundary conditions, taking hexahedral plasma as the calculation domain, calculating the electromagnetic characteristic parameters of the plasma by a three-level parallel calculation method, taking the plasma as a specific medium, and modifying the SFDTD iteration formula to realize SFDTD iteration operation; according to the circular convolution technology, combining the electromagnetic characteristic parameters and the operation method to set the CPML absorption boundary in the hexahedral plasma; according to the medium and conductor conformal technology, the irregular grid under the CPML absorption boundary condition is processed. The present invention conducts modeling and analysis on the anisotropic relative dielectric constant of the time-varying plasma, derives the mathematical iteration equation of the SFDTD method of the time-varying plasma, realizes the effective modeling and simulation of the time-varying plasma, and improves the calculation accuracy.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to the field of electromagnetism, and in particular to a time-varying plasma flow field SFDTD method based on three-level parallel computing. Background Art

[0002] When high-speed, ultra-high-speed and near-space aircraft fly at high speed, a plasma layer (plasma sheath) will be formed on the surface of the aircraft, which will greatly change the electromagnetic scattering characteristics of the target. With the rapid development of high-speed, ultra-high-speed and near-space aircraft, how to accurately predict their electromagnetic scattering characteristics is one of the keys to winning future wars. For the simulation technology of time-varying plasma as a complex dispersive medium and the law of electromagnetic field interaction, it is mainly concentrated on the finite difference time domain (FDTD) method and the symplectic finite difference time domain (SFDTD) method. However, the FDTD method and SFDTD algorithm still have the following shortcomings in dispersive media: (1) There is no SFDTD method absorption boundary condition suitable for time-varying plasma, which will be greatly limited when using the SFDTD method to study the electromagnetic characteristics of time-varying plasma; (2) There is still a step approximation error for irregular targets, which seriously affects the calculation accuracy of the SFDTD method when processing irregular targets; (3) There is no parallel acceleration technology, resulting in the current SFDTD method for time-varying plasma only applicable to small-sized simple structure models, lacking versatility. Summary of the invention

[0003] The purpose of the present invention is to overcome the shortcomings of the prior art and provide a time-varying plasma flow field SFDTD method based on three-level parallel computing, which solves the problems of symplectic time-domain finite difference numerical solution of Maxwell equations for plasma flow field, absorbing boundary conditions, high-order near-far field transformation research, algorithm optimization, complex result modeling and parallel computing load imbalance.

[0004] The object of the present invention is achieved by the following technical solution: a time-varying plasma flow field SFDTD method based on three-level parallel computing, the method comprising:

[0005] Step 1: Under the ideal conductor boundary condition, the hexahedral plasma is used as the calculation domain, and the electromagnetic characteristic parameters of the plasma are calculated by a three-level parallel calculation method. The plasma is regarded as a specific medium, and the SFDTD iterative formula is modified to realize the SFDTD iterative operation;

[0006] Step 2: According to the circular convolution technique, the CPML absorption boundary in the hexahedral plasma is set in combination with electromagnetic characteristic parameters and calculation methods;

[0007] Step 3: Based on the dielectric and conductor conformal technology, the irregular grid under the CPML absorbing boundary condition is processed.

[0008] The step 1 specifically includes the following contents:

[0009] Plasma is regarded as a specific medium with equivalent electromagnetic parameters. According to the general plasma theory equation, the distribution function of charged particles is calculated, and the electron density distribution in the plasma is calculated by combining the Arrhenius formula and the chemical reaction formula, and then the macroscopic electromagnetic characteristic parameters of the plasma are obtained, including conductivity and dielectric constant; and the collision frequency of electrons and neutral particles in the air is calculated according to the gas kinetic theory;

[0010] Maxwell equations are supplemented based on the collision frequency and macroscopic electromagnetic characteristic parameters, and the FDTD iterative formula applicable to the plasma flow field is obtained to complete the time-varying plasma electromagnetic modeling.

[0011] The time evolution matrix of Maxwell's equations is numerically approximated. After 2N-order spatial staggered differences and p-order temporal symplectic integral discretization, the SFDTD(p, 2N) method is established and normalized to make the electric and magnetic field components in the same order of magnitude.

[0012] The method of calculating the electromagnetic characteristic parameters of the plasma by a three-level parallel calculation method includes: calculating the electric field value at a certain place in space at a previous time step and multiple surrounding magnetic field values ​​by a three-level parallel calculation method, and calculating the magnetic field value at a certain place in space at a current time step and multiple surrounding electric field values.

[0013] The step 2 specifically includes the following contents:

[0014] According to the coordinate telescopic electromagnetic theory, the coordinate factor in the vector Maxwell equations in the frequency domain is expressed as Among them, ω represents the angular frequency of the electromagnetic wave, ε represents the dielectric constant of the medium, σ u , α u and K u is the parameter along the u direction, by adjusting σ u , α u and K u This makes CPML achieve optimal absorption effect in the full frequency band;

[0015] According to the formula Construct the changes of various parameters in the absorption layer, where d is the thickness of the CPML layer, m is the order of the polynomial, and σ max and K max are the maximum values ​​that the conductivity σ and parameter K can take respectively;

[0016] Any attenuated convolution term Ψ Euv The time recursion formula is expressed as Δt is the time step length, n is the time step number, c u is related to σ u , α u and K u The relevant coefficients, α is the attenuation constant;

[0017] The attenuated convolution term Ψ Euv Defined as For time-dependent variables, efficient iterative calculation of the convolution term is achieved through the field value of the previous time step.

[0018] The step three specifically includes the following contents:

[0019] The material parameters at the modified medium interface are used to reflect the influence of the conformal deformed grid on the numerical simulation. The geometric information at the deformed grid is used as the medium weighting coefficient, and new medium parameters are obtained by interpolation. The iterative equation is then modified using the newly obtained medium parameters.

[0020] The three-level parallel computing method includes: MPI first-level parallel computing, OpenMP second-level parallel computing and AVX instruction set vectorized parallel computing for codes.

[0021] The MPI first level parallel computing includes:

[0022] Computational area division: overlap the subdomain interface with the spatial grid of the SFDTD method for parallel division;

[0023] Subdomain search: The subdomain topology structure is regarded as a three-dimensional matrix M. For a given subdomain number N, its position index in the three-dimensional matrix M is determined, the adjacent subdomain index of the subdomain is found, and it is converted into the corresponding process number, and the corresponding attributes of the six adjacent interfaces are recorded;

[0024] Data exchange: Assuming that the subdomains are set along the x direction, the exchange of tangential electric and magnetic fields on the interface of the subdomains is carried out between two adjacent subdomains. At the region division surface, each subdomain expands outward by a grid space to form its own subdomain. The nodes Hx, Hz and Hy on the left boundary of subdomain N+1 are solved in subdomain N, and the MPI function is used to transfer them to the adjacent subdomain region N+1. In subdomain N+1, the magnetic field components Hx, Hz and Hy are used as boundary conditions to solve the electric field value in the subdomain. Similarly, the nodes Hx, Hz and Hy on the right boundary of subdomain N can be directly calculated in subdomain N+1, and the MPI function is used to transfer them to region N as boundary conditions to complete the iteration of the electric field nodes in region N.

[0025] If the nodes on the boundary are electric field nodes, the same method can be used to complete the iteration of the magnetic field nodes in the N region.

[0026] The OpenMP second level parallel computing includes:

[0027] According to the number of available cores in each CPU, OpenMP is used to generate multiple threads in the computationally intensive areas of SFDTD field iteration and CPML field iteration. Since OpenMP is a shared memory programming, threads can share data without communication, thus achieving efficient parallel computing on shared memory nodes.

[0028] The AVX instruction set performs vectorized parallel computing on the code including:

[0029] Calculate H related to spatial position y Coefficient C1, H x The coefficient C2 is stored in the AVX register as a floating point number and converted into an AVX256-bit data pointer for easy calling;

[0030] Calculate H on both sides of the electric field node separately y The difference ΔH y and the electric field nodes on both sides H x The difference ΔH x , multiplied by H y Coefficient C1, H x Coefficient C2, after subtraction, we get the contribution of magnetic field to electric field

[0031] Multiply the electric field at the previous moment n by the correlation coefficient CA, and the contribution of the electric field The electric field is obtained by adding them together and finally written into the memory.

[0032] The invention has the following advantages: a time-varying plasma flow field SFDTD method based on three-level parallel computing, modeling and analysis of the anisotropic relative dielectric constant of the time-varying plasma, deducing the mathematical iterative equation of the SFDTD method of the time-varying plasma, realizing effective modeling and simulation of the time-varying plasma, and improving the calculation accuracy; a CPU AVX instruction three-level parallel acceleration algorithm based on MPI+OpenMP+SSE, realizing efficient parallel computing for the SFDTD algorithm for studying the scattering characteristics of the plasma sheath flow field, and greatly improving the calculation efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

[0033] Figure 1 It is a schematic diagram of the process of the present invention;

[0034] Figure 2 Schematic diagram of the SFDTD algorithm for the time-varying plasma flow field;

[0035] Figure 3 It is a flow chart of the SFDTD algorithm applicable to the time-varying plasma flow field;

[0036] Figure 4 Schematic diagram of Yee cells in SFDTD discretization;

[0037] Figure 5 It is a schematic diagram of an irregular grid;

[0038] Figure 6 Schematic diagram of the process of solving the macroscopic electromagnetic characteristic parameters;

[0039] Figure 7 Schematic diagram of the FDTD iterative derivation process in time-varying plasma;

[0040] Figure 8 This is an example diagram of a 5-level 4th-order symplectic algorithm;

[0041] Fig. 9 Schematic diagram of the process of solving CPML conditions applicable to time-varying plasma;

[0042] Fig.10 Schematic diagram of the modeling process of the SFDTD method for non-regular targets;

[0043] Fig.11 A schematic diagram of the application of dielectric conformal technology in the present invention;

[0044] Fig.12 A schematic diagram of the conductor conformal technology applied in the present invention;

[0045] Fig.13 It is a flowchart of three-level parallel computing;

[0046] Fig.14 It is a schematic diagram of data exchange of SFDTD method;

[0047] Fig.15 Schematic diagram of the parallel process of vectorizing code for the AVX instruction set. DETAILED DESCRIPTION

[0048] In order to make the purpose, technical scheme and advantages of the embodiments of the present application clearer, the technical scheme in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments. The components of the embodiments of the present application described and shown in the drawings here can be arranged and designed in various different configurations. Therefore, the detailed description of the embodiments of the present application provided below in conjunction with the drawings is not intended to limit the scope of protection of the application claimed for protection, but merely represents the selected embodiments of the present application. Based on the embodiments of the present application, all other embodiments obtained by those skilled in the art without making creative work belong to the scope of protection of the present application. The present invention is further described below in conjunction with the drawings.

[0049] like Figure 1 As shown, the present invention studies the electromagnetic characteristics of the flow field of time-varying plasma. Based on the Maxwell equations in time-varying plasma, a symplectic time-domain finite difference algorithm suitable for the flow field of time-varying plasma is adopted to solve the problems of large calculation errors of irregular targets and low calculation efficiency of large-size complex structure targets. The algorithm is combined with distributed\shared memory and CPU SSE / AVX instruction three-level parallel technology to improve the calculation efficiency and accuracy.

[0050] 1. SFDTD algorithm suitable for time-varying plasma flow field;

[0051] like Figure 2 As shown in the figure, the SFDTD algorithm based on the Hamiltonian system can maintain the symplectic structure of the mathematical model, and has the characteristics of high accuracy, low numerical dispersion error and long-term calculation stability. At the same time, existing theories have proved that the CPML (convolutional perfectly matched layer) absorbing boundary condition is suitable for efficient truncation calculation of any medium calculation area. For the SFDTD method, on the one hand, a CPML condition suitable for the SFDTD method is developed to achieve effective truncation of the calculation area; on the other hand, the SFDTD method modeling of irregular targets is realized. This processing can take irregular objects into account, thereby obtaining accurate results and significantly improving the calculation accuracy.

[0052] like Figure 3 As shown in the figure, in this SFDTD algorithm applicable to time-varying plasma flow fields, the first step is to modify the basic SFDTD iterative formula using the electromagnetic properties of the time-varying plasma; the basic unit of the SFDTD method for calculating the electromagnetic field is as follows: Figure 4 The hexahedral grid shown in the figure divides the space into several grids, and the electric field value at a certain point in the space can be calculated by the electric field value at the previous time step and the values ​​of the four surrounding magnetic fields through three-level parallel calculation, while the magnetic field value at a certain point in the space can be calculated by the magnetic field value at the previous time step and the values ​​of the four surrounding electric fields through three-level parallel calculation; the coefficients of the iterative calculation formula are related to the medium, and plasma can be regarded as a special medium, so SFDTD iterative calculation can be realized under certain conditions.

[0053] Since the study of the scattering characteristics of the flow field around the plasma sheath requires the measurement of the RCS (radar cross section) of the plasma sheath, it is necessary to set the boundary condition as an absorption boundary. The CPML absorption boundary takes into account both the electromagnetic wave absorption effect and the program operation efficiency. Its setting method is related to the electromagnetic characteristic parameters and operation mode of the operation domain medium. Therefore, the second step is to complete the CPML absorption boundary setting of the SFDTD algorithm in the plasma.

[0054] Since both the SFDTD method and the traditional FDTD method perform operations in the form of Yee cells, such as Figure 5 As shown, since the shape of the plasma sheath to be measured is usually not a hexahedron, it is necessary to perform special processing on the irregular grid where the plasma sheath is located. Therefore, the third step is to process the irregular grid. Based on the above three steps, the SFDTD algorithm suitable for time-varying plasma flow field is implemented.

[0055] Plasma is regarded as a special medium and thus has equivalent electromagnetic parameters. Starting from the general plasma kinetic equation, the distribution function of charged particles is calculated, such as Figure 6 As shown, by combining the Arrhenius formula with the chemical reaction formula, the electron density distribution in the plasma can be calculated. Based on the above physical model, the macroscopic electromagnetic characteristic parameters of the plasma can be calculated.

[0056] Furthermore, the macroscopic electromagnetic characteristic parameters include conductivity σ and dielectric constant ε, where: ω p is the electron angular frequency, ω is the plasma angular frequency, v is the plasma collision frequency, and ε0 is the free space dielectric constant; therefore, the plasma dielectric constant can be obtained as

[0057] The free path, movement speed, and collision frequency of each particle in the plasma can be obtained through statistical methods. These parameters are different due to the different properties of different particles, such as size and mass. According to the gas kinetic theory, the calculation formula for the collision frequency of electrons and neutral particles is:

[0058]

[0059] Among them, n a is the particle number density in the gas, X i is the mass fraction of component i, Q i is the collision cross section between electron and component i, m e 、T e are the mass and temperature of the electron, respectively, and k is the Boltzmann constant. The collision frequency of electrons and neutral particles in the air is usually calculated according to the following formula:

[0060] v=5.82×10 12 P a T -1 / 2

[0061] Among them, P a is the air pressure and T is the air humidity.

[0062] like Figure 7As shown in the figure, after solving the collision frequency and macroscopic electromagnetic characteristic parameters, the Maxwell equations can be supplemented to obtain the FDTD iterative formula suitable for the plasma flow field, and the time-varying plasma electromagnetic modeling can be completed; the essence of the SFDTD method is to numerically approximate the time evolution matrix exp(Δt(U+V)) of the Maxwell equations:

[0063]

[0064] Among them, Δt is the time step, s is the number of sub-iteration steps, represents the number of expansion levels, c l and d l is the propagator coefficient, p is the order of the propagator, represents the time difference accuracy, U and V are the spatial discrete matrices of the magnetic field and the electric field respectively, O(Δt p+1 ) is an infinitesimal quantity of order p+1 of Δt.

[0065] like Figure 8 As shown, the 5-level 4th-order symplectic algorithm is used as an example. After 2N-order interleaved differences in space and p-order symplectic integral discretization in time, the SFDTD(p,2N) method is established. In order to make the electric field and magnetic field components in the same order of magnitude, normalization can be performed. Taking the m-level p-order symplectic integral and the 4th-order spatial difference SFDTD(p,4) as an example, the l-level iteration formula of the electric field Ex in the x, y, z directions is as follows:

[0066]

[0067] Among them, E x is the electric field in the X direction, H y and H z are the magnetic fields in the Y and Z directions respectively, ε r is the relative dielectric constant of the medium, i, j, k are the x, y, z axis coordinates of the field quantity, α is the coefficient related to the grid width in each direction; other components can be obtained in the same way.

[0068] For the CPML conditions applicable to the SFDTD method, based on the coordinate telescopic electromagnetic theory, the coordinate factor S in the vector Maxwell equations in the frequency domain is u (u=x,y,z) can be expressed as:

[0069]

[0070] Where ω is the angular frequency of the electromagnetic wave, ε is the dielectric constant of the medium, σ u , α u and K u is the parameter along the u direction, where the parameter σ u Defined by conductivity σ, it is the main parameter of electromagnetic wave absorption in the absorption layer. Parameter αu With K u It plays a key role in the absorption of evanescent waves and low-frequency waves. These parameters need to be adjusted to optimize the absorption effect of CPML in the full frequency band.

[0071] According to CPML theory, each parameter should change monotonically in the absorption layer, so the following formula method is used to construct the changes of each parameter in the absorption layer:

[0072] σu(u)=σmax(ρ / d)m

[0073] Ku(u)=1+(Kmax-1)(ρ / d)m

[0074] d is the thickness of the CPML layer, is the distance from the interface between the calculation area of ​​the SFDTD method and the CPML area to the outer boundary layer of the CPML, m is the order of the polynomial, σ max and K max are the maximum values ​​that conductivity σ and parameter K can take respectively.

[0075] like Fig. 9 As shown, in addition to accurately setting the parameters, it is also necessary to use circular convolution technology for the convolution calculation of the attenuation term to speed up the calculation. A circular convolution technology similar to the FDTD method is used to achieve efficient calculation of the attenuation convolution term.

[0076] Any attenuated convolution term Ψ Euv The time recursion formula can be expressed as:

[0077]

[0078] Among them, Δt is the time step length, n is the time step number, c u is the same as σ u , α u and K u The coefficients of the decay are: α is the decay constant, and the decay convolution term Ψ Euv Defined as: is a time-dependent variable. Therefore, the above formula only requires the field value at the previous moment to achieve efficient iterative calculation of the convolution term. The time recursive formula for the convolution of other convolution terms with the magnetic field can be obtained in the same way.

[0079] For the plasma flow field, the values ​​of various parameters are optimized to achieve the ideal optimal absorption effect, and finally a 10-layer uniform CPML grid is achieved to reach below -60dB, further laying the foundation for accurate RCS calculation.

[0080] like Fig.10As shown in the figure, for the SFDTD method modeling of irregular targets, the material parameters of the modified medium interface (conformal grid) are first used to reflect the influence of the conformal deformed grid on the numerical simulation, and the geometric information at the deformed grid is used as the medium weighting coefficient. The new medium parameters are obtained by interpolation, and the iterative equation is corrected using the newly obtained medium parameters.

[0081] For dielectric materials, non-magnetic materials are considered, so the conformal technology of dielectric materials only needs to modify the iterative formula of the electric field. First, the magnetic field component is formed in a plane as follows Fig.11 The field component distribution shown in Figure (a) is similar to the field component of the traditional FDTD method, and then consider the integral form of Ampere's loop law:

[0082]

[0083] Where E is the electric field, H is the magnetic field, ε is the equivalent dielectric constant in region S, S v is the integration region based on the SFDTD grid, L v is the corresponding integral path, such as Fig.11 In a single sampling unit, it is first assumed that the material in the integration region is uniform and consistent with the material at the corresponding iterative electric field position.

[0084] The above integral equation is discretized using a regular hexahedron grid. Since the integral and differential forms of Maxwell's equations are equivalent, the calculation expression of the equivalent dielectric constant can be obtained. Taking the x-component as an example, combined with the equivalent dielectric constant, the area weighting scheme is adopted to obtain:

[0085]

[0086] Where a1 is the correction factor, S is the area of ​​the SFDTD grid, is the area enclosed by the integral loop, and ε1 and ε2 are the dielectric constants of the two dielectric regions in the conformal grid. Substituting the new dielectric constant into the electric field iteration equation, the iteration formulas of each electric field component can be obtained.

[0087] By taking the proportion of the area occupied by each material as a weighting coefficient, the grid equivalent dielectric parameters are obtained, and the equivalent dielectric parameters are further combined in the above manner and substituted into the electric field iteration equation as a correction to the conformal grid. Irregular objects can then be taken into account, and accurate results can be obtained.

[0088] like Fig.12 As shown in the figure, for the modeling of irregular boundaries of metal and perfect electric conductor (PEC) targets, since the field inside the conductor is extremely small or zero, we only need to consider the component on its surface, and it is necessary to correct the coefficients in the magnetic field iteration formula.

[0089] A new magnetic field iteration formula can be obtained according to the size of the grid deformation area.

[0090] The difference from the dielectric conformal technique is that since the grid area is directly modified in the iteration coefficient, it can be predicted that this will directly affect the numerical stability of the SFDTD method. The electric field front coefficient is the inverse of the deformation area. When the grid size is extremely small, the value of this item will become extremely large, and stability problems will occur. To solve this problem, a stability improvement method is adopted, that is, when the area of ​​the deformed grid is very small, a stable grid area is used to replace the deformed grid. In the specific implementation of the algorithm, a stable area Seff is introduced to replace the area of ​​those unstable grids, and the stable grid does not need to be corrected. This requires optimizing the parameters to achieve better stability of the algorithm and maintain a certain accuracy. The relative size of Seff is determined by the FDTD method.

[0091] 2. Distributed\shared memory and CPU AVX instruction three-level parallel method;

[0092] The spatial grid used by the SFDTD method is exactly the same as the spatial grid used by the FDTD method. Therefore, the iteration of the field quantity in the calculation only needs to use the field information at the nearby grids. Therefore, each complete task can be assigned to multiple processors to run, which will greatly speed up the program running speed and improve the calculation efficiency.

[0093] When SFDTD is dealing with complex electromagnetic simulation problems such as plasma, in order to ensure calculation accuracy and meet stability conditions, the number of grids that need to be divided is very large. The above iterative formula needs to be calculated in each grid, and the calculation of each grid must be performed one by one in each time step. This calculation method will cause the calculation time to be too long and the memory requirement to be too large. By using parallel computing technology, the electromagnetic field iterative calculation of several grids can be completed at one time in one time step, so that even if the space and time complexity of the algorithm are not changed, the calculation efficiency can be improved.

[0094] In the study of the scattering characteristics of the flow field around the plasma sheath, the use of parallel computing methods can effectively improve the efficiency of the calculation while ensuring the calculation accuracy using the SFDTD algorithm. The SFDTD parallel computing method based on MPI can realize parallel computing between computing nodes, and use single data exchange technology to reduce time and improve parallel efficiency. In addition, due to the special iteration method of the SFDTD method, it is more advantageous to use data parallelism in OpenMP. The data parallel method is used in the iterative calculation of the key core field within the node to achieve thread parallelism, and further realize the parallel computing of threads within the node of the SFDTD method. Combining the above two methods, vector operations of the CPU (central processing unit) are realized, such as Fig.13As shown in the figure, a new three-level parallel SFDTD calculation method is designed to solve the problems of low calculation efficiency and low calculation accuracy encountered in the study of scattering characteristics of flow field around plasma sheath.

[0095] Since the SFDTD method and the FDTD method use the same spatial grid, the iteration of the field quantity only needs to use the field information at the nearby grids, and a complete task can be distributed to multiple processors to run. In the parallel domain decomposition, in order to avoid unnecessary numerical interpolation, the subdomain interface is overlapped with the SFDTD method grid, that is, parallel division, and the subdivision is performed on the basis of the SFDTD method grid.

[0096] For task parallel partitioning, one way is to directly use a large-scale computer cluster to perform overall calculations on the computing area. Each computer cluster is assigned exactly the same tasks, without considering the complexity of the computing area and the computing power of the computing nodes. This is called simple partitioning. A more common method is to balance the load, that is, based on the number of nodes and the computing power of each node, the computing power is comprehensively considered, such as the number of CPU cores, the amount of memory, etc., to perform load balancing on the problem and reasonably allocate it to each computing node.

[0097] Specifically, the weighted / priority allocation method is used to reasonably divide the computing area, and weight the sub-computing area according to the computational complexity. When requesting task allocation, different levels of allocation are made according to the proportion or priority of the weighted value, and the tasks are divided into simple work, moderate work, and difficult work. Compared with the simple division method, the weighted / priority allocation method takes into account the differences in computing performance of computing nodes and other conditions to adjust the task allocation in advance. Before the computing part is calculated, the parallel divided sub-tasks are reasonably allocated to each computing node according to the load situation, so as to achieve preventive load balancing before the calculation.

[0098] After the entire computing area is divided, the following process is further used to find and record each subdomain that needs to exchange computing data.

[0099] Step 1: Consider the subdomain topology structure as a three-dimensional matrix M. For a given subdomain number N, its position index (i, j, k) in M ​​needs to be determined;

[0100] Step 2: Find the subdomain index (in, jn, kn) adjacent to the subdomain, convert it into the corresponding process number, and record the corresponding attributes of the six adjacent interfaces.

[0101] like Fig.14As shown, after completing the subdomain data exchange area search and material parameters, the corresponding calculation and data exchange are completed in each node; assuming that the subdomain is set along the x direction, the exchange of tangential electric and magnetic fields on the subdomain interface is carried out between two adjacent subdomains. At the region division surface, each subdomain expands outward by a grid space to form its own subdomain. The nodes Hx, Hz and Hy on the left boundary of subdomain N+1 are solved in subdomain N, and then passed to the adjacent subdomain N+1 using the MPI function. In subdomain N+1, these three magnetic field components are used as boundary conditions to solve the electric field values ​​in the subdomain. Similarly, the nodes Hx, Hz and Hy on the right boundary of subdomain N can be directly calculated in subdomain N+1, and the MPI function is used to pass them to the N region as boundary conditions to complete the iteration of the electric field nodes in the N region.

[0102] The magnetic field nodes defined above are located on the boundary of the two subdomains. At this time, the iteration of the electric field nodes does not require data exchange and can be directly iteratively calculated by the magnetic field in the subdomain. However, if the nodes on the boundary are electric field nodes, the same method can be used to complete the iteration of the magnetic field nodes in the N regions. The present invention only needs to perform data exchange once, which can greatly save the time consumed by data exchange, thereby improving parallel efficiency.

[0103] There are two parallel strategies in OpenMP: data parallelism and functional parallelism. Data parallelism uses the for / parallelfor directive, and functional parallelism uses the sections / parallel sections directive. Due to the iterative characteristics of the SFDTD method, the iteration of the electric field and the iteration of the magnetic field are relatively independent in each time step, that is, in the same time step, only one of the electric field and the magnetic field is updated, and the other remains unchanged. Therefore, this method is more suitable for data parallelism, so this method is used to achieve thread parallelism in the iterative calculation of the key core field in the node.

[0104] In the secondary parallel computing process of OpenMP and MPI, MPI can be used to provide process-level parallelism across nodes, while OpenMP can be used to achieve loop-level parallelism within a node by using compiler directives. In the secondary parallel computing process, OpenMP threads will share the memory of each node, so the total amount of memory consumed at this time will be much smaller than the total amount of memory occupied when using pure MPI parallel computing. The communication between lightweight threads has also become faster because it replaces the traditional MPI process sending and receiving communication mechanism. And because there are fewer MPIs across nodes, the scalability of the communication hybrid model has also been significantly improved.

[0105] The specific implementation steps are as follows: First, according to the number of available cores in each CPU, multiple threads are generated using OpenMP in the computationally intensive areas of SFDTD field iteration and CPML field iteration. Since OpenMP is a shared memory programming, threads can share data without communication, and efficient parallel computing can be achieved on shared memory nodes.

[0106] Through the above content, the SFDTD method can be further implemented to realize the secondary parallel calculation of threads within the node, while ensuring the high accuracy and stability of the calculation and saving the memory space required for operation.

[0107] The first and second level parallelism are the division of the computational domain, which belongs to coarse-grained data parallelism, while the third level parallelism based on the SSE / AVX instruction set is fine-grained data parallelism. Intel Streaming SIMD Extension (SSE) technology is an enhancement technology for Intel series CPUs. It regards vector addition and subtraction as the superposition of multiple independent scalar addition and subtraction. Using this technology, multiple operations can be completed in one clock cycle, thereby effectively improving the computational efficiency. The core of the SFDTD three-level parallel computing technology for studying the scattering characteristics of the plasma sheath flow field is to use the Intel AVX instruction set to realize the core vectorized parallel computing of the SFDTD method.

[0108] In the SFDTD method, the basis for calculating the electric field and magnetic field is the Yee method. Taking the numerical calculation of the z-direction electric field node Ez with coordinates (i, j, k) at time n+1 as an example, the calculation formula is:

[0109]

[0110] Among them, CA and CB are the iterative correlation coefficients corresponding to SFDTD, and Δx and Δy are the lengths of each Yee cell in the x and y directions, respectively.

[0111] in, σ is the conductivity, ε is the dielectric constant, and Δt is the length of a single time step.

[0112] like Fig.15As shown in the figure, since the SIMD method relies on the computer's CPU registers to store data, and the number of registers that can store data is extremely limited, and since the CPU registers are extremely limited, it is not necessary to vectorize all the solver codes, which will increase development efficiency and invalid data access. Therefore, in order to solve the computational bottleneck of the SFDTD method, on the basis of realizing thread parallelism within the computing node, the AVX instruction set is further used to vectorize and parallelize the code within the field iteration inner loop, and applied to the field iteration area of ​​the SFDTD method and the CPML field iteration area, the time iteration of the electric field and magnetic field components can be realized, thereby realizing the proposed three-level parallel computing scheme.

[0113] Specifically, first calculate H related to the spatial position y Coefficient C1, H x The coefficient C2 is stored in the AVX register in the form of a floating point number and converted into an AVX256-bit data pointer for easy calling; then the H on both sides of the electric field node are calculated as above. y The difference ΔH y and the electric field nodes on both sides H x The difference ΔH x ; Multiply by H y Coefficient C1, H x The coefficient C2, after subtraction, is the contribution of the magnetic field to the electric field Multiply the electric field at the previous moment n by the correlation coefficient CA, and the contribution of the electric field The electric field is obtained by adding them together and finally written into the memory.

[0114] The above is only 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 for various other combinations, modifications and improvements, 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 deviate 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. A time-varying plasma flow field SFDTD method based on three-level parallel computing, characterized by: The method comprises: Step 1: Under the ideal conductor boundary condition, the hexahedral plasma is used as the calculation domain, and the electromagnetic characteristic parameters of the plasma are calculated by a three-level parallel calculation method. The plasma is regarded as a specific medium, and the SFDTD iterative formula is modified to realize the SFDTD iterative operation; Step 2: According to the circular convolution technique, the CPML absorption boundary in the hexahedral plasma is set in combination with electromagnetic characteristic parameters and calculation methods; Step 3: Process the irregular grid under CPML absorbing boundary conditions according to dielectric and conductor conformal technology; The three-level parallel computing method includes: MPI first-level parallel computing, OpenMP second-level parallel computing and AVX instruction set vectorized parallel computing for code; The MPI first level parallel computing includes: Computational area division: overlap the subdomain interface with the spatial grid of the SFDTD method for parallel division; Subdomain search: The subdomain topology structure is regarded as a three-dimensional matrix M. For a given subdomain number N, its position index in the three-dimensional matrix M is determined, the adjacent subdomain index of the subdomain is found, and it is converted into the corresponding process number, and the corresponding attributes of the six adjacent interfaces are recorded; Data exchange: Assuming that the subdomains are set along the x direction, the exchange of tangential electric and magnetic fields on the interface of the subdomains is carried out between two adjacent subdomains. At the region division surface, each subdomain expands outward by a grid space to form its own subdomain. The nodes Hx, Hz and Hy on the left boundary of subdomain N+1 are solved in subdomain N, and the MPI function is used to transfer them to the adjacent subdomain region N+1. In subdomain N+1, the magnetic field components Hx, Hz and Hy are used as boundary conditions to solve the electric field value in the subdomain. Similarly, the nodes Hx, Hz and Hy on the right boundary of subdomain N can be directly calculated in subdomain N+1, and the MPI function is used to transfer them to region N as boundary conditions to complete the iteration of the electric field nodes in region N. If the nodes on the boundary are electric field nodes, the same method can be used to complete the iteration of the magnetic field nodes in the N region; The OpenMP second level parallel computing includes: According to the number of cores available in each CPU, OpenMP is used to generate multiple threads in the computationally intensive parts of SFDTD field iteration and CPML field iteration. Since OpenMP is a shared memory programming, threads can share data without communication, thus achieving efficient parallel computing on shared memory nodes. The AVX instruction set performs vectorized parallel computing on the code including: Calculate H related to spatial position y Coefficient C1, H x The coefficient C2 is stored in the AVX register as a floating point number and converted into an AVX256-bit data pointer for easy calling; Calculate H on both sides of the electric field node separately y The difference ΔH y and the electric field nodes on both sides H x The difference ΔH x , multiplied by H y Coefficient C1, H x Coefficient C2, after subtraction, we get the contribution of magnetic field to electric field Multiply the electric field at the previous moment n by the correlation coefficient CA, and the contribution of the electric field The electric field is obtained by adding them together and finally written into the memory.

2. The SFDTD method for time-varying plasma flow field based on three-level parallel computing according to claim 1 is characterized in that: The step 1 specifically includes the following contents: Plasma is regarded as a specific medium with equivalent electromagnetic parameters. According to the general plasma theory equation, the distribution function of charged particles is calculated, and the electron density distribution in the plasma is calculated by combining the Arrhenius formula and the chemical reaction formula, and then the macroscopic electromagnetic characteristic parameters of the plasma are obtained, including conductivity and dielectric constant; and the collision frequency of electrons and neutral particles in the air is calculated according to the gas kinetic theory; Maxwell equations are supplemented based on the collision frequency and macroscopic electromagnetic characteristic parameters, and the FDTD iterative formula applicable to the plasma flow field is obtained to complete the time-varying plasma electromagnetic modeling. The time evolution matrix of Maxwell's equations is numerically approximated. After 2N-order spatial staggered differences and p-order temporal symplectic integral discretization, the SFDTD(p, 2N) method is established and normalized to make the electric and magnetic field components in the same order of magnitude.

3. The SFDTD method for time-varying plasma flow field based on three-level parallel computing according to claim 1 is characterized in that: The method of calculating the electromagnetic characteristic parameters of plasma by a three-level parallel calculation method includes: calculating the electric field value at a certain place in space at a previous time step and multiple surrounding magnetic field values ​​by a three-level parallel calculation method, and calculating the magnetic field value at a certain place in space at a current time step and multiple surrounding electric field values.

4. The SFDTD method for time-varying plasma flow field based on three-level parallel computing according to claim 1 is characterized in that: The step 2 specifically includes the following contents: According to the coordinate telescopic electromagnetic theory, the coordinate factor in the vector Maxwell equations in the frequency domain is expressed as Among them, ω represents the angular frequency of the electromagnetic wave, ε represents the dielectric constant of the medium, σ u , α u and K u is the parameter along the u direction, by adjusting σ u , α u and K u This makes CPML achieve optimal absorption effect in the full frequency band; According to the formula Construct the changes of various parameters in the absorption layer, where d is the thickness of the CPML layer, m is the order of the polynomial, and σ max and K max are the maximum values ​​that the conductivity σ and parameter K can take respectively; Any attenuated convolution term Ψ Euv The time recursion formula is expressed as Δt is the time step length, n is the time step number, c u is the same as σ u , α u and K u The relevant coefficients, α is the attenuation constant; The attenuated convolution term Ψ Euv Defined as For time-dependent variables, efficient iterative calculation of the convolution term is achieved through the field value of the previous time step.

5. The SFDTD method for time-varying plasma flow field based on three-level parallel computing according to claim 1 is characterized in that: The step three specifically includes the following contents: The material parameters at the modified medium interface are used to reflect the influence of the conformal deformed grid on the numerical simulation. The geometric information at the deformed grid is used as the medium weighting coefficient, and new medium parameters are obtained by interpolation. The iterative equation is then modified using the newly obtained medium parameters.