One-dimensional electromagnetic calculation method, system and device based on ultra-high order finite element technology

By using ultra-high-order finite element technology, increasing the number of nodes and using high-order basis functions, the problem of low computational accuracy caused by low-order basis functions is solved, and more efficient and accurate electromagnetic calculations are achieved.

CN116776695BActive Publication Date: 2026-11-27ANHUI UNIV
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202310772046.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-06-28
Publication Date
2026-11-27
Estimated Expiration
2043-06-28

AI Technical Summary

Technical Problem

When dealing with one-dimensional electromagnetic problems, the existing finite element method cannot accurately capture the details of complex geometries and physical phenomena due to the inability of low-order basis functions, resulting in distorted and unstable calculation results and low calculation accuracy.

Method used

By employing ultra-high-order finite element technology, increasing the number of element mesh nodes and using higher-order basis functions, combined with Galerkin method and Gaussian integral, the partial differential equations are transformed into weak form. The matrix equations are then solved using an iterative method to obtain high-precision numerical solutions.

Benefits of technology

It improves computational accuracy and stability, reduces mesh reconstruction complexity, and has higher computational efficiency. It is suitable for one-dimensional electromagnetic calculations and has broader application prospects.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116776695B_ABST
    Figure CN116776695B_ABST
Patent Text Reader

Abstract

The application discloses a one-dimensional electromagnetic calculation method, system and device based on an ultra-high-order finite element technology, and relates to the field of computational electromagnetics and layered electromagnetic propagation. The one-dimensional ultra-high-order finite element technology is adopted to realize transition from a linear base function to a higher-order base function, and successfully overcomes inevitable congenital defects of original finite element technology, such as complicated grid reconstruction, low calculation efficiency and low calculation precision. Through correction of coordinate transformation under a high-order condition and corresponding shape functions, the ultra-high-order finite element technology needs fewer grid nodes and division regions, and has advantages of smooth curve and numerical stability, so that the ultra-high-order finite element technology can be applied to the one-dimensional electromagnetic calculation method to obtain more accurate numerical solution. For electromagnetic problems of higher dimensions, similar solutions of the one-dimensional ultra-high-order finite element technology will have broader application significance.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of computational electromagnetics, and in particular to a one-dimensional electromagnetic calculation method, system, and device based on ultra-high-order finite element technology. It belongs to a field analysis method for obtaining electromagnetic propagation, and uses high-order finite element algorithms to realize the one-dimensional case. Background Technology

[0002] Computational electromagnetics (CEM) is an applied science developed within the discipline of electromagnetic fields and microwave technology. Based on electromagnetic field theory, it utilizes high-performance computing technology and computational mathematical methods to specifically solve complex electromagnetic field and microwave engineering problems. For electrostatic problems, exact solutions to Maxwell's equations are obtained under given boundary conditions. However, as the complexity of electromagnetic problems increases, obtaining exact solutions to Maxwell's equations becomes difficult. This led to the development of numerical methods such as the method of moments (MoM), the finite-difference time-domain (FDTD) method, and the finite element method (FED). Compared to analytical methods and the FDTD, the FED method can handle problems with more flexible shapes and boundaries, and it has greater advantages for problems with practically complex structures.

[0003] The finite element method (FEM) has developed rapidly with the advent of high-performance computers. Its basic principle is to divide the continuous electromagnetic field computational domain into discrete subdomains. Within these subdomains, the field quantities to be solved are represented as linear combinations of basis functions. This transforms the solution to a continuous problem into an approximate expression of unknown coefficients within a finite number of discrete regions, thus transitioning the problem from a continuous infinite computational domain to a discrete finite computational domain. The computational process of the finite element algorithm includes using the Galerkin method to transform partial differential equations into weak forms, ultimately converting the partial differential equations into matrix equations. The matrix equation data is stored using a sparse matrix triplet storage format, and the matrix equations are solved using simultaneous elimination and back substitution to obtain the numerical solution for the field quantities.

[0004] When dealing with one-dimensional electromagnetic problems, the main challenges faced by the primal finite element method (PFEM) include how to construct basis functions, improve its convergence speed, and enhance the accuracy of numerical solutions. Since the primal finite element method uses low-order basis functions, it cannot accurately capture the details of complex geometries and physical phenomena. The nodes of the primal finite element method can only roughly approximate the original geometry, which may lead to distorted solutions during the simulation process. These solutions may interfere with the calculation results and visualizations and may not conform to reality. In some cases, low-order basis functions may fail to accurately capture the transformation between material properties or changes in slope, resulting in unstable or unreasonable solutions. Summary of the Invention

[0005] The purpose of this invention is to provide a one-dimensional electromagnetic calculation method, system, and device based on ultra-high-order finite element technology. The use of ultra-high-order basis functions can effectively address the problem of low calculation accuracy faced by the original finite element method, and has certain practical value.

[0006] To achieve the above objectives, the present invention provides the following solution:

[0007] A one-dimensional electromagnetic calculation method based on ultra-high-order finite element technology, the method comprising:

[0008] The finite element mesh size and the number of nodes in each element mesh are determined based on the length of the computational domain to be solved and the accuracy requirements of the numerical solution. The finite element network of the computational domain to be solved is constructed based on the finite element mesh size and the number of nodes in each element mesh, and the number of element meshes is determined. The number of nodes in each element mesh is obtained by adding the number of element mesh nodes to the original finite element.

[0009] Determine the basis function expression for each cell grid;

[0010] The product of the partial differential equation and the trial function is transformed into a weak form. The trial function is expressed using basis functions using the Galerkin method. The expression of the trial function is substituted into the weak form. The unknown function in the cell grid is expressed as a linear combination of basis functions and substituted into the weak form. The coefficients of the unknown function are combined to obtain the grid matrix expression and the known vector expression.

[0011] Select Gaussian integration points, determine the values ​​of each term in the grid matrix expression and the known vector expression at the selected Gaussian integration points, obtain the weights corresponding to the selected Gaussian integration points according to the Gaussian quadrature rule, multiply the selected Gaussian integration points and the corresponding weights and sum them to obtain the values ​​of each component in the grid matrix and the known vector;

[0012] The global matrix of the cell network is obtained based on the grid matrix determined by all components and the known vectors determined by the components. The form of the boundary conditions is confirmed, and the boundary conditions are integrated into the global matrix. The integrated matrix equation is solved by iterative method to obtain the numerical solution.

[0013] Obtain the analytical solution corresponding to the partial differential equation, and calculate the mean square error based on the numerical solution and the analytical solution, and determine whether the mean square error meets the preset value;

[0014] If so, the final numerical solution is output, which is the electromagnetic data of the computational domain to be solved.

[0015] If not, reduce the mesh size, use the reduced mesh size as the finite element mesh size, and return to the step "Construct the finite element network of the computational domain to be solved based on the finite element mesh size and the number of nodes in each element mesh", or increase the order of the basis functions and return to the step "Determine the basis function expression for each element mesh".

[0016] Optionally, determine the basis function expression for each cell grid, specifically including:

[0017] The unknown functions in the cell grid are represented using basis functions and polynomials, respectively, to obtain the unknown functions in basis function form and the unknown functions in polynomial form;

[0018] Substitute the coordinates of each node in the cell grid into the unknown function in the form of the basis function and the unknown function in the form of the polynomial, respectively, to obtain the first expression and the second expression;

[0019] By expressing the first expression and the second expression in matrix form, we obtain the first matrix expression and the second matrix expression.

[0020] The second expression is written as the product of row vectors and column vectors, resulting in the product form expression.

[0021] Substituting the product form into the first matrix expression yields the combined expression;

[0022] Substituting the combined expression into the second matrix expression yields the basis function expression.

[0023] Optionally, the basis function expression is:

[0024]

[0025] Where, n e Number of cells in the grid Representing the unknown function u e (ξ) is the value at the grid node, N i (ξ) represents the expression of the i-th basis function, ξ i ξ represents the node coordinates in the cell mesh, and ξ represents the principal domain variable;

[0026] Optionally, the product of the partial differential equation and the trial function is transformed into a weak form. The trial function is then expressed using basis functions using the Galerkin method. The expression of the trial function is substituted into the weak form. The unknown functions in the element mesh are expressed as linear combinations of basis functions and substituted into the weak form. The coefficients of the unknown functions are combined to obtain the mesh matrix expression and the known vector expression. Specifically, this includes:

[0027] Transform the product of the partial differential equation and the trial function into a weak form;

[0028] The basis functions of the corresponding order are selected according to the number of nodes in the unit grid. The trial function and the unknown function are represented using the selected basis functions. The represented trial function and the represented position function are then substituted into the weak form.

[0029] By merging the coefficients in the expression obtained after substituting them into the weak form and transforming the expression form, the grid matrix expression and the known vector expression of the unit grid are obtained.

[0030] Optionally, the expression obtained after substituting into the weak form is:

[0031]

[0032] Among them, w e (x) represents the trial function; f e (x) is the source function; Represents the nth element within a cell grid. e One node; p represents the first node inside the cell mesh. e (x) and q e (x) are all material parameters in the partial differential equation; g is a basis function; e equal

[0033] Optionally, the expression for the grid matrix is:

[0034]

[0035] The known vector expression is:

[0036]

[0037] Optionally, the expression for the global matrix is:

[0038]

[0039]

[0040] Where i,j represent the position numbers of the cell grid matrix; i g j g Indicates the position number of the global matrix.

[0041] This invention also provides a one-dimensional electromagnetic calculation system based on ultra-high-order finite element technology, the system comprising:

[0042] A meshing module is constructed to determine the finite element mesh size and the number of nodes in each element mesh based on the length of the computational domain to be solved and the accuracy requirements of the numerical solution. Based on the finite element mesh size and the number of nodes in each element mesh, a finite element network of the computational domain to be solved is constructed, and the number of element meshes is determined. The number of nodes in each element mesh is obtained by adding the number of element mesh nodes to the original finite element.

[0043] The first expression determination module is used to determine the basis function expression for each cell grid.

[0044] The second expression determination module is used to transform the product of the partial differential equation and the trial function into a weak form, express the trial function using basis functions using the Galerkin method, substitute the expression of the trial function into the weak form, express the unknown function in the cell grid as a linear combination of basis functions and substitute it into the weak form, merge the coefficients of the unknown function, and obtain the grid matrix expression and the known vector expression.

[0045] The component determination module is used to select Gaussian integration points, determine the values ​​of each term in the grid matrix expression and the known vector expression at the selected Gaussian integration points, obtain the weights corresponding to the selected Gaussian integration points according to the Gaussian quadrature rule, and multiply the selected Gaussian integration points and the corresponding weights and sum them to obtain the values ​​of each component in the grid matrix and the known vector.

[0046] The solution module is used to obtain the global matrix of the cell network based on the grid matrix determined by all components and the known vectors determined by the components, confirm the form of the boundary conditions, integrate the boundary conditions into the global matrix, and use an iterative method to solve the matrix equation obtained after integration to obtain a numerical solution.

[0047] The iteration termination judgment module is used to obtain the analytical solution corresponding to the partial differential equation, calculate the mean square error based on the numerical solution and the analytical solution, and determine whether the mean square error meets the preset value.

[0048] If so, the final numerical solution is output, which is the electromagnetic data of the computational domain to be solved.

[0049] If not, reduce the mesh size, use the reduced mesh size as the finite element mesh size, and return to the mesh construction module to execute the step "Construct the finite element network of the computational domain to be solved based on the finite element mesh size and the number of nodes in each element mesh", or increase the order of the basis functions and return to the first expression determination module to execute the step "Determine the basis function expression of each element mesh".

[0050] The present invention provides an electronic device, including a memory and a processor. The memory is used to store a computer program, and the processor runs the computer program to enable the electronic device to perform the one-dimensional electromagnetic calculation method based on ultra-high-order finite element technology.

[0051] According to specific embodiments provided by the present invention, the present invention discloses the following technical effects:

[0052] This invention provides a one-dimensional electromagnetic calculation method, system, and device based on ultra-high-order finite element method (UHF) technology, relating to the fields of computational electromagnetics and layered electromagnetic propagation. The UHF technology utilizes a one-dimensional UHF technique to transition from linear basis functions to higher-order basis functions, successfully overcoming the inherent limitations of traditional finite element methods, such as cumbersome mesh reconstruction, low computational efficiency, and low accuracy. This invention integrates the computational domain into a single interval using coordinate mapping, reducing the complexity of mesh reconstruction. The low computational efficiency is addressed using Gaussian integration and sparsity, achieving high accuracy with only a finite number of points. By modifying the coordinate transformation and corresponding shape functions under higher-order conditions, UHF technology requires fewer mesh nodes and partitioned regions, exhibiting advantages in curve smoothness and numerical stability. Therefore, its application in one-dimensional electromagnetic calculations yields more accurate numerical solutions. For higher-dimensional electromagnetic problems, similar methods using UHF technology will have broader application significance. Attached Figure Description

[0053] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0054] Figure 1 This is a flowchart of the one-dimensional ultra-high-order finite element algorithm of the present invention;

[0055] Figure 2 This is the mesh and its node diagram of the present invention;

[0056] Figure 3 This is the numerical solution to the original finite element electrostatic problem of this invention;

[0057] Figure 4 This is the numerical solution of the ultra-high-order 3-node finite element electrostatic problem of the present invention;

[0058] Figure 5 This is the numerical solution of the ultra-high-order 4-node finite element electrostatic problem of the present invention;

[0059] Figure 6 This is the numerical solution of the ultra-high-order 5-node finite element electrostatic problem of the present invention;

[0060] Figure 7 This is the numerical solution to the original finite element electromagnetic scattering problem of this invention;

[0061] Figure 8 This is the numerical solution to the ultra-high-order 3-node finite element electromagnetic scattering problem of the present invention;

[0062] Figure 9 This is the numerical solution of the ultra-high-order 4-node finite element electromagnetic scattering problem of the present invention;

[0063] Figure 10 This is the numerical solution to the ultra-high-order 5-node finite element electromagnetic scattering problem of the present invention. Detailed Implementation

[0064] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.

[0065] Parameter explanation: The following is a summary of the meanings of all 'i' in this article:

[0066] (1) i in the basis functions, The expression representing the i-th basis function in the cell mesh.

[0067] (2) This represents the value of the unknown function corresponding to the i-th node in the cell mesh.

[0068] (3) The subscripts i and j of the basis functions in the weak form of the integral are used to distinguish between trial functions and unknown functions.

[0069] (4)ξ i Correspondence refers to the coordinates of the i-th node in the cell grid.

[0070] The purpose of this invention is to provide a one-dimensional electromagnetic calculation method, system, and device based on ultra-high-order finite element technology. The use of ultra-high-order basis functions can effectively address the problem of low calculation accuracy faced by the original finite element method, and has certain practical value.

[0071] To make the above-mentioned objects, features and advantages of the present invention more apparent and understandable, the present invention will be further described in detail below with reference to the accompanying drawings and specific embodiments.

[0072] Example 1

[0073] like Figure 1 As shown, this embodiment provides a one-dimensional electromagnetic calculation method based on ultra-high-order finite element technology, the method comprising:

[0074] S1: Determine the finite element mesh size and the number of nodes in each element mesh based on the length of the computational domain to be solved and the accuracy requirements of the numerical solution. Construct the finite element network of the computational domain to be solved based on the finite element mesh size and the number of nodes in each element mesh, and determine the number of element meshes. The number of nodes in each element mesh is obtained by adding the number of element mesh nodes to the original finite element.

[0075] 1) Obtain the length of the entire computational domain. Set an initial mesh size based on the accuracy of the numerical solution. A denser mesh size can be used in the boundary and medium of the computational domain. After determining the number of meshes in the computational domain, the total number of nodes needs to be determined based on the number of element mesh nodes. Increase the number of element mesh nodes on the basis of the original finite element method and map the computational domain from the original coordinates to the main domain.

[0076] The size of the entire region is determined and divided into an air domain, a dielectric domain, and a boundary. The purpose of applying the boundary in the scattering problem is to truncate the computational domain, which is 5 to 10 wavelengths in size. The computational domain includes the air domain, the dielectric domain, and the boundary. When the material of the dielectric domain is an ideal conductor, the dielectric domain is not included in the computational domain.

[0077] The simulation environment's medium parameters and mesh size are preset, the initial model's mesh count and node count are determined, the initial region's location is determined, and the initial simulation model is constructed. Figure 2 This invention demonstrates the grid and node images used in its construction. Figure 2 (a) Example of a traditional finite element mesh node; Figure 2 (b) Example of ultra-high-order finite element mesh node corresponding to the present invention. The node can be set according to requirements.

[0078] S2: Determine the basis function expression for each cell grid.

[0079] Step S2 specifically includes:

[0080] S21: The unknown functions in the unit grid are represented by basis functions and polynomials respectively, to obtain the unknown functions in basis function form (Equation (1)) and the unknown functions in polynomial form (Equation (2)). In this paper, the unknown functions are consistent with the field quantities to be solved, and their practical meaning is to characterize the values ​​of the field quantities to be solved at the nodes.

[0081] 2) The unsolved field quantity u in the element mesh e (ξ) can be expressed using basis functions and polynomials respectively;

[0082]

[0083]

[0084] Where e represents the grid number, n e Number of cells in the grid Representing the unknown function u e (ξ) is the value at the grid node, where ξ represents the principal domain variable. Denotes basis functions. Represents the polynomial coefficients.

[0085] S22: Substitute the coordinates of each node in the cell grid into the unknown function in the form of the basis function and the unknown function in the form of the polynomial, respectively, to obtain the first expression and the second expression.

[0086] S23: Express the first expression and the second expression in matrix form to obtain the first matrix expression (formula (3)) and the second matrix expression (formula (4)).

[0087] 3) Substitute the coordinates of each node in the cell grid into equations (2) and (1), and express the resulting expression in matrix form. At the same time, write equation (2) as the product of row vectors and column vectors, and get:

[0088]

[0089]

[0090] S24: Rewrite the second expression as the product of row vectors and column vectors to obtain the product expression.

[0091]

[0092] Where ξ i This represents the node numbered i in the cell mesh.

[0093] S25: Substitute the product form expression into the first matrix expression to obtain the combined expression.

[0094] 4) Substitute equation (5) into equation (3) to obtain u e (x) and basis functions and The expression.

[0095] S26: Substitute the combined expression into the second matrix expression to obtain the basis function expression.

[0096] Will get u e (x) and basis functions and Substituting the expression into equation (4) yields the basis function N. i The expression (ξ), based on N iThe vector expression of (ξ) and matrix operations yield an expression for a specific component;

[0097]

[0098] The order of the basis functions is determined based on the number of nodes in the element mesh. Since the coordinates corresponding to the nodes in the principal domain are substituted into the unknown function to obtain a system of equations, the basis function expressions and polynomial expressions of the unknown function are substituted into the obtained system of equations, and Cramer's rule is used to obtain the expressions of the basis functions.

[0099] The order of the basis functions corresponds one-to-one with the mesh nodes. The basis function expressions are obtained based on coordinate mapping and Cramer's rule. Since the ultra-high-order finite element method uses high-order polynomial basis functions, computers can easily process polynomial basis functions.

[0100] S3: Transform the product of the partial differential equation and the trial function into a weak form. Use the Galerkin method to express the trial function using basis functions. Substitute the expression of the trial function into the weak form. Represent the unknown function in the cell grid as a linear combination of basis functions and substitute it into the weak form. Combine the coefficients of the unknown function to obtain the grid matrix expression and the known vector expression.

[0101] Step S3 specifically includes:

[0102] S31: Transform the product of the partial differential equation and the trial function into a weak form.

[0103] 5) In the weak form of the finite element method, a test function (trial function) w needs to be introduced. e (x) is a differentiable function used to integrate the original equation. The original partial differential equation needs to be multiplied by the test function and integrated to obtain its discretized form. In this way, after discretization, the original form of a differential equation is transformed into the form of a system of algebraic equations;

[0104]

[0105]

[0106] S32: Select a basis function of the corresponding order according to the number of nodes in the unit grid, represent the trial function and the unknown function using the selected basis function, and substitute the represented trial function and the represented position function into the weak form.

[0107] 6) Select the basis function N of the corresponding order based on the number of nodes in the element mesh. e (x), where the order of the basis functions is consistent with the number of nodes in the element mesh. Let Substituting into the equation, we get:

[0108]

[0109] Among them, g e equal The whole is In the expression, represents the value of the corresponding expression at the left and right nodes in the cell mesh.

[0110] S33: Combine the coefficients in the expression obtained after substituting them into the weak form and transform the expression form to obtain the grid matrix expression and the known vector expression of the unit grid.

[0111] 7) Compare the first integral and the second integral in equation (9) Combine the coefficients and move the remaining terms to the right side of the equation. The coefficients are extracted, and the cell grid matrix and known vector expression are obtained. In each cell grid... The expressions are all consistent;

[0112]

[0113]

[0114] in, For the components of the cell grid matrix, Let w be a known vector component; where w e (x) represents the trial function; f e (x) is the source function; Represents the nth element within a cell grid. e One node; p represents the first node inside the cell mesh. e (x) and q e (x) are all material parameters in the partial differential equation; are basis functions;

[0115] 8) The specific form of the matrix equation can be expressed as:

[0116]

[0117] in and Eliminate using boundary conditions.

[0118] 9) Map the original coordinates x to the main domain ξ, i.e. This approach, using intervals, is primarily aimed at reducing computational errors caused by variations in grid shape and size, thereby improving computational accuracy and updating... The expression for this can be represented as a matrix equation:

[0119] A eu e =b e #(13)

[0120]

[0121]

[0122] A e Represents the cell grid matrix, u e b represents the node value of an unknown function. e Given vectors, N i are basis functions;

[0123] S4: Select Gaussian integration points, determine the values ​​of each term in the grid matrix expression and the known vector expression at the selected Gaussian integration points, obtain the weights corresponding to the selected Gaussian integration points according to the Gaussian quadrature rule, multiply the selected Gaussian integration points and the corresponding weights, and sum them to obtain the values ​​of each component in the grid matrix and the known vector.

[0124] 10) Select Gaussian integration points. The more Gaussian points, the better. Usually, the number of Gaussian points should be consistent with the number of nodes inside the grid. According to the Gaussian quadrature rule, obtain the weight value of the corresponding Gaussian point.

[0125] 11) Calculate the data at the corresponding Gaussian point, and calculate... The expression values ​​and weights at the nodes in the expression are multiplied by the weights and summed to replace the integral, thus obtaining the grid matrix and the known vector.

[0126] Substituting the selected Gaussian points into equations (13) and (14), we obtain the sum of the products of the function values ​​and the corresponding weights, thus obtaining A. e With b e Specific expression;

[0127] Find the values ​​of each term in the grid matrix and the known vector at the selected Gaussian points, obtain the weights of the corresponding points according to the Gaussian quadrature rule, multiply the Gaussian points and weights, and sum them to obtain the values ​​of each component of the grid matrix and the known vector.

[0128] S5: Based on the grid matrix determined by all components and the known vectors determined by the components, obtain the global matrix of the cell network, confirm the form of the boundary conditions, integrate the boundary conditions into the global matrix, and use the iterative method to solve the matrix equation obtained after integration to obtain the numerical solution.

[0129] 12) Assemble all grid matrices with known vectors to form a global matrix.

[0130] The obtained A e b eAssemble into a global sparse matrix. Obtain the global matrix from all the assembled mesh matrices and assemble according to the following formula;

[0131]

[0132]

[0133] Where i,j represent the position numbers of the element grid matrix, i g j g Indicates the position number of the global matrix.

[0134] 13) Add boundary conditions. The boundary conditions act on matrix A and vector b. When it is a second type of boundary condition, it is also necessary to calculate... If the boundary conditions are of the first kind, such as u = u0, then at x = x a At that time, x a Representing the initial coordinates of the grid, matrix A and vector b change as follows:

[0135]

[0136] When the boundary conditions are mixed, i.e. In x = x a At that time, matrix A and vector b change as follows:

[0137]

[0138] Where n is the total number of nodes.

[0139] The addition of the first and second types of boundary conditions involves adjusting matrix A and vector b; the obtained matrix equations can yield numerical solutions for the one-dimensional ultra-high-order finite element method.

[0140] 14) Since A is a sparse matrix, the sparse matrix used in this algorithm is represented by triplets, that is, only the row subscripts, column subscripts and corresponding row and column values ​​of the non-zero elements in A are stored. Since there are a large number of zero elements in the sparse matrix, the amount of computation can be greatly reduced when solving the matrix equation.

[0141] Au=b#(20)

[0142] Assemble all grid matrices and known vectors into a constructed global sparse matrix according to certain rules, confirm the form of the boundary conditions, integrate the boundary conditions into the obtained global sparse matrix, and solve the obtained matrix equation using an iterative method.

[0143] S6: Obtain the analytical solution corresponding to the partial differential equation, calculate the mean square error based on the numerical solution and the analytical solution, and determine whether the mean square error meets the preset value.

[0144] 15) Calculate the analytical solution and solve for the mean square error. If the analytical value is difficult to obtain, use the traditional finite element method to obtain the numerical solution for comparison.

[0145]

[0146] in For numerical solutions, This refers to either an analytical solution or a traditional finite element numerical solution.

[0147] If so, the final numerical solution is output to obtain the value of the field quantity to be solved at the node in the grid, that is, to obtain the electromagnetic data of the computational domain to be solved.

[0148] If not, reduce the mesh size, use the reduced mesh size as the finite element mesh size, and return to the step "Construct the finite element network of the computational domain to be solved based on the finite element mesh size and the number of nodes in each element mesh", or increase the order of the basis functions and return to the step "Determine the basis function expression for each element mesh".

[0149] 16) Compare the mean square error obtained in 15) with the required accuracy. If the accuracy requirement is not met, repeat steps 1) to 16) by adjusting the grid size. However, increasing the grid size will lead to a rapid increase in the amount of computation. Therefore, the accuracy of the numerical solution can also be improved by increasing the order of the basis functions, that is, increasing the number of grid nodes. Repeat steps 6) to 16) to obtain the results again until the accuracy requirement is met.

[0150] Table 1. Mean Square Error of Electric Field in Electrostatic Problems

[0151]

[0152] Table 1 shows the mean square error between the numerical and analytical solutions obtained by applying the one-dimensional ultra-high-order finite element algorithm to electrostatic problems. The expression for the analytical solution of the potential will change depending on the boundary conditions. When the boundary conditions are of the first kind, the analytical solution of the potential can be expressed as:

[0153]

[0154] Where ε is the relative permittivity, ρ v Substituting the charge density into the boundary conditions, we can obtain the precise value of the potential V. Table 1 shows the variation trend of the number of elements in the grid and the mean square error. The selected grid number M is equal to 2, the computational domain length is L equal to 0.04 m, the relative permittivity is 2, and the charge density ρ is... v (x) = ρ0x / L, the analytical solution to the electrostatic problem is of the third order, and the numerical solution can well represent the electric field distribution even when the number of elements in the mesh is small. Figure 3 , Figure 4 , Figure 5The selection of a small number of meshes and the sequential increase of the number of element mesh nodes can effectively verify the advantages of the ultra-high-order finite element numerical method. As the number of element mesh nodes increases, the computational accuracy also increases significantly.

[0155] Figure 3 The original finite element method was used. Figure 4 The unit grid uses 3 nodes. Figure 5 The number of nodes used in the cell grid is 4. Figure 6 The number of nodes used in the cell grid is 5.

[0156] Table 2 Errors in Transmission and Reflection Coefficients for Electromagnetic Scattering Problems

[0157]

[0158] Table 2 shows the percentage error images of reflection and transmission coefficients when the one-dimensional ultra-high-order finite element algorithm is applied to the electromagnetic scattering problem. The parameters are: frequency equal to 300MHz, computational domain length L is 2, dielectric substrate length is 0.25, relative permittivity is 2.7, relative permeability is 1, and the selected mesh number M is equal to 2. Figure 7 It is the numerical solution to the original finite element electromagnetic scattering problem; Figure 8 The unit grid uses 3 nodes. Figure 9 The number of nodes used in the cell grid is 4. Figure 10 The number of nodes in the element mesh is 5, and the analytical expressions for the reflection coefficient and transmission coefficient are as follows:

[0159]

[0160]

[0161] Among them, R e T is the reflection coefficient. e Let be the transmission coefficient, k be the wavenumber, d be the substrate thickness, and r be expressed as follows:

[0162]

[0163] Where η0 is the vacuum impedance and η is the dielectric impedance.

[0164] In electrostatic problems, the mean square error can accurately represent the solution of simple electromagnetic field problems even when the number of element grid nodes is small. When the problem involved is a relatively complex electromagnetic scattering problem, the use of ultra-high-order grids significantly improves the accuracy.

[0165] This implementation provides a one-dimensional electromagnetic calculation method based on ultra-high-order finite element technology, relating to computational electromagnetics and layered electromagnetic propagation. This method is applicable not only to electrostatic analysis between media but also to electromagnetic propagation analysis in multilayered non-uniform media. Traditional finite element technology simply divides the continuous computational domain into discrete subdomains, using the characteristics of linear basis functions within each subdomain to obtain the field quantities to be solved, thus transforming a continuous problem into an approximate representation of a finite number of discrete regions. The one-dimensional ultra-high-order finite element technology employed in this invention achieves a transition from linear basis functions to higher-order basis functions, successfully overcoming the inherent defects of traditional finite element technology, such as cumbersome mesh reconstruction, low computational efficiency, and low computational accuracy. By modifying the coordinate transformation and corresponding shape functions under higher-order conditions, ultra-high-order finite element technology requires fewer mesh nodes and subdivided regions, exhibiting advantages in curve smoothness and numerical stability. Therefore, when applied to one-dimensional electromagnetic calculations, it can obtain more accurate numerical solutions. For higher-dimensional electromagnetic problems, similar methods using one-dimensional ultra-high-order finite element technology will have broader application significance.

[0166] The advantages of this invention are as follows: (1) It divides the continuous solution domain into multiple smaller domains, and in each subdomain, the solution field quantity is expressed as a linear combination of basis functions. This transforms the solution of the continuous problem into an approximate expression of basis functions within a finite number of discrete regions, and transforms the continuous infinite degree-of-freedom problem into a discrete finite degree-of-freedom problem. (2) It uses a weak form to transform the partial differential equation, without being bound by the requirements of individual special points, but relaxing them to the conditions that need to be satisfied on a finite segment. This allows the solution to exist in a discrete form, which can better describe the large number of small changes that exist in the solution process of the electromagnetic field problem.

[0167] (3) Using coordinate mapping technology, the physical region can be mapped onto the main domain, and the coordinates of the corresponding nodes can be used in the main domain. Based on the two unknown function expressions obtained by linear combination and polynomial form of the basis functions and the coordinates of the unit grid nodes, the expression of the basis function can be obtained. (4) By increasing the number of element nodes, higher-order basis functions can be obtained, further improving the accuracy of the numerical solution. This method significantly improves the calculation accuracy in practical applications, especially when high-order polynomial basis functions are involved, it is easy to obtain more accurate calculation results. (5) Using Gaussian integration to obtain the grid matrix and known vectors, some points of the unit grid are selected according to certain rules, and the weights of the corresponding points are calculated according to the Gauss Legendre quadrature principle. By using the weighted summation of the function values ​​of these points to replace the integration, the amount of calculation can be greatly reduced while ensuring accuracy. However, it is necessary to map the computational domain to the main domain to ensure that all integration regions are consistent. It is not necessary to map the Gaussian points to any integration region, thus reducing the amount of calculation.

[0168] Example 2

[0169] This embodiment provides a one-dimensional electromagnetic calculation system based on ultra-high-order finite element technology, the system comprising:

[0170] A meshing module is constructed to determine the finite element mesh size and the number of nodes in each element mesh based on the length of the computational domain to be solved and the accuracy requirements of the numerical solution. The finite element network of the computational domain to be solved is constructed based on the finite element mesh size and the number of nodes in each element mesh, and the number of element meshes is determined. The number of nodes in each element mesh is obtained by adding the number of element mesh nodes to the original finite element.

[0171] The first expression determination module is used to determine the basis function expression for each cell grid.

[0172] The second expression determination module is used to transform the product of the partial differential equation and the trial function into a weak form, express the trial function using basis functions using the Galerkin method, substitute the expression of the trial function into the weak form, express the unknown function in the cell grid as a linear combination of basis functions and substitute it into the weak form, merge the coefficients of the unknown function, and obtain the grid matrix expression and the known vector expression.

[0173] The component determination module is used to select Gaussian integration points, determine the values ​​of each term in the grid matrix expression and the known vector expression at the selected Gaussian integration points, obtain the weights corresponding to the selected Gaussian integration points according to the Gaussian quadrature rule, and multiply the selected Gaussian integration points and their corresponding weights and sum them to obtain the values ​​of each component in the grid matrix and the known vector.

[0174] The solution module is used to obtain the global matrix of the cell network based on the grid matrix determined by all components and the known vectors determined by the components, confirm the form of the boundary conditions, integrate the boundary conditions into the global matrix, and use an iterative method to solve the matrix equation obtained after integration to obtain a numerical solution.

[0175] The iteration termination judgment module is used to obtain the analytical solution corresponding to the partial differential equation, calculate the mean square error based on the numerical solution and the analytical solution, and determine whether the mean square error meets the preset value.

[0176] If so, the final numerical solution is output, which yields the electromagnetic data of the computational domain to be solved.

[0177] If not, reduce the mesh size, use the reduced mesh size as the finite element mesh size, and return to the step "Construct the finite element network of the computational domain to be solved based on the finite element mesh size and the number of nodes in each element mesh", or increase the order of the basis functions and return to the step "Determine the basis function expression for each element mesh".

[0178] Example 3

[0179] This embodiment provides an electronic device, including a memory and a processor. The memory is used to store computer programs, and the processor runs the computer programs to enable the electronic device to execute the one-dimensional electromagnetic calculation method based on ultra-high-order finite element technology of Embodiment 1.

[0180] Alternatively, the aforementioned electronic device may be a server.

[0181] In addition, embodiments of the present invention also provide a computer-readable storage medium storing a computer program that, when executed by a processor, implements the one-dimensional electromagnetic calculation method based on ultra-high-order finite element technology of Embodiment 1.

[0182] Embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0183] This invention is described with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, generate instructions for implementing the flowchart illustrations and / or block diagrams. Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.

[0184] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing device to function in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in a process Figure 1 One or more processes and / or boxes Figure 1 The function specified in one or more boxes.

[0185] These computer program instructions may also be loaded onto a computer or other programmable data processing equipment to cause a series of operational steps to be performed on the computer or other programmable equipment to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable equipment for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the function specified in one or more boxes.

[0186] The various embodiments in this specification are described in a progressive manner, with each embodiment focusing on its differences from other embodiments. Similar or identical parts between embodiments can be referred to interchangeably. For the systems disclosed in the embodiments, since they correspond to the methods disclosed in the embodiments, the descriptions are relatively simple; relevant parts can be referred to the method section.

[0187] This document uses specific examples to illustrate the principles and implementation methods of the present invention. The descriptions of the above embodiments are only for the purpose of helping to understand the method and core ideas of the present invention. Furthermore, those skilled in the art will recognize that, based on the ideas of the present invention, there will be changes in the specific implementation methods and application scope. Therefore, the content of this specification should not be construed as a limitation of the present invention.

Claims

1. A one-dimensional electromagnetic calculation method based on ultra-high-order finite element technology, characterized in that, The method includes: The finite element mesh size and the number of nodes in each element mesh are determined based on the length of the computational domain of the electromagnetic field to be solved and the accuracy requirements of the numerical solution. The finite element network of the computational domain of the electromagnetic field to be solved is constructed based on the finite element mesh size and the number of nodes in each element mesh, and the number of element meshes is determined. The number of nodes in each element mesh is obtained by adding the number of element mesh nodes to the original finite element. Determine the basis function expression for each cell grid; The partial differential equation and the product of the trial function are transformed into a weak form. The trial function is expressed using basis functions using the Galerkin method. The expression of the trial function is substituted into the weak form. The unknown function in the cell grid is expressed as a linear combination of basis functions and substituted into the weak form. The coefficients of the unknown function are combined to obtain the grid matrix expression and the known vector expression. Select Gaussian integration points, determine the values ​​of each term in the grid matrix expression and the known vector expression at the selected Gaussian integration points, obtain the weights corresponding to the selected Gaussian integration points according to the Gaussian quadrature rule, multiply the selected Gaussian integration points and the corresponding weights and sum them to obtain the values ​​of each component in the grid matrix and the known vector; The global matrix of the cell network is obtained based on the grid matrix determined by all components and the known vectors determined by the components. The form of the boundary conditions is confirmed, the boundary conditions are integrated into the global matrix, and the integrated matrix equation is solved by iterative method to obtain the numerical solution. Obtain the analytical solution corresponding to the partial differential equation, and calculate the mean square error based on the numerical solution and the analytical solution, and determine whether the mean square error meets the preset value; If so, the final numerical solution is output, which is the electromagnetic data of the computational domain of the electromagnetic field to be solved; the electromagnetic data includes electric potential, transmission coefficient and reflection coefficient. If not, reduce the mesh size, use the reduced mesh size as the finite element mesh size, and return to the step "Construct the finite element network of the electromagnetic field computational domain to be solved based on the finite element mesh size and the number of nodes in each element mesh", or increase the order of the basis functions and return to the step "Determine the basis function expression for each element mesh". Specifically, determining the basis function expression for each element grid includes: The unknown functions in the cell grid are represented using basis functions and polynomials, respectively, to obtain the unknown functions in basis function form and the unknown functions in polynomial form; Substitute the coordinates of each node in the cell grid into the unknown function in the form of the basis function and the unknown function in the form of the polynomial, respectively, to obtain the first expression and the second expression; By expressing the first expression and the second expression in matrix form, we obtain the first matrix expression and the second matrix expression. The second expression is written as the product of row vectors and column vectors, resulting in the product form expression. Substituting the product form into the first matrix expression yields the combined expression; Substituting the combined expression into the second matrix expression yields the basis function expression.

2. The method according to claim 1, characterized in that, The expression for the basis function is: in, Indicates the number of nodes in the cell grid. Indicates the first One basis function expression, Represents the node coordinates in the cell mesh. This represents a primary domain variable.

3. The method according to claim 2, characterized in that, The product of the partial differential equation and the trial function is transformed into a weak form. The trial function is then expressed using basis functions using the Galerkin method. The expression of the trial function is substituted into the weak form. The unknown functions in the element mesh are expressed as linear combinations of basis functions and substituted into the weak form. The coefficients of the unknown functions are combined to obtain the mesh matrix expression and the expression of the known vectors. Specifically, this includes: Transform the product of the partial differential equation and the trial function into a weak form; The basis functions of the corresponding order are selected according to the number of nodes in the unit grid. The trial function and the unknown function are represented using the selected basis functions. The represented trial function and the represented unknown function are then substituted into the weak form. By merging the coefficients in the expression obtained after substituting them into the weak form and transforming the expression form, the grid matrix expression and the known vector expression of the unit grid are obtained.

4. The method according to claim 3, characterized in that, The expression obtained after substituting into the weak form is: in, The source function; Indicates the first cell within the grid. One node; Indicates the first cell within the grid. One node; and These are all material parameters in partial differential equations; Let j be the trial function represented by the basis functions, and let j take values ​​in the range of... ; Representing an unknown function The value at the grid node; .

5. The method according to claim 4, characterized in that, The expression for the grid matrix is: The known vector expression is: in, , Indicates the position number of the cell grid matrix.

6. The method according to claim 5, characterized in that, The expression for the global matrix is: in, , Indicates the position number of the global matrix.

7. A one-dimensional electromagnetic calculation system based on ultra-high-order finite element technology, characterized in that, The system includes: A meshing module is constructed to determine the finite element mesh size and the number of nodes in each element mesh based on the length of the computational domain of the electromagnetic field to be solved and the accuracy requirements of the numerical solution. Based on the finite element mesh size and the number of nodes in each element mesh, a finite element network of the computational domain of the electromagnetic field to be solved is constructed, and the number of element meshes is determined. The number of nodes in each element mesh is obtained by adding the number of element mesh nodes to the original finite element. The first expression determination module is used to determine the basis function expression for each cell grid. Specifically, determining the basis function expression for each element grid includes: The unknown functions in the cell grid are represented using basis functions and polynomials, respectively, to obtain the unknown functions in basis function form and the unknown functions in polynomial form; Substitute the coordinates of each node in the cell grid into the unknown function in the form of the basis function and the unknown function in the form of the polynomial, respectively, to obtain the first expression and the second expression; By expressing the first expression and the second expression in matrix form, we obtain the first matrix expression and the second matrix expression. The second expression is written as the product of row vectors and column vectors, resulting in the product form expression. Substituting the product form into the first matrix expression yields the combined expression; Substituting the combined expression into the second matrix expression yields the basis function expression; The second expression determination module is used to transform the product of the partial differential equation and the trial function into a weak form, use the Galerkin method to represent the trial function with basis functions, substitute the expression of the trial function into the weak form, represent the unknown function in the cell grid as a linear combination of basis functions and substitute it into the weak form, merge the coefficients of the unknown function, and obtain the grid matrix expression and the known vector expression. The component determination module is used to select Gaussian integration points, determine the values ​​of each term in the grid matrix expression and the known vector expression at the selected Gaussian integration points, obtain the weights corresponding to the selected Gaussian integration points according to the Gaussian quadrature rule, and multiply the selected Gaussian integration points and the corresponding weights and sum them to obtain the values ​​of each component in the grid matrix and the known vector. The solution module is used to obtain the global matrix of the cell network based on the grid matrix determined by all components and the known vectors determined by the components, confirm the form of the boundary conditions, integrate the boundary conditions into the global matrix, and use an iterative method to solve the matrix equation obtained after integration to obtain a numerical solution. The iteration termination judgment module is used to obtain the analytical solution corresponding to the partial differential equation, calculate the mean square error based on the numerical solution and the analytical solution, and determine whether the mean square error meets the preset value. If so, the final numerical solution is output, which is the electromagnetic data of the computational domain of the electromagnetic field to be solved; the electromagnetic data includes electric potential, transmission coefficient and reflection coefficient. If not, reduce the mesh size, use the reduced mesh size as the finite element mesh size, and return to the mesh construction module to execute the step "Construct the finite element network of the electromagnetic field computation domain to be solved based on the finite element mesh size and the number of nodes in each element mesh", or increase the order of the basis functions and return to the first expression determination module to execute the step "Determine the basis function expression of each element mesh".

8. An electronic device, comprising a memory and a processor, wherein the memory stores a computer program, and the processor runs the computer program to cause the electronic device to perform the one-dimensional electromagnetic calculation method based on ultra-high-order finite element technology as described in any one of claims 1 to 6.

Citation Information

Patent Citations

  • A three-dimensional hybrid time-domain discontinuous Galerkin numerical method for time-domain electromagnetism

    CN109190169A

  • Super-surface electromagnetic simulation technology based on spectral element method and generalized slice transition conditions

    CN112613177A