Generalized Finite Difference Method for Solving Waveguide Eigenvalue Problems
Hui Xu and Yang Bao
1Department of Electronic and Optics Engineering, Nanjing University of Posts and Telecommunications, Nanjing 210000, China
1090760655@qq.com
2State Key Laboratory of Millimeter Waves, Southeast University, Nanjing 210096, China
brianbao@njupt.edu.cn
Submitted On: October 24, 2021; Accepted On: April 4, 2022
The generalized finite difference method (GFDM) is a meshless method that has become popular in recent years. The basic theory underlying GFDM is to expand the point cluster function value at the center node by Taylor’s formula and then obtain the best linear combinations of these function values to represent the derivative at the central node by the least square fitting technique. Subsequently, the minimized weighted error between the approximated value and the accurate value is obtained. This paper establishes the general steps for solving waveguide eigenvalue problems with GFDM. Excellent performance is shown by comparing the proposed method and other common solutions. The robustness of the proposed method is verified by calculating the cutoff wavenumbers of typical waveguides and the eccentric circular waveguide in different modes.
Keywords: Cutoff wavenumber, generalized finite difference method, meshless method, waveguide eigenvalue problem.
The waveguide eigenvalue problem can be described as the electromagnetic wave propagation problem in closed or open structures under different boundary shapes and conditions. For regular-shaped waveguides, analytical expressions can be obtained by the variable separation method, and the cutoff wavelength of the main mode of the ridge waveguide can be obtained by the transverse resonance method [1]. However, most waveguides with complex cross-sectional geometries must be solved numerically. The finite difference method (FDM) is one of the common methods to solve waveguide problems. Thereby, the basic idea is to approximate the derivative of the target node with the difference quotient of function values. The compact two-dimensional (2D) frequency-domain finite difference method (FDFD) is derived from Maxwell’s curl equations and uses compact 2D Yee cells to mesh the waveguide cross section [2]. This method only involves four transverse field components, which can greatly reduce the CPU time compared to the 3D finite-difference time-domain method (FDTD) [3]. The finite element method (FEM) transforms the eigen-problem into an equivalent variational equation, constructs the divisional basis functions on the grid elements of the waveguide cross section, and uses the Ritz method or Galerkin method to construct the algebraic finite element equation [4]. When dealing with complex structures or discontinuous boundaries, these grid-based methods suffer from the problem of complex meshing and low accuracy. The radial basis function (RBF) interpolation method is a meshless method, and its main idea is to use basis functions to approximate the function to be sought over the entire simulation domain [5]. By requiring that the approximate value and actual value are strictly equal, a matrix equation with weight coefficients as variables is constructed, and the derivative at the center node is transformed into a linear combination of the function values of the surrounding nodes. Recently, RBF and the variational principle have been combined to analyze the propagation characteristics of inhomogeneous waveguides, which further expands the application of this method [6]. Although meshless methods have been successfully applied to many scientific and engineering fields, their employment in the field of computational electromagnetics is still relatively slow [7].
The generalized finite difference method (GFDM) is a relatively new domain-style meshless method that uses the weighted sum of surrounding function values to represent the derivative at center node. Benito gave the basic concepts of the GFDM, including node distribution, local approximation, and the construction of point clusters [8–10]. The influence of factors such as the size of the point cluster, the shape of the point cluster, and the selection of the weight function on the accuracy of the GFDM is also analyzed [11]. Kamyabi proposed an improved version of the GFDM, which makes it no longer dependent on the least square method and can handle the Neumann boundary conditions in a sophisticated way [12]. At present, the GFDM has been effectively applied in many fields. For example, Li and Fan applied this method to solve the shallow water wave equation [13], Gu solved the inverse heat source problem [14], and Zhang analyzed the sloshing phenomenon [15]. In the field of electromagnetism, Chen verified the effectiveness of the GFDM in calculating static electromagnetic field problems and analyzing 3D transient electromagnetic problems [16]. The results show that the GFDM is more accurate and faster than the FEM.
In our previous work [17], GFDM was effectively used to analyze the propagation characteristics of the waveguide. However, when solving the TE mode problem, it relied on the second set of node distribution schemes, that is, an additional layer of discrete points needs to be arranged outside the boundary. In this paper, the general steps to solve eigenvalue problem of waveguides are given based on the meshless features of GFDM, and the calculation result of an eccentric circular waveguide is added. This paper also proposes a new version of GFDM, which can directly use Neumann boundary conditions for the calculation of derivatives. The improved GFDM compares the Taylor expansion of adjacent nodes with the expression of the governing equation to construct the matrix equation. Consequently, the solution process is more convenient and faster than the traditional GFDM. In addition, we compare the GFDM against other common methods to demonstrate the unique merits of this method in solving the waveguideproblem.
Without loss of generality, consider solving the second-order partial differential equation
(1) |
In order to obtain the generalized finite difference equivalence of eqn (2.1), the computational node of the function is arranged inside and on the boundary of the simulation domain. The distribution of the discrete nodes may or may not be uniform.
The GFDM puts forward the concept of point clusters, which amounts to finding nearest adjacent nodes around the center node according to the shortest distance criterion. The set of nodes including the center node is referred to as the point cluster of (as shown in Figure 1) and its shape is determined by the distribution of adjacent nodes. Assume that and represent the function values at the center node and adjacent nodes, respectively. In order to establish the relationship between the differential at and its point cluster, is expanded at by Taylor’s series expansion formula and truncated at the second derivate,
(2) |
where and , respectively, represent the vertical and horizontal distances between and .
Figure 1: Schematic diagram of GFDM. Irrespectively of the position of the central node, being an interior or a boundary node, 12 suitably- chosen adjacent nodes constitute a point cluster.
The error between the expanded and actual values, the residual function, can be expressed as
(3) |
where is the error weighting function. The expression of weighting function is not unique, but they all have a common feature, that is, the closer they are to center node, the greater the weight given, and the greater the contribution to the final calculation result. In this paper, the expression of is defined as
(4) |
where represents the distance from to , and is the maximum value among all . The coefficient in adds up to 0, which changes the function range from 0 to 1. In addition, the function is monotonically decreasing and has a pole when equals 0 or 1, which makes the function smooth. This construction also implies that decreases rapidly when increases, which explicitly gives the weight distribution of each point in the cluster.
For brevity, define
(5) |
(6) |
(7) |
Then the residual function in eqn (2.1) can be expressed in the form of the matrix as
(8) |
where and = are the vectors of function values sampled at and , respectively. Furthermore, is a diagonal matrix.
The residual function can be regarded as a cost function in an optimization algorithm with the elements in as independent variables. The optimal solution is obtained by minimizing the norm
(9) |
resulting in the linear equation
(10) |
with and . The matrix is symmetric, and, thus, the Cholesky decomposition method can be used to solve eqn (10). The expression of indicates that at least five adjacent nodes should be found to construct the difference scheme; otherwise, the matrix is not invertible because its rank must satisfy the condition: .
By solving eqn (10), can be expressed as
(11) |
Eqn (11) shows that all second-order derivatives at center node can be represented by a linear combination of function values at the nodes in point cluster. Each row element of the coefficient matrix in front of the vector corresponds to the difference result of each element in .
From the above difference scheme, it can be seen that at least five adjacent nodes need to be found to represent the derivative at center node, which provides an idea for the improved version of GFDM. The second derivative of with respect to each variable of and at the node is approximated as linear combinations of the neighbor nodes
(12) |
Figure 2: Schematic diagram of improved version of GFDM. Only five adjacent nodes around the central node need to be found to construct a point cluster.
where represents the derivative operator of the governing equation that satisfies, and are weight coefficients to be determined. First, expand these five nodes according to eqn (2.1) and then group similar terms. According to the coefficient in front of the similar term and the corresponding coefficient in are strictly equal, the following matrix equation can beobtained:
(13) |
where is the coefficient in front of , are the coefficients in front of each element in . The value of is determined by the governing equation. For example, when solving eqn (2.1), is the corresponding value in the set . The weight coefficient can be obtained by solving the matrix equation given by eqn (13).
When constructing a cluster of nodes around the boundary, several nodes on the boundary are also included. Assume that is the boundary node and satisfies the Neumann boundary condition. Express the derivative at as
(14) |
Here, is the average distance between adjacent nodes and the center nodes. The purpose of adding this item is to ensure that all coefficients are in the same order of magnitude. Expand the last term in eqn (14) according to Taylor’s series formula
(15) |
where and correspond to the axial component of the unit normal vector at node , respectively.
For each adjacent node, if it is located on the boundary, expand according to eqn (2.2); otherwise, it is expanded by eqn (2.1). Grouping terms of similar kind, the following matrix equation can be obtained:
(16) |
The matrix
When electromagnetic waves propagate in a uniform metal waveguide with the axis along the z-direction, the governing equations and boundary conditions that the electromagnetic field satisfies are
(17) |
(18) |
where is the electromagnetic field component, is the cutoff wavenumber, is the transverse Laplacian operator, and is the boundary operator. When propagating TM wave, , refers to the Dirichlet boundary . When propagating TE wave, , refers to the Neumann boundary .
As the generalized finite difference scheme given by eqn (11), GFDM simultaneously gives the numerical discrete results of all derivatives of at a certain node; so the coefficient matrix obtained by GFDM should be combined according to the governing equation. The difference result of the internal node is multiplied by the vector because it satisfies the Laplace equation. For nodes on the boundary, when solving the TM wave problem, the differential processing is not required because the boundary value is known, and when solving the TE wave problem, the result should be multiplied by the vector because the Neumann boundary condition is satisfied.
First, we arrange discrete points inside the cross section and discrete points on the boundary, with . According to the difference scheme for solving the waveguide problem given above, the internal node repeats this process times to obtain the matrix , and eqn (17) can be written as
(19) |
where . For nodes on the boundary, when Neumann BCs have to be satisfied, matrix B can be obtained similarly
(20) |
Combining eqn (19) and (20), the eigenvalue equation describing the waveguide problem can be discretized and written in the matrix form
(21) |
The Dirichlet boundary condition can be directly substituted into the matrix because means that the weight coefficients of the boundary nodes in the generalized finite difference schema can be ignored, that is, the matrix can be omitted.
When using the improved version of GFDM to solve the waveguide problem, the value of vector is . Compared with traditional GFDM, the coefficient matrix can be constructed more conveniently by eqn (13) and (16). Especially when solving the TE wave problem, the boundary node avoids additional differencing because the Neumann boundary can be directly used as shown in eqn (14).
Figure 3: Error comparison of GFDM solution, FDM solution, and improved GFDM solution for cutoff wavenumbers of the TM wave and TE wave in the rectangular waveguide. The “improved GFDM (TM)” line and the “FDM (TM)” line coincide.
To validate the GFDM in analyzing the waveguide eigenvalue problems, we analyzed the dispersion characteristics of TE modes and TM modes in different waveguides. The size of the point cluster in GFDM is set to be 10. The GFDM solution is compared with the FDM, FDFD, and RBF solutions, and the reasons for the differences in the result are also given.
First, we consider a rectangular waveguide with a size of and divide the calculation domain uniformly at intervals of . Figure 3 shows the error comparison of GFDM solution, FDM solution, and improved GFDM solution for cutoff wavenumbers of the TM wave and TE wave in the rectangular waveguide. When solving TM wave problems, the improved GFDM solution is equal to the FDM solution because the equally spaced and uniform distribution of the sampling points leads to the same weight coefficient obtained by eqn (13) as the FDM. When solving TE wave problems, the improved GFDM and GFDM have obvious advantages over FDM by virtue of the handing of Neumann boundary conditions. This is because FDM needs an extra layer of grid outside the boundary in order to deal with the Neumann BCs, and the value of these grids is equal to the function value of the nodes symmetrical to it in the boundary. This means that the nodes on the boundary must also be differentiated according to the governing equation, and this process produces additional errors. In addition, FDM needs to modify the difference formula to satisfy the boundary conditions, while the solution process of GFDM is more versatile.
Figure 4: Dispersion characteristics of , , and modes in rectangular waveguide. Results are calculated using GFDM and FDFD.
Figure 4 shows the dispersion characteristics of , and modes in rectangular waveguide by using GFDM and FDFD, respectively. The improved GFDM is not included in Figure 4 because it is almost equal to the GFDM solution, which can be seen from Figure 1. The eigenvalue equation of FDFD is derived from Maxwell’s curl equations, where the eigenvalue and eigenvector expressions are and , respectively. This method cannot directly yield for each mode, nor can it determine the wave transmission mode; so the results are given as scatter points. Since the eigenvector involves four field components, the correction of the FDFD difference formula at the boundary is more complicated than that of FDM, and it is necessary to consider both the Dirichlet BCs and the Neumann BCs. In addition, each discrete point of FDFD will produce two variables. Consequently, the size of the coefficient matrix obtained by FDFD is about , and the size of GFDM is about . This means that using the same subdivision, GFDM saves memory space when compared against FDFD.
RBF is similar to GFDM, and both express the derivative at the center node by the weighted sum of the function values of each node in the point cluster. The size of the point cluster in RBF needs to satisfy , where is the number of polynomials included in the interpolation function, and the value of is related to the highest degree of the polynomial. For example, when = 2, all polynomials are , the number of polynomials is , and RBF requires that the cluster size must satisfy .
Take a circular waveguide with a radius of as an example to compare the stability and accuracy of GFDM and RBF. The numbers of computational points inside the cross section and on the boundary are , and the cluster size is set to be 12. Figure 5 shows the relative error of the GFDM solution and RBF solution of the TE main mode and TM main mode in circular waveguide at different cluster sizes. If the relative error in the figure is on the dotted line, it means that the result is wrong. The improved GFDM result was not used for comparison because its cluster size was fixed to be 6. As the point cluster size changes, GFDM is significantly more stable and accurate than RBF. It is worth mentioning that although increasing the number of polynomials in RBF is beneficial to improving the performance of the method, it means that more adjacent nodes need to be found to represent the derivative, which will lead to a sharp increase in the amount of calculation. Table 1 gives the comparison of computer execution time between GFDM and RBF under the same sampling point and cluster size. As the number of adjacent points increases, that is, the size of the point cluster increases, the advantages of GFDM are more obvious. The main reason is that RBF needs to calculate the distance between each node in the point cluster and all remaining nodes, when calculating the weight coefficient, while GFDM only requires the distance between the central node and the adjacent nodes.
Figure 5: Error comparison between the GFDM solution and the RBF solution of the cutoff wavenumbers of the TE main mode and TM main mode in the circular waveguide.
Table 1: Comparison of computer execution time in GFDM and RBF
12 | 0.3886 s | 0.7555 s |
---|---|---|
20 | 0.4080 s | 1.5053 s |
30 | 0.4333 s | 2.8191 s |
Figure 6: The distribution of computational nodes on the cross-section of the eccentric circular waveguide when solving even TM modes. The outer and inner radii of the waveguide are a and 0.5a, respectively. The distance between the two circle centers is 0.2a.
Table 2: Normalized cutoff wavenumber for the first six even TM modes
4.8001 | 4.8016 | 4.8106 |
6.1505 | 6.1530 | 6.1724 |
7.3591 | 7.3646 | 7.3945 |
8.4473 | 8.4591 | 8.4974 |
9.2701 | 9.2776 | 9.3409 |
9.4048 | 9.4198 | 9.4739 |
Finally, GFDM and an improved version of GFDM are used to solve the cutoff wavenumbers of an eccentric circular waveguide. Since the cross section of the waveguide is symmetrical about the x-axis, the odd and even modes can be solved separately. Figure 6 shows the distribution of computational nodes on the cross section of the eccentric circular waveguide when solving even TM modes. As shown in Table 2, the results of traditional GFDM and improved GFDM agree with the results given in [5].
In this paper, the effectiveness of GFDM to solve the eigenvalue problem for the waveguide is verified. Compared with FDM and FDFD, GFDM avoids the complicated meshing process, and the difference formula is more versatile. What is more, GFDM owns the meshless feature to better handle Neumann boundary conditions. Compared with RBF, which is one of the meshless methods, GFDM has higher efficiency and better stability. GFDM provides a new idea and contributes significantly to solving the eigenvalue problems associated with waveguides.
This work was supported in part by the NUPTSF under Grant NY220074, by the National Nature Science Foundation of China for Youth under Grant 62001245, by the Natural Science Foundation of Jiangsu Province for Youth under Grant BK20200757, and by the State Key Laboratory of Millimeter Waves under Grant K202108. The authors are grateful to Prof. Ming Zhang for the useful discussions.
[1] J. R. Pyle, “The cutoff wavelength of the mode in ridged rectangular waveguide of any aspect ratio,” IEEE Trans. Microw. Theory and Techn., vol. 14, no. 4, pp. 175-183, Apr. 1966.
[2] Y. J. Zhao, K. L. Wu, and K. Cheng, “A compact 2-D full-wave finite-difference frequency-domain method for general guided wave structures,” IEEE Trans. Microw. Theory and Techn., vol. 50, no. 7, pp. 1844-1848, Jul. 2002.
[3] D. H. Chai, Harrington, and W. Hoefer, “The Finite-Difference-Time-Domain method and its application to eigenvalue problems,” IEEE Trans. Microw. Theory and Techn., vo. 34, no. 12, pp. 1464-1470, Dec. 1986.
[4] J. Svedin, “Propagation analysis of chirowaveguides using the finite-element method,” IEEE Trans. Microw. Theory and Techn., vol. 38, no. 10, pp. 1488-1496, Oct. 1990.
[5] J. A. Pereda and A. Grande, “Analysis of homogeneous waveguides via the meshless radial basis Function-Generated-Finite-Difference method,” IEEE Micro. and Wirel. Compon. Lett., vol. 30, no. 3, pp. 229-232, Mar. 2020.
[6] V. Lombardi, M. Bozzi, and L. Perregrini, “Evaluation of the dispersion diagram of inhomogeneous waveguides by the variational meshless method,” IEEE Trans. Microw. Theory and Techn., vol. 67, no. 6, pp. 2105-2113, Jun. 2019.
[7] S. Yang, Z. Chen, and Y. Yu, “A Divergence-Free meshless method based on the vector basis function for transient electromagnetic analysis,” IEEE Trans. Microw. Theory and Techn., vol. 62, no. 7, pp. 1409-1416, Jul. 2014.
[8] L. Gavete, M. L. Gavete, and J. J. Benito, “Improvements of generalized finite difference method and comparison with other meshless method,” Appl. Math. Model., vol. 27, no. 10, pp. 831-847, Oct. 2003.
[9] L. Gavete, F. Urena, and J. J. Benito, “Solving second order non-linear elliptic partial differential equations using generalized finite difference method,” J. Comput. Appl. Math., vol. 318,pp. 378-387, Jul. 2017.
[10] J. J. Benito, and F. Urea, “An h-adaptive method in the generalized finite differences,” Comput. Meth. Appl. Mech. Eng., vol. 192, no. 5-6, pp. 735-759, Jan. 2003.
[11] J. J. Benito, F. Urena, and L. Gavete, “Influence of several factors in the generalized finite difference method,” Appl. Math. Model., vol. 25, no. 12, pp. 1039-1053, Dec. 2001.
[12] A. Kamyabi, V. Kermani, and M. Kamyabi, “Improvements to the meshless generalized finite difference method,” Eng. Anal. Bound. Elem., vol. 99, pp. 233-243, Feb. 2019.
[13] P. W. Li and C. M. Fan, “Generalized finite difference method for two-dimensional shallow water equations,” Eng. Anal. Bound. Elem., vol. 80, pp. 58-71, Jul. 2017.
[14] Y. Gu and L. Wang, “Application of the meshless generalized finite difference method to inverse heat source problems,” Int. J. Heat Mass Transf., vol. 108, pp. 721-729, May 2017.
[15] T. Zhang, Y. F. Ren, C. M. Fan, and P. W. Li, “Simulation of two-dimensional sloshing phenomenon by generalized finite difference method,” Eng. Anal. Bound. Elem., vol. 63, pp. 82-91,Feb. 2016.
[16] C. Jian, G. Yan, and M. Wang, “Application of the generalized finite difference method to three-dimensional transient electromagnetic problems,” Eng. Anal. Bound. Elem., vol. 92, pp. 257-266, Jul. 2017.
[17] H. Xu, Y. C. Mei, and Y. Bao, “Application of generalized finite difference method in analysis of transmission characteristics of waveguide,” 2020 APMC., Hong Kong., China, pp. 785-787, 2020.
Hui Xu was born in Wuxi, Jiangsu, China. He received the B.Eng. degree from the Nanjing University of Posts and Telecommunications, Nanjing, China. He is currently working toward the M.S. degree with the School of Electronic and Optical Engineering, Nanjing University of Posts and Telecommunications.
His research interests include the electromagnetic field theory, electromagnetic engineering, and computer aided analysis and design.
Yang Bao was born in Nanjing, Jiangsu, China. He received the B.Eng. and M.S. degrees from the Nanjing University of Posts and Telecommunications, Nanjing, China, in 2011 and 2014, respectively, and the Ph.D. degree in electrical engineering from Iowa State University, Ames, IA, USA, in 2019.
In December 2019, he joined the Nanjing University of Posts and Telecommunications as an Assistant Professor with the School of Electronic and Optical Engineering. His research interests focus on modeling and simulations of composite material, electromagnetic wave scattering using fast algorithms, and eddy current nondestructive evaluation.
ACES JOURNAL, Vol. 37, No. 3, 266–272.
doi: 10.13052/2022.ACES.J.370302
© 2021 River Publishers