Next Article in Journal
A Review of Relay Assignment Problem in the Cooperative Wireless Sensor Networks
Previous Article in Journal
An Autonomous Path Controller in a System on Chip for Shrimp Robot
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

On the Kelvin Transformation in Finite Difference Implementations

Institute of Microwaves and Photonics, Friedrich-Alexander University Erlangen-Nuremberg (FAU), 91054 Erlangen, Germany
Current address: Cauerstr. 9, 91058 Erlangen, Germany.
Electronics 2020, 9(3), 442; https://doi.org/10.3390/electronics9030442
Submission received: 5 February 2020 / Revised: 28 February 2020 / Accepted: 1 March 2020 / Published: 6 March 2020
(This article belongs to the Section Microwave and Wireless Communications)

Abstract

:
Finite difference operators were applied on a Delaunay mesh. This way it is possible to discretize a radial boundary that is used to perform a Kelvin mapping of an additional outer domain to virtually extend the computation domain to infinity. With an example two-wire problem, the performance of this approach is shown in comparison with a conventional calculation domain and with the analytical solution, respectively. The presented implementation delivers a more precise approximation to the real values and at the same time requires a smaller system of equations—i.e., allows for faster computations.

1. Introduction

During the design of microwave and millimeter-wave components, two and three dimensional electromagnetic (EM) simulations are an essential tool for predicting the electrical behaviors of passive structures with complex geometries. 2D solvers are not only interesting for transmission lines, which are defined by their cross sections, but also for planar port solutions, which are used as stimuli for 3D problems. In both applications, the solution, i.e., EM-fields or potentials, can be disturbed by necessary boundary conditions. Additionally, a frequency dependent maximum size of the port often is mandatory to prevent excitation of unwanted higher order modes. However, the boundary cannot be placed arbitrarily far away from the region of interest, since then the resulting system of equations inexorably increases.
A Kelvin mapping of the outer domain, i.e., the space beyond a certain boundary contour, can overcome this limitations. The Kelvin transformation requires a spherical or circular calculation domain. Finite difference implementations, however, usually employ a rectangular grid, such that the representation of those curved contours is awkward.
Therefore, in this paper, the implementation of finite difference operators for a 2D Delaunay mesh is presented in Section 2, which is the key to implementing a Kelvin mapping of an additional outer domain. The novelty originates from the combination of a radial transformation in a finite difference implementation. The advantages of this approach are demonstrated with an exemplary potential problem of a two-wire transmission line (Section 3) and evaluated, i.e., compared to the analytical solution, in Section 4.
The presented method differs from other approaches with Kelvin mapping, e.g., finite elements [1,2,3,4] or radial coordinates [5], by its simplicity and therefore straightforward implementation. Furthermore, it does not presuppose wave propagation like perfectly matched layer (PML) approaches; e.g., [6].

2. Finite Differences on a Unstructured, Triangular Mesh

The Taylor series that relates a function value f i ( r ̲ ) with position vector r ̲ with another f j ( r ̲ + Δ r ̲ ) at a position that is Δ r ̲ away, writes in the two dimensional case, i.e., r ̲ = x y and Δ r ̲ = Δ x Δ y , as follows:
f j = f i + Δ x j f i x + Δ y j f i y + Δ x j Δ y j 2 f i x y + 1 2 Δ x j 2 2 f i x 2 + 1 2 Δ y j 2 2 f i y 2 +
The well known that difference quotients for rectangular meshes can be found by truncation to the first derivatives. For example / x ( f j f i ) / h for mesh points j and i with a distance along the x-axis of h in between. The implementation of the finite difference operator matrix for all mesh points breaks down to writing the coefficients 1 / h and 1 / h into the correct position referring to mesh points j and i, respectively. In the next two sections, the calculation of those coefficients for a Delaunay mesh is presented.

2.1. Delaunay Mesh

In Figure 1, a node i with its neighbors 1–6 is shown. This typical Delaunay "fan" in the two dimensional case consists of triangles connecting neighboring mesh points.
There are two main advantages of this kind of meshing the calculation domain. First, a curved contour can be discretized very accurately compared to rectangular meshes. Second, we can rely on existing, very efficient implementations of those algorithms, such as the user friendly GMSH [7]. The output file contains lines with numbered mesh points and their coordinates, and lines with mesh point numbers and the connected triangles, which can be further processed to obtain the finite difference operators.

2.2. Finite Difference Operators for a Delaunay Mesh

A mesh-free finite-difference scheme is described in [8], in which a weighted least-square approximation procedure for unstructured mesh points is proposed. Since we utilize a Delaunay mesh, the least-square approximation can be adopted, but the weighting is not essential in this case.
For each point in the mesh, the following steps have to be taken to find the finite difference operators. The Taylor series up to the second derivatives of Equation (1) is rearranged in the following way:
d f = f j f i = Δ x j Δ y j Δ x j Δ y j 1 2 Δ x j 2 1 2 Δ y j 2 S · x y 2 x y 2 x 2 2 y 2 T D f
The difference of a function value f j at a neighbor point j to the value f i at point i is d f . All spatial information from the mesh is contained in S and all the derivatives appear in D f :
d f = S · D f
The optimal derivative approximation by least-square means is
D f = S T S 1 S T C d f .
Note, that there is one line per neighboring point in the system of equations:
x y 2 x y 2 x 2 2 y 2 = c 11 c 12 c 13 c 14 c 15 c 51 c 52 c 53 c 54 c 55 · f 1 f i f 2 f i f 3 f i f 4 f i f 5 f i
For practical implementation, the Moore-Penrose inverse can be used, which additionally ensures a solution in both an overdetermined situation ( j > 5 ) and the case of too few neighbor points ( j < 5 ); for example, at a boundary. In any case, the matrix C contains nothing but coefficients which can be filled into the operator matrix for every mesh point, in the same manner as above with 1 / h and 1 / h .

3. Kelvin Transformation

The Kelvin transformation is a non-linear transformation that maps infinity to zero [9]. Since it is a radial transformation, i.e., the boundary of the calculation domain is a sphere for R 3 or a circle for R 2 , for a boundary circle with R > 0 , the mapping of a position vector r ̲ to r ̲ * is:
r ̲ * = R 2 r 2 r ̲
This means the infinite space outside the circle can be mapped to the finite space into the circle. The mesh for the two dimensional example geometry described in the next section is shown in Figure 2, in which the structure of interest lies in the inner domain shown on the left side. It is limited by a circular boundary with radius r. Note that this is not a limitation in general, because the structure of interest can have a geometry that is not necessarily circular and can also be of an irregular shape.
From the coordinates of the mesh points lying on the boundary, a second circular mesh is created to which the outer domain is mapped by the Kelvin transformation. This second mesh is shown in Figure 2 on the right side.
As the center point of this second mesh corresponds to infinity, a Dirichlet boundary condition can be utilized to force potentials or fields to vanish in infinity. In the system matrix, the finite difference operators can be arranged corresponding to the differential equation that should be solved.
The complete system matrix does not only contain one line for every point in the inner region, but also lines for the points of the outer region in Figure 2. The spatial coordinates of the points at the boundaries, i.e., the two circles, are exactly the same. As a consequence, they only correspond to the mesh points 3 , i , 6 as depicted in Figure 3. This is achieved by a Dirichlet boundary condition to link the equations in the matrix respectively.
Additionally, the operators in the inner region are expanded to reach across the boundary, which is done by adding the points 4 and 5 to the neighbor points of i and recalculate the coefficients with Equations (4) and (5). Now a “transparent” boundary for the inner domain is established at the cost of increasing the system of equations by the number of points of the outer domain.

4. Exemplary Potential Problem

To test the finite difference and Kelvin mapping implementation, an arrangement was chosen, for which an analytical solution exists: the transverse-electromagnetic (TEM) field mode of a two-wire transmission line. For TEM modes the fields are identical with the static case. Thus, it reduces to the problem of calculating the scalar potential Φ .
In transmission line context, utilizing the characteristic impedance Z as a command variable is an obvious choice. Thus, in the next two sections deal with finding Z from both analytical and numerical solutions.

4.1. Analytical Solution

As an example geometry, a transmission line consisting of two parallel wires with circular cross sections (Figure 4) is suitable, as their scalar potential extends to infinity. For the sake of simplicity, a homogenous medium (vacuum) around the wires is assumed. Their axes lie in the y z -plane and intersect the x-axes at R and R. The radius of the wires is r 0 .
Assuming a potential difference U between the wires, the scalar potential Φ ( r ̲ ) of this arrangement can be found from the superposition of the scalar potentials of the individual wires [10]:
Φ ( r ̲ ) = U 4 arcosh R r 0 ln ( x + R * ) 2 + y 2 ( x R * ) 2 + y 2 ,
whereby R * = R 2 r 0 2 . The characteristic impedance Z turns out to be:
Z = μ 0 c π arcosh R r 0 .
Setting 2 R = 3.088 mm and r 0 = 1 mm results in Z to yield about 120 Ω .

4.2. Numerical Solution

For the static problem described above, a Laplace Equation (9) on the grid already shown in Figure 2 has to be solved.
̲ 2 Φ = 0
The cross section two-wire arrangement consists of circles only, so that the occurring radii are all divided by the same integer factor n c to determine the characteristic length of mesh triangles around the corresponding circle. Setting the boundary radius r = 4 mm and n c = 8 results, for the given geometry, in 1194 and 337 mesh points for the inner and outer calculation domains.
With the discrete second derivatives for all n mesh points D x x and D y y from Equation (5), the discrete 2D Laplacian L ̲ ̲ can be built according to Equation (9): L ̲ ̲ = D x x + D y y . The related system of equation becomes:
L ̲ ̲ x ̲ = b ̲
This can be solved for the vector x ̲ = ( Φ 1 , Φ 2 , , Φ n ) T , containing the figures for the scalar potential on the grid after applying a Dirichlet boundary condition at the mesh points of the left and right wires. These have to be set to the potentials Φ l and Φ r with U = Φ l Φ r in the vector b ̲ by inserting a one at the main diagonal of L ̲ ̲ and zero elsewhere in the related lines. The calculated values for Φ on the grid are shown as contour plots in Figure 5.
With E ̲ = ̲ Φ , the transverse electrical field components E x and E y are given by
E x = Φ x E y = Φ y .
By eyeballing Farady’s law ̲ × E ̲ = t B ̲ and Ampère’s law in vacuum ̲ × B ̲ = 1 c 2 t E ̲ , one can see that for TEM waves in homogenous media, the magnetic field components B x and B y are related to the electrical field and the speed of light c as
B x = E y c B y = E x c .
The EM-fields calculated from Φ using Equations (11) and (12) are shown in Figure 6. This field plot is only for illustration and the sake of completeness. The grayscale of the arrows represents the log-converted local field strength.
As expected, the electrical field is perpendicular to the conductors, whereas the magnetic field is parallel.
The electromagnetic power flow P from a field point of view corresponds to the absolute value of the Poynting vector S ̲ integrated over the calculation domain A using oriented area elements d a ̲ :
P = A S ̲ · d a ̲ = 1 μ 0 A E ̲ × B ̲ · d a ̲ = 1 μ 0 c A E 2 d a
which is identical to the transported power P = U I from a circuitry point of view. From that, the characteristic impedance Z of the transmission line can be calculated for a given potential difference U:
Z = U 2 P
Note that the denominator in Equation (13) is just the field impedance Z 0 = μ 0 c in vacuum. In a similar way, transmission line parameters like the per unit length parameters can be found.

5. Evaluation

The combination of a non-rectangular grid with a radial transformation technique allows one to solve differential equations; e.g., potential problems or waveguide eigenmodes with a transparent boundary—i.e., with no distortion from a near artificial boundary condition. In two dimensions, the Kelvin transformation requires a circle as the boundary surrounding the structure of interest. In Figure 7 the potential calculated numerically with this transformation (left) is illustrated in contrast to the potential distorted from a radial (center) and a rectangular boundary (right) with a Dirichlet condition Φ = 0 .
The rectangular boundary has an edge length of 4.0 mm, corresponding to the boundary radius of r = 4.0 mm. The characteristic length of the two meshes is n c = 8 . In the following, the radial boundary is preferred, because the calculations are then performed on exactly the same (inner) mesh with and without Kelvin transformation.
The relative error of Φ with respect to the analytical solution is shown in Figure 8. It is calculated as follows:
rel . error = | Φ numerical Φ analytical | Φ analytical
On the left, again a Dirichlet condition Φ = 0 on the boundary circle is employed.
The error is maximal on the artificial boundary, whereas the Kelvin mapping approach produces only a very small error, as shown on the right of Figure 8. Only points where the figures of Φ are significant, i.e., | Φ | > U / 50 , were taken into account in the diagrams. Nevertheless, the maximal error is located near the symmetry axes, where the values of Φ are very close to zero. This asymmetry is due to numerical uncertainties only, so that the remaining error can be completely attributed to the discretization error. Consequently, the proposed method does not suffer from the impact of artificial boundaries of the computation domain.
For further investigations, the actual target value, i.e., the characteristic impedance Z, is used. Since the characteristic length in the mesh is determined by n c only, it is used as the parameter for the examination of convergence instead of a more complicated mesh refinement scheme. For a parameter sweep of n c = 2 10 the relative error of Z is plotted against the resulting number of mesh points 397 2708 in Figure 9.
From about 500 mesh points on, the approximated value for the characteristic impedance is very close to the analytic one. At 1000 mesh points the relative error drops below 0.25%. For n c = 8 , i.e., 1531 mesh points, it is even less, so that this configuration was chosen.
The numerical solution with Dirichlet or Neumann boundary conditions approaches the solution of the unbounded calculation domain with increasing distance of the boundary to the region of interest in the mesh. This is depicted in Figure 10 for boundary radii of 4 mm and 10 mm.
It clearly shows that the lines of equal potential are deformed in the case of too tight a boundary, and get closer to the analytical solution for a more remote boundary. This dependence on the boundary radius is also shown in Figure 11.
The characteristic impedance approaches the true value for increasing boundary radius. It can be seen that for a relative error below 1 % the radius must be larger than 20 mm resulting in a mesh size of more than 2000 points. Since the approach presented here delivers the same value for any distance to the boundary apart from some discretization error, it outperforms the conventional solution. For example, a radius of 4 mm can be used which results in about 1500 mesh points including the additional outer mesh points.

6. Conclusions

The presented approach is based on a finite difference implementation using a 2D Delaunay mesh. This allows for adequate discretization of a circular boundary. The circular boundary is not a limitation compared to the usually employed rectangular boundaries. To make this circular boundary transparent, an additional outer mesh is added. On this, a Kelvin mapping of the coordinates is performed, which results in an outer region being mapped to the inner of a circle, wherein infinity becomes the center point.
Using finite differences leads to a straightforward implementation of many differential equations. In this case, the calculation of an electrical scalar potential was used as an example. The numerical solution of a two-wire arrangement was compared to its analytical solution to demonstrate the performance of the presented approach. Moreover, it was shown that despite of the additional outer mesh, in total a smaller equation system is sufficient to achieve comparable results.
In future developments, e.g., a boundary element method or a Greens function approach for an outer homogenous region could be used to reduce the number of equations even more. The field of application for the presented transparent boundary could be a 2D solver for transmission lines and waveguides, a waveguide port for a 3D field solver, or a full 3D solver with a spherical mesh boundary for unbounded EM problems.

Funding

This research received no external funding.

Acknowledgments

The author is grateful to Prof. Helmreich for his support and encouragement.

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. Nagel, T.; Görke, U.J.; Moerman, K.M.; Kolditz, O. On advantages of the Kelvin mapping in finite element implementations of deformation processes. Environ. Earth Sci. 2016, 75, 937. [Google Scholar] [CrossRef] [Green Version]
  2. Lowther, D.A.; Freeman, E.M.; Forghani, B. A sparse matrix open boundary method for finite element analysis. IEEE Trans. Magn. 1989, 25, 2810–2812. [Google Scholar] [CrossRef]
  3. Farah, A.A.M.; Afonso, M.M.; Vasconcelos, J.A.; Schroeder, M.A.O. A Finite-Element Approach for Electric Field Computation at the Surface of Overhead Transmission Line Conductors. IEEE Trans. Magn. 2018, 54, 1–4. [Google Scholar] [CrossRef]
  4. Sugahara, K.; Kameari, A.; Ebrahimi, H.; Shindo, Y.; Matsuo, T. Finite-Element Analysis of Unbounded Eddy-Current Problems Using Cauer Ladder Network Method. IEEE Trans. Magn. 2018, 54, 1–4. [Google Scholar] [CrossRef]
  5. Lai, M.C.; Li, Z.; Lin, X. Fast solvers for 3D Poisson equations involving interfaces in a finite or the infinite domain. J. Comput. Appl. Math. 2006, 191, 106–125. [Google Scholar] [CrossRef] [Green Version]
  6. Jiang, H.L.; Cui, T.J. Efficient PML Implementation for Approximate CN-FDTD Method. IEEE Antennas Wirel. Propag. Lett. 2019, 18, 698–701. [Google Scholar] [CrossRef]
  7. Geuzaine, C.; Remacle, J. Gmsh: A 3-D finite element mesh generator with built-in pre- and post-processing facilities. Int. J. Numer. Methods Eng. 2009, 79, 1309–1331. [Google Scholar] [CrossRef]
  8. Ding, H.; Shu, C.; Yeo, K.; Xu, D. Development of least-square-based two-dimensional finite-difference schemes and their application to simulate natural convection in a cavity. Comput. Fluids 2004, 33, 137–154. [Google Scholar] [CrossRef]
  9. Dassios, G. The Kelvin transformation in potential theory and Stokes flow. IMA J. Appl. Math. 2008, 74, 427–438. [Google Scholar] [CrossRef]
  10. Helmreich, K. Entwurfsdatengesteuerte Fehleranalyse in Gemischt Analog-Digitalen Hochgeschwindigkeitsschaltungen Durch Spannungs- und Strommessungen mit Einem Elektronenstrahltester. Ph.D. Thesis, Friedrich-Alexander-Universität Erlangen-Nürnberg, Erlangen, Germany, 1992. [Google Scholar]
Figure 1. Finite difference fan for mesh point i on a Delaunay mesh with neighbors 1–6.
Figure 1. Finite difference fan for mesh point i on a Delaunay mesh with neighbors 1–6.
Electronics 09 00442 g001
Figure 2. Delaunay mesh for the inner (left) and outer domain (right) with 1194 and 337 mesh points.
Figure 2. Delaunay mesh for the inner (left) and outer domain (right) with 1194 and 337 mesh points.
Electronics 09 00442 g002
Figure 3. Modification of differential operators to reach into the outer mesh.
Figure 3. Modification of differential operators to reach into the outer mesh.
Electronics 09 00442 g003
Figure 4. Cross section of a symmetric two-wire arrangement with center distance 2 R and radii r 0 .
Figure 4. Cross section of a symmetric two-wire arrangement with center distance 2 R and radii r 0 .
Electronics 09 00442 g004
Figure 5. Numerical solutions for Φ on inner (left) and outer (right) meshes as equipotential lines.
Figure 5. Numerical solutions for Φ on inner (left) and outer (right) meshes as equipotential lines.
Electronics 09 00442 g005
Figure 6. Numerical solutions for electrical (left) and magnetic fields (right).
Figure 6. Numerical solutions for electrical (left) and magnetic fields (right).
Electronics 09 00442 g006
Figure 7. Lines of equal potential of Φ calculated numerically with a transparent boundary, i.e., a Kelvin transformation (left), and with a Dirichlet condition on a radial boundary (center) and a Dirichlet condition on a rectangular boundary (right).
Figure 7. Lines of equal potential of Φ calculated numerically with a transparent boundary, i.e., a Kelvin transformation (left), and with a Dirichlet condition on a radial boundary (center) and a Dirichlet condition on a rectangular boundary (right).
Electronics 09 00442 g007
Figure 8. Relative error of Φ for a Dirichlet (left) and Kelvin boundaries (right). Note the different scales in both diagrams.
Figure 8. Relative error of Φ for a Dirichlet (left) and Kelvin boundaries (right). Note the different scales in both diagrams.
Electronics 09 00442 g008
Figure 9. Convergence: Relative error of Z over the number of mesh points.
Figure 9. Convergence: Relative error of Z over the number of mesh points.
Electronics 09 00442 g009
Figure 10. Equipotential lines of Φ of a two-wire line for different boundary radii. Numerical solution with the Dirichlet boundary condition (black), and the analytical solution (gray).
Figure 10. Equipotential lines of Φ of a two-wire line for different boundary radii. Numerical solution with the Dirichlet boundary condition (black), and the analytical solution (gray).
Electronics 09 00442 g010
Figure 11. Relative error of Z for increasing boundary radius and number of points (gray lines) with and without outer region.
Figure 11. Relative error of Z for increasing boundary radius and number of points (gray lines) with and without outer region.
Electronics 09 00442 g011

Share and Cite

MDPI and ACS Style

Gold, G. On the Kelvin Transformation in Finite Difference Implementations. Electronics 2020, 9, 442. https://doi.org/10.3390/electronics9030442

AMA Style

Gold G. On the Kelvin Transformation in Finite Difference Implementations. Electronics. 2020; 9(3):442. https://doi.org/10.3390/electronics9030442

Chicago/Turabian Style

Gold, Gerald. 2020. "On the Kelvin Transformation in Finite Difference Implementations" Electronics 9, no. 3: 442. https://doi.org/10.3390/electronics9030442

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop