CONFORMAL MAPPING FOR THE EFFICIENT MFS SOLUTION OF ...

8 downloads 0 Views 726KB Size Report
Oct 29, 2007 - Boundary Integral Methods and Mathematical Aspects, ed. ... [28] M. K. WARBY, BKMPACK User's Guide, Technical Report, Department of ...
CONFORMAL MAPPING FOR THE EFFICIENT MFS SOLUTION OF DIRICHLET BOUNDARY VALUE PROBLEMS∗ ANDREAS KARAGEORGHIS† AND YIORGOS–SOKRATIS SMYRLIS† A BSTRACT. In this work, we use conformal mapping to transform harmonic Dirichlet problems that are defined in simply–connected domains into harmonic Dirichlet problems that are defined in the unit disk. We then solve the resulting harmonic Dirichlet problems efficiently using the Method of Fundamental Solutions (MFS) in conjunction with Fast Fourier Transforms (FFTs). This technique is extended to harmonic Dirichlet problems in doubly–connected domains which are now mapped onto annular domains. The solution of the resulting harmonic Dirichlet problems can be carried out equally efficiently using the MFS with FFTs. Several numerical examples are presented.

1. I NTRODUCTION In Trefftz methods [3, 11], the solution of a boundary value problem is approximated by a linear combination of special solutions of the governing equation of the problem in question. One such method is the Method of Fundamental Solutions (MFS) in which the solution is approximated by a linear combination of fundamental solutions of the operator of the governing equation, with singularities (sources) located outside the domain of the problem. The MFS has become increasingly popular in recent years primarily due to the simplicity of its implementation. One of the fundamental questions in the application of the MFS is the positioning of the sources. One way of dealing with this problem is to let the coordinates of the sources be free, and determine their locations by solving a non–linear least–squares problem [5, 15]. However, this approach could be costly and has some drawbacks such as the possibility of the existence of several minima in the non-linear least-squares minimization process. Alternatively, one may use the version of the MFS where the sources are preassigned (fixed) [6] on a pseudo-boundary surrounding, and usually similar in shape to, the boundary of the problem in question ([7]). The solution of Dirichlet harmonic problems in disks, when using the latter approach, has been the subject of several studies [9, 10, 20, 21, 22]. In these, convergence analyses and error estimates are presented, and efficient FFT-based methods are proposed. Similar results for Dirichlet harmonic problems in annular domains may be found in [27]. Both the theoretical and implementational aspects of the MFS is these cases are well understood. Further, the conditioning of the coefficient matrices arising in the MFS discretization is known to be poor. This ill–conditioning is exacerbated when the domain of the problem under consideration is non–smooth, when the number of degrees of freedom becomes large, and when the distance of the pseudo–boundary from the boundary is large. These implementational difficulties may be alleviated in the case of domains with rotational symmetry. (See [20, Section 4.7].) In the general case of domains without rotational symmetry, the challenge becomes the determination of the distance of the pseudo-boundary from the boundary. One way of overcoming this difficulty, proposed in [25], is to solve the boundary value problem with the MFS for a range of values of the distance of the pseudo–boundary from the boundary and for each distance ∗Technical Report TR–27–2007, Department of Mathematics and Statistics, University of Cyprus, October 2007. †

This work was supported by University of Cyprus grant #8037-3/312-21005. Typeface Palatino, Mathpazo– System LATEX2ε . Date: October 29, 2007. 2000 Mathematics Subject Classification. Primary 30C20, 35E05, 65N35; Secondary 30C30, 65N38. Key words and phrases. Method of fundamental solutions, Laplace equation, conformal mapping, circulant matrices. ‡

1

2

A. KARAGEORGHIS AND Y.-S. SMYRLIS

find the maximum error in the satisfaction of the boundary conditions on a fixed set of boundary points (different from the MFS collocation points). The optimal value of this distance is the one for which the maximum error is minimal. This approach, however, requires the solution of a sequence of problems and could be potentially expensive. In view of the fact that Dirichlet boundary value problems on disks and annuli may be solved efficiently, in this work we shall transform a given problem in a simply–connected (resp. doubly–connected) domain into a problem in the unit disk (resp. an annulus) using conformal mappings and then to solve the transformed problem efficiently. In this approach, it is interesting to observe that when the conformal mapping opens up an angle, then a singularity is introduced in the image point of the transformed domain. On the other hand, singularities due, for example, to re–entrant corners can be removed by conformal transformations onto the disk. The purpose of this paper is to show, apparently for the first time, how conformal mappings can be used to transform harmonic Dirichlet problems in simply– and doubly–connected domains onto problems in the unit disk and appropriate annuli, respectively, where they can be solved efficiently using FFT–based matrix decomposition algorithms. Also, in this work we illustrate some of the potential difficulties associated with this technique, such as the introduction of boundary singularities in the transformed problems. We consider the solution of Laplace’s equation in the complex z = x + iy−plane, ∆u = 0 in

Ω,

(1.1a)

subject to the Dirichlet boundary condition u = f ( x, y)

on

∂Ω,

(1.1b)

where the domain Ω is simply–connected. The idea is to use the conformal mapping F to transform problem (1.1) into the boundary value problem in the complex w = ξ + iη −plane, ( e ∆u˜ = 0 in Ω, (1.2) ˜ e u˜ = f (ξ, η ) on ∂Ω, e is now the unit disk. If ξ + iη = x (ξ, η ) + iy(ξ, η ) is the image of x + iy under F , then where Ω u˜ (ξ, η ) = u( x, y), and in particular, f˜(ξ, η ) = f ( x, y). Boundary value problem (1.2) can be solved efficiently with the MFS using the techniques developed in [21, 22, 27]. The paper is organized as follows. In Section 2, we present several examples of problems in simply– connected domains which are mapped onto problems in the unit disk. In Section 3, we describe the efficient implementation of the MFS for the solution of harmonic Dirichlet problems in the unit disk. Numerical results for a number of examples are presented in Section 4. In Section 5, the techniques presented in sections 2–3 are extended to the case of doubly–connected domains. Finally, in Section 6, we provide some concluding remarks.

2. C ONFORMAL MAPPINGS The existence of conformal mappings for simply-connected domains is guaranteed from the Riemann mapping theorem (see e.g.,[29]) which states that If Ω is a simply–connected domain, other that C, and if z0 ∈ Ω, then there exists a unique conformal map F of Ω onto the unit disk so that F (z0 ) = 0 and F 0 (z0 ) > 0. This mapping may be continuously extended from the boundary of Ω to the unit circle, if the former is a Jordan curve. (Carath´eodory–Osgood Theorem [18].)

CONFORMAL MAPPING MFS ALGORITHMS

3

2.1. Exterior of an ellipse. We consider (1.1) in the complex plane when Ω is the exterior of an ellipse. More specifically, Ω is the exterior of the ellipse with major semi-axis a = cosh α and minor semi-axis b = sinh α in the complex z−plane. We know that the transformation [23] ´ 1 ³ −α w e + w −1 eα , (2.1) z = 2 maps the interior of the unit disk to the domain Ω of problem (1.1). The inverse of transformation (2.1) is given by ³ ´ p w = eα z − z2 − 1 , (2.2) and maps the domain Ω (z−plane) onto the interior of the unit disk (w−plane). Therefore, via transformation (2.2) the boundary value problem (1.1) in the z−plane with Ω the exterior of an ellipse is mapped onto problem (1.2) in the unit disk. The correspondence between the two domains is shown in Figure 1.

D′

B z−plane C

D

w−plane A

C′

A′

B′ F IGURE 1. Conformal mappings from exterior of ellipse to disk 2.2. Interior of an ellipse. We next consider problem (1.1) in the complex plane when Ω is the interior of an elliptical domain, namely the interior of the ellipse with major semi-axis a > 1 and minor semiaxis b = 1 in the z−complex plane. The transformation ([16], page 296, see also [17]) µ ³ ´ ¶ √ 2K (k) z w = k sn sin−1 √ ,k , (2.3) π a2 − 1 maps the interior of the ellipse Ω of problem (1.1) onto the interior of the unit disk. In the above, sn is the Jacobian elliptic sine and K (k) denotes the complete elliptic integral of the first kind with modulus k. The inverse of transformation (2.3) is given by   Z √w k p dt π , q z = a2 − 1 sin  2K (k) 0 2 2 2 (1 − t )(1 − k t ) and maps the unit disk (w−plane) onto Ω (z−plane). Thus, via transformation (2.3) the boundary value problem (1.1) in the interior of the ellipse in the z−plane is mapped onto problem 1.2 in the unit disk. The correspondence between the two domains is shown in Figure 2. It should be noted that the modulud k satisfies µ ¶ 2a K (k0 ) 2 = sinh−1 , (2.4) K (k) π a2 − 1 √ where k0 = 1 − k2 .

4

A. KARAGEORGHIS AND Y.-S. SMYRLIS



D

D z−plane C

B

w−plane ′

A



C

A



B

F IGURE 2. Conformal mappings from interior of ellipse to disk. 2.3. Cardioid. We next consider problem (1.1) in the complex plane when Ω is the interior of a cardioid, defined parametrically in polar coordinates by r = 2a2 (1 + cos θ ) in the complex z−plane. The cardioid is mapped onto the interior of a disk of radius a with centre v = a in the v−plane, via the transformation [23] v = z1/2 .

(2.5)

The inverse mapping is given by z = v2 . This disk is subsequently mapped onto the unit disk via w =

1 ( v − a ), a

(2.6)

while the inverse mapping is given by v = aw + a. Thus, via transformation (2.5) boundary value problem (1.1) in the interior of the cardioid in the z−plane is mapped onto a problem in a disk with centre v = a and radius a in the v−plane. Subsequently, this problem is mapped onto problem 1.2 in the unit disk in the w−plane via transformation (2.6). The correspondence between the three domains is shown in Figure 3.

z−plane

v−plane

w−plane

F IGURE 3. Conformal mappings from interior of cardioid to disk.

CONFORMAL MAPPING MFS ALGORITHMS

z v

−K + iK 0 − k −1

−K −1

0 0

K + iK 0 k −1

K 1

−1

5

iK 0 ∞

−1

w e2i tan k i −1 −i e−2i tan k 1 TABLE 1. Correspondence of points in z−, v− and w−planes for rectangle.

z A B C v 0 1 ∞ w −1 −i 1 TABLE 2. Correspondence of points in z−, v− and w−planes for triangle.

2.4. Rectangular domain. We now consider problem (1.1) in the complex z−plane, in the case where Ω is a rectangle with corners −K, K, K + iK 0 , −K + iK 0 , √ where K and K 0 are the complete elliptic 0 integrals of the first kind with moduli k < 1 and k = 1 − k2 , respectively. The problem is first mapped onto the upper half plane of the v−plane via the transformation given by the Jacobian elliptic function [16] v = sn z. The inverse mapping is given by the incomplete elliptic integral of the first kind [16] z =

Z v 0

p

dv

(1 − v2 ) (1 − k 2 v2 )

= sn−1 (v, k).

(2.7)

In (2.7), the modulus k depends on the ratio K 0 /K. For 0.3 ≤ K 0 /K ≤ 3, the corresponding values of k may be found in [1], Table 17.3. The correspondence of the various points of the boundary ∂Ω of the rectangle and points on the real line are given in Table 1 [16]. From the upper half–plane in the v−plane onto the unit disk in the w−plane, we use the transformation w =

v−i v+i

(2.8)

v = i

1+w . 1−w

(2.9)

which has the inverse transformation

The correspondence between the key points on the upper half-plane and the boundary of the unit disk are given in Table 1. The transformations are presented in Figure 4. 2.5. Triangular domain. Finally, we consider problem (1.1) in the complex z−plane when Ω is the triangle ABC with A = (0, 0) and B lying on the positive real axis. Here, we adopt the notation for [ = α and ABC [ = β. The problem is first mapped onto the upper half plane and the angles CAB subsequently onto the unit disk via transformations (2.8)-(2.9). The upper half plane is mapped onto the interior of the triangle ABC via the Schwarz–Christoffel transformation [13, 16] z =

Z v 0

α

β

t π −1 (1 − t) π −1 dt.

(2.10)

Clearly the point A is mapped onto the origin of the upper half plane, B onto 1 and C onto infinity. The correspondence of the vertices of the triangle ABC to the various points on the real line and the disk are presented in Table 2, while the transformations are presented in Figure 5.

6

A. KARAGEORGHIS AND Y.-S. SMYRLIS



z−plane K+iK′

−K+iK

−K

O

K v−plane

• −1 −k

• −1

• O

• 1

• k−1

iθ •i •e w−plane • 1

• −1

• •e−iθ −i F IGURE 4. Conformal mappings from rectangle to disk. 3. M ETHOD OF FUNDAMENTAL SOLUTIONS In the MFS, the solution u˜ of problem (1.2) is approximated by the harmonic function [15, 19] N

u N (c, Q; P) =

∑ c` K( P, Qα` ),

˜ P ∈ Ω,

`=1

where c = (c1 , c2 , . . . , c N

)T

and Q is a 2N −vector containing the coordinates of the singularities e The function K( P, Q) is a fundamental solution of (sources) ` = 1, . . . , N, which lie outside Ω. the Laplacian given by 1 log | P − Q|, (3.1) K( P, Q) = − 2π with | P − Q| denoting the distance between the points P and Q. The singularities Qα` are fixed on the e 0 of a disk Ω e 0 concentric to the unit disk Ω e and defined by Ω e 0 = { x ∈ R2 : | x | < R } , boundary ∂Ω N e where R > 1. A set of collocation points { Pk }k=1 is placed on ∂Ω. If Pk = ( x Pk , y Pk ), then we take Qα` ,

x Pk = cos ¡ ¢ If Qαj = xQαj , y Qαj , then

2( k − 1) π 2( k − 1) π , y Pk = sin , k = 1, . . . , N. N N

2(` − 1 + α)π 2(` − 1 + α)π , yQα = R sin , ` = 1, . . . , N, (3.2) ` N N 2πα where the positions of the sources differ by an angle from the positions of the boundary points N and 0 ≤ α < 1. In the case α 6= 0, we thus have a rotation of the singularities with respect to the boundary points. This rotation is performed in order to obtain improved results when R − 1 ¿ 1. x Qα = R cos `

CONFORMAL MAPPING MFS ALGORITHMS

7

C z−plane α

β

A

B

v−plane



C

• ′ A

•′ B (1)



C

i w−plane • 1

• −1

• −i F IGURE 5. Conformal mappings from triangle to disk. The coefficients c are determined so that the boundary condition is satisfied at the boundary points { Pk }kN=1 : u N (c, Q; Pk ) = f˜( Pk ), k = 1, . . . , N. With obvious notation for f , this yields a linear system of the form Gα c = f ,

(3.3)

for the coefficients c, where the elements of the matrix G α are given by 1 log | Pk − Qα` |, k, ` = 1, . . . , N. 2π Clearly, G α is a circulant matrix and the system (3.3) can be solved efficiently using the matrix decomN position algorithm of [21, 22]. If U ∗ = √1 (e2πi(k−1)(`−1)/N )k, `=1 , we premultiply system (3.3) by U N α ∗ ˆ to obtain UG U Uc = U f or DUc = U f or D cˆ = f , where cˆ = Uc and fˆ = U f and the matrix © ªN D is diagonal [4], with entries d j . The solution is thus clearly, cˆi = fˆi /di , i = 1, . . . , N. Having α Gk, ` =−

j =1

obtained c, ˆ we can find c from c = U ∗ c. ˆ We thus have the following matrix decomposition algorithm [21, 22]: Algorithm. Step 1. Compute

fˆ = U f .

Step 2. Construct the diagonal matrix D. Step 3. Evaluate c. ˆ Step 4. Compute c = U ∗ c. ˆ

8

A. KARAGEORGHIS AND Y.-S. SMYRLIS

Cost. This algorithm requires O( N log N ) operations. An efficient MATLAB code implementation of the method described in this section is presented in Appendix I. In it, the maximum error on the boundary is calculated in the case f ( x, y) = e4x cos 4y. 4. N UMERICAL RESULTS In all numerical examples, the maximum relative error on 25 uniformly distributed points (which are not collocation points) on the boundary of the unit circle was calculated for various values of N. Example 1: Exterior of an ellipse. We first consider problem (1.1) in which Ω is the domain exterior to the ellipses defined by α = 0.1, 0.5. The boundary condition is taken to be f (z) = z−1 and the plots of the maximum relative error versus R are presented in Figure 8. The error in the case α = 0.1 is much larger that in the case α = 0.5, as the aspect ratio in the former case is much larger. In particular, in the case α = 0.1 the ratio of the length of the major axis with respect to the length of the minor axis is 10.0333 whereas in the case α = 0.5 it is 2.1640. Also, the conformal mapping given by (2.2) has a singularity at z = ±1 and in the case α = 0.1, the boundary is much closer to the singular points than in the case α = 0.5. Example 2: Interior of an ellipse. We consider the case in which the ellipse is defined by semi-minor axis b = 1 and major axis a > 1. In (2.4) we chose k = 3/4, 1/2 and 1/3 which corresponds to a = 1.8285, 1.5249 and 1.3785, respectively. The boundary condition is taken to be f (z) = z2 and the plots of the maximum relative error versus R are presented in Figure 9. As in the case of the exterior ellipse, we observe that the error is smaller for smaller values of the aspect ratio of the ellipse (a/b). 2ai Also, the mapping function has dominant simple poles at z = ± √ , and as a increases the a2 − 1 boundary approaches these poles resulting in poor convergence. (See [17].) Example 3: Cardioid. We consider the case of a cardioid defined by a = 1. The boundary condition was taken to be f (z) = z5 . The plot of the maximum relative error versus R is presented in Figure 10 and from it we observe extremely rapid convergence of the method. 0 Example 4: Rectangular √ domain. We first consider the rectangle for which K /K = 1. In this case, it follows that k = 1/ 2. We considered two cases, when the boundary conditions are f (z) = z2 and f (z) = sin z, respectively. The plots of the maximum relative error versus R are presented in Figure 11. From these it is observed in order to obtain high accuracy, large values of N are required and the high accuracy occurs only in a small range of values of R, relatively close to the boundary. This is typical of the behaviour of the MFS for problems with boundary singularities. In Figure 12 we present f˜(v) on the boundary of the disk, for f (z) = z2 and f (z) = sin z. From these it is clear that boundary singularities are introduced at the points corresponding to the corners of the rectangle.

We also considered the square i.e., K 0 /K = 2. From [1, Table 17.3] it follows that, in this case, k2 = 0.0294372515. Again we considered the two cases when the boundary condition is f (z) = z2 and f (z) = sin z, respectively. In Figure 13, we present the plots of the maximum relative error versus R in the two cases. As expected the errors are considerably smaller than the errors obtained for the rectangle defined by K 0 /K = 1. In Figure 14, we present f˜(v) on the boundary of the disk, for f (z) = z2 and f (z) = sin z and as in the previous case, it is clear that singularities are introduced at the points corresponding to the corners of the square. When going from the rectangle to the unit disk the conformal transformation introduces singularities at the images of at the corners of the four right angles in the sense that the first derivatives of the solution of the transformed problem becomes unbounded there. (See [14].)

CONFORMAL MAPPING MFS ALGORITHMS

9

Example 5: Triangular domain. We considered two cases, an equilateral triangle (α = β = π/3) and a right–angled triangle (α = π/3, β = π/2 ). The boundary condition is taken to be f (z) = sin z and the plots of the maximum relative error versus R are presented in Figure 15. As in the case of the rectangle, it is observed that high accuracy is only achieved for large values of N and the high accuracy occurs only in a small range of values of R, relatively close to the boundary. In Figure 16, we present f˜(w) on the boundary of the disk, for the two triangles. As in the case of the rectangle, it is clear that singularities are introduced at the points corresponding to the corners of the rectangle, due to the opening–up of the angles of the triangles. 5. D OUBLY CONNECTED DOMAINS In this section we extend the the ideas of Section 2 to doubly connected domains. For the existence of such conformal mappings we rely on the fact that any doubly connected domain can be mapped conformally onto an annulus ([29]). It should be noted that the annulus onto which the doubly–connected domain is mapped onto is one with a specific ratio of its two radii. (This ratio is called the conformal modulus of the domain.) The solution of Laplace’s equation in annular domains subject to Dirichlet boundary conditions can be solved very efficiently as will be explained in the sequel. 5.1. Disk with circular hole. We first examine the case of a disk with a circular hole, which is not concentric to the disk. We consider the boundary value problem in the z−plane, ∆u = 0 u = f 1 (z)

on

in

Ω,

(5.1a)

u = f 2 (z)

∂Ω1 ,

on

∂Ω2 ,

(5.1b)

where Ω is a disk of radius 1 and centre z = 0 with a circular hole with centre z = z2 and radius r2 as shown in Figure 6. Also, ∂Ω1 outer (unit) circle while ∂Ω2 is the boundary of the hole. We assume that r2 < |z2 | < 1, |z2 | + r2 < 1, which means the hole does not cover the origin. From [12], p.30, the conformal mapping µ w = t

d z − s z2 d z − t z2

¶ ,

maps Ω onto the annulus with centre the origin in the w−plane. The annulus has external radius 1 ¯ t ¯ ¯ ¯ and internal radius R2 = r2 ¯ ¯. Here d = |z2 | and s and t are the (real) roots of the system of d−t equations

(d − s) (d − t) = r22 .

s t = 1, The inverse transformation is clearly

t z2 z= d

µ

w−s w−t

¶ .

(5.2)

Therefore, via the transformation (5.2), the boundary value problem (5.1) becomes ∆u˜ = 0 u˜ = f˜1 (w)

on

e 1, ∂Ω

in

e Ω,

u˜ = f˜2 (w)

(5.3a) on

e 2, ∂Ω

(5.3b)

e is now an annulus in the w−plane, ∂Ω e 1 is the outer (unit) circle and ∂Ω e 2 is the inner circle where Ω e of radius r2 . If the point w is a point on ∂Ω j , j = 1, 2 in the w−plane corresponding to the point z in the z−plane, then f˜j (w) = f j (z), j = 1, 2.

10

A. KARAGEORGHIS AND Y.-S. SMYRLIS

w−plane

z •2 • z−plane

F IGURE 6. Conformal mapping from a disk with non–concentric hole to an annulus.

5.2. Two concentric ellipses. We next consider the case of the region between two concentric ellipses: L0 :

y2 x2 + = 1 and a20 b02

L1 :

x2 y2 + = 1, a21 b12

that is, we consider boundary value problem (5.1) where Ω is an ellipse with boundary ∂Ω1 = L0 with a concentric elliptical hole with boundary ∂Ω0 = L1 . In the case when the ellipses are confocal, that is, a20 − b02 = a21 − b12 , the conformal mapping [24] q z + z2 − ( a20 − b02 ) w = , (5.4) a0 + b0 ˜ in the w−plane. In this case, Ω ˜ has outer maps the domain Ω in the z−plane onto the annulus Ω a1 + b1 radius one and inner radius R2 = . The inverse transformation is given by a0 + b0 z =

a0 − b0 + ( a0 + b0 )w2 . 2w

(5.5)

Thus, via transformation (5.4), boundary value problem (5.1) becomes (5.3) in the w−plane, as shown e j , j = 1, 2 in the w−plane in Figure 7. As in the previous example, if the point w is a point on ∂Ω corresponding to the point z in the z−plane, then f˜j (w) = f j (z), j = 1, 2.

F IGURE 7. Conformal mapping from concentric ellipses to annulus.

CONFORMAL MAPPING MFS ALGORITHMS

11

5.3. Method of fundamental solutions for annular domains. In the case of the annulus, following [27], we approximate the solution u˜ of problem (5.3) by N

N

`=1

`=1

2,α ∑ c1` K( P, Q1,α ` ) + ∑ c2` K( P, Q` ),

u N ( c1 , c2 , Q1 , Q2 ; P ) =

P ∈ Ω,

where c j = (c j1 , c j2 , . . . , c jN ) T , j = 1, 2 and Q j are 2N −vectors containing the coordinates of the j,α e The function K( P, Q) is a singularities (sources) Q , ` = 1, . . . , N, j = 1, 2, which lie outside Ω. `

fundamental solution of Laplace’s equation given by (3.1). The singularities Q1,α ` are fixed on the 0 0 2 e e e circle ∂Ω1 concentric to the unit circle ∂Ω1 and defined by ∂Ω = { x ∈ R : | x| = R}, where R > 1. e0 e Similarly, the singularities Q2,α ` are fixed on the circle ∂ Ω2 concentric to the circle ∂ Ω2 and defined by 0 2 e ∂Ω = { x ∈ R : | x| = r }, where r < R2 . j

j

e j , j = 1, 2. If P = ( x j , y j ), then we take A set of collocation points { Pk }kN=1 , j = 1, 2 is placed on ∂Ω k Pk

x P1 = cos k

Pk

2( k − 1) π 2( k − 1) π , y P1 = sin , k = 1, . . . , N. k N N

and x P2 = R2 cos k

j,α

If Q`

2( k − 1) π 2( k − 1) π , y P2 = R2 sin , k = 1, . . . , N. k N N

¢ ¡ = xQ j,α , yQ j,α , j = 1, 2, then `

`

xQ1,α = R cos `

2(` − 1 + α)π 2(` − 1 + α)π , yQ1,α = R sin , ` = 1, . . . , N, N N `

and 2(` − 1 + α)π 2(` − 1 + α)π , yQ2,α = r sin , ` = 1, . . . , N, N N ` ` where α is as in (3.2). The coefficients c j , j = 1, 2 are determined so that the boundary conditions are satisfied at the boundary points { Pjk }kN=1 , j = 1, 2: xQ2,α = r cos

u N (c1 , c2 , Q1 , Q2 ; P1k ) = f˜1 ( P1k )

and

u N (c1 , c2 , Q1 , Q2 ; P2k ) = f˜2 ( P2k ),

k = 1, . . . , N.

With obvious notation for f 1 and f 2 , this yields a linear system of the form à ! à ! à ! α α G11 G12 c1 f1 = , α α G21 G22 c2 f2

(5.6)

(5.7)

α , j, m = 1, 2 are given by where the elements of the matrices Gjm α =− Gjm k,`

1 log | Pjk − Qαm` |, 2π

k = 1, . . . , N

` = 1, . . . , N, j, m = 1, 2,

(5.8)

α , j, m = 1, 2 is circulant and the system (5.7) can be solved efficiently Clearly, each of the matrices Gjm as is shown in [27]. If I2 is the identity matrix of order 2, we premultiply system (5.7) by I2 ⊗ U to obtain à !à !à !à !à ! à !à ! α α U 0 G12 G11 U∗ 0 U 0 c1 U 0 f1 = , α α 0 U G21 G22 0 U∗ 0 U c2 0 U f2

or

Ã

D11 D21

D12 D22

! Ã

cˆ1 cˆ2

!

Ã

=

fˆ1 fˆ2

! ,

(5.9)

12

A. KARAGEORGHIS AND Y.-S. SMYRLIS

where cˆj = Uc j , fˆj = U f j , j = 1, 2, and each of the matrices D jm , j, m = 1, 2 is diagonal with entries d jmk , k = 1, . . . N, j, m = 1, 2. System (5.9) is therefore equivalent to the N independent 2 × 2 systems ! Ã ! Ã ! Ã d11k d12k cˆ1k fˆ1k = , k = 1, . . . N, d21 d22 cˆ2 fˆ2 k

k

k

k

from which we get cˆ1k =

d22k fˆ1k − d12k fˆ2k d11k d22k − d12k d22k

and

cˆ2k =

d11k fˆ2k − d21k fˆ2k , d11k d22k − d12k d22k

k = 1, . . . N.

The solution is thus clearly, cˆi = fˆ i /di , i = 1, . . . , N. Having obtained cˆ j , j = 1, 2, we can find c, j = 1, 2 from c j = U ∗ cˆ j , j = 1, 2. We thus have the following matrix decomposition algorithm [27]: Algorithm Step 1. Compute

fˆj = U f j , j = 1, 2.

Step 2. Construct the diagonal matrices D jm , j, m = 1, 2. Step 3. Evaluate cˆj , j = 1, 2. Step 4. Compute c j = U ∗ cˆj , j = 1, 2. Cost. As in the case of the disk, this algorithm can be carried out at O( N log N ) operations. An efficient MATLAB code implementing the method described in this section is presented in Appendix II. As in the case of the unit disk, the maximum error on the boundary, when the boundary condition is f ( x, y) = e4x cos 4y, is calculated. 5.4. Numerical results. In the following numerical examples, the maximum relative error was calculated on 25 uniformly distributed points on each of the boundary circle of the annulus. Example 6: Disk with circular hole. We considered the case of the unit disk with a hole with centre z2 = 0.3 + 0.3i and radius r2 = 0.3 which is mapped onto the annulus with external boundary the unit circle and internal boundary a circle with radius R2 = 0.37636943446018 and we took the internal pseudo–boundary to be fixed with radius r = 0.25. The boundary condition is f (z) = 1/(z − z2 ). We kept the internal pseudo–boundary fixed with radius r = R2 /2. The plot of the maximum relative error versus R are presented in Figure 17 and from it we observe extremely rapid convergence of the method. Example 7: Two concentric ellipses. We considered the cases when a0 = 9, b0 = 7, a1 = 6, b1 = 2 and a0 = 7, b0 = 5, a1 = 5, b1 = 1. In both cases, the annulus has inner radius R2 = 0.5. The boundary condition was taken to be f (z) = 1/z. The plots of the maximum relative error versus R are presented in Figure 18. In the first case, the convergence is more rapid because of the smaller aspect ratio of the internal ellipse. 6. C ONCLUDING REMARKS In this paper, we applied conformal mappings to harmonic Dirichlet problems in various simply– and doubly–connected domains yielding harmonic Dirichlet problems on the unit disk or an appropriate annulus. The solution of such problems using the MFS yields linear systems in which the coefficient matrices are circulant and can therefore be solved very efficiently using FFTs. Further, this removes potential sources of ill–conditioning which are inherent in the application of the MFS to simply– and doubly–connected domains. There is a potential difficulty when applying this technique to problems in non-convex polygonal domains. In these cases, the conformal transformations mapping these domains onto the disk introduce boundary singularities at the points corresponding to the non-convex

CONFORMAL MAPPING MFS ALGORITHMS

13

vertices. The reason for this is that these points are singularities of the Schwarz–Christoffel transformation mapping the polygon onto the upper half–plane. This means that, in such cases, more degrees of freedom are required for the accurate solution of the problem. Also, the range of the radii of the pseudo-boundaries for which accurate MFS solutions are obtained is shorter than in other problems. However, in view of the very efficient solution of the Dirichlet problem in the disk or an annulus, this may still be viewed as an improvement. In the future we intend to apply the technique described in the paper to more complex problems for which no analytical expressions for the conformal mapping exist, using numerical conformal mapping software such as BKMPACKJ [28], CONFPACK [8], SCPACK [26]. A CKNOWLEDGEMENTS The authors are grateful to Professors Graeme Fairweather and Nick Papamichael for helpful discussions. A PPENDIX I MATLAB code for the efficient solution of Dirichlet problem in the unit disk function laplf(f,mp,iter,ds,alfa,m) coe=-(1.0/(2.0*pi)); theta=2.0*pi/m; rp=1.0; for ii=1:iter rs=rp+ii*ds; (or alfa= (0.5*ii/(iter+1))) ang=theta*(0:m-1); ca=cos(ang);sa=sin(ang); ca1=cos(ang+theta*alfa);sa1=sin(ang+theta*alfa); xp=rp*ca;yp=rp*sa;xs=rs*ca1;ys=rs*sa1; b=feval(f,xp,yp)’; dx=xp(1)*ones(1,m)-xs; dy=yp(1)*ones(1,m)-ys; aa=.5*coe*log(dx.*dx+dy.*dy); om=exp(2.0*pi*i/m); oc=conj(om); d=ifft(aa’); ff=fft(b)/sqrt(m); c=ff./d; ct=real(ifft(c)/sqrt(m)); the=2.0*pi/mp; ang=the*(0:mp-1);ca=cos(ang);sa=sin(ang); xx=rp*ca;yy=rp*sa; exa=feval(f,xx,yy); dx=xs’*ones(1,mp)-ones(m,1)*xx; dy=ys’*ones(1,mp)-ones(m,1)*yy; rh=.5*coe*log(dx.*dx+dy.*dy); err=rh’*ct-exa’; a1=max(abs(err)); rt(ii,1)=rs; (or rt(ii,1)=alfa;) rt(ii,2)=a1; end semilogy(rt(:,1),rt(:,2),’-’) (or plot(rt(:,1),rt(:,2),’-’)) function f=f1(x,y) f=exp(4.*x).*cos(4.*y);

14

A. KARAGEORGHIS AND Y.-S. SMYRLIS

A PPENDIX II MATLAB code for the efficient solution of Dirichlet problem in an annulus function lapannef(f,mp,iter,ds,alfa,m) cf=-(1.0/(4.0*pi));theta=2.0*pi/m; rpe=1.0; rpi=0.5; os=ones(1,m);op=ones(1,mp);ot=ones(m,1); for ii=1:iter rse=rpe+ii*ds;rsi=rpi/2; ang=theta*(0:m-1); ca=cos(ang);sa=sin(ang); ca1=cos(ang+theta*alfa);sa1=sin(ang+theta*alfa); xpe=rpe*ca;ype=rpe*sa;xpi=rpi*ca;ypi=rpi*sa; xse=rse*ca1;yse=rse*sa1;xsi=rsi*ca1;ysi=rsi*sa1; be=feval(f,xpe,ype)’;bi=feval(f,xpi,ypi)’; dxee=xpe(1)*os-xse;dyee=ype(1)*os-yse;aee=cf*log(dxee.*dxee+dyee.*dyee); dxei=xpe(1)*os-xsi;dyei=ype(1)*os-ysi;aei=cf*log(dxei.*dxei+dyei.*dyei); dxie=xpi(1)*os-xse;dyie=ypi(1)*os-yse;aie=cf*log(dxie.*dxie+dyie.*dyie); dxii=xpi(1)*os-xsi;dyii=ypi(1)*os-ysi;aii=cf*log(dxii.*dxii+dyii.*dyii); om=exp(2.0*pi*i/m);oc=conj(om); dee=ifft(aee’);dei=ifft(aei’);die=ifft(aie’);dii=ifft(aii’); ffe=fft(be)/sqrt(m);ffi=fft(bi)/sqrt(m); ce=(dii.*ffe-dei.*ffi)./(dii.*dee-dei.*die); ci=(-die.*ffe+dee.*ffi)./(dii.*dee-dei.*die); cte=ifft(ce)/sqrt(m);cti=ifft(ci)/sqrt(m); the=2.0*pi/mp;ang=the*(0:mp-1);ca=cos(ang);sa=sin(ang); xxe=rpe*ca;yye=rpe*sa;exae=feval(f,xxe,yye); xxi=rpi*ca;yyi=rpi*sa;exai=feval(f,xxi,yyi); dxee=xse’*op-ot*xxe;dyee=yse’*op-ot*yye; dxei=xsi’*op-ot*xxe;dyei=ysi’*op-ot*yye; rhe=cf*log(dxee.*dxee+dyee.*dyee);rhi=cf*log(dxei.*dxei+dyei.*dyei); erre=rhe’*cte+rhi’*cti-exae.’; dxie=xse’*op-ot*xxi;dyie=yse’*op-ot*yyi; dxii=xsi’*op-ot*xxi;dyii=ysi’*op-ot*yyi; rhe=cf*log(dxie.*dxie+dyie.*dyie);rhi=cf*log(dxii.*dxii+dyii.*dyii); erri=rhe’*cte+rhi’*cti-exai.’; a1i=max(abs(erri));a1e=max(abs(erre));a1=max(a1i,a1e); rt(ii,1)=rse; rt(ii,2)=a1; end semilogy(rt(:,1),rt(:,2),’-’) function f=f1(x,y) f=exp(4.*x).*cos(4.*y);

R EFERENCES [1] M. A BRAMOWITZ AND I. E. S TEGUN, Handbook of Mathematical Functions, Dover, New York, 1972. [2] A. B OGOMOLNY, Fundamental solutions method for elliptic boundary value problems, SIAM J. Numer. Anal., 22, 644–669, 1985. [3] H. A. C HO , M. A. G OLBERG , A. S. M ULESHKOV AND X. L I, Trefftz methods for time dependent partial differential equations, CMC: Computers, Materials & Continua, 1, 1–37,2004. [4] P. J. D AVIS, Circulant Matrices, John Wiley & Sons, New York-Chichester-Brisbane, 1979.

CONFORMAL MAPPING MFS ALGORITHMS

15

[5] G. FAIRWEATHER AND A. K ARAGEORGHIS , The method of fundamental solutions for elliptic boundary value problems, Adv. Comput. Math., 9, 69–95, 1998. [6] M. A. G OLBERG AND C. S. C HEN, The method of fundamental solutions for potential, Helmholtz and diffusion problems, in: Boundary Integral Methods and Mathematical Aspects, ed. M. A. Golberg, WIT Press/Computational Mechanics Publications, Boston, 1999, pp. 103–176. ´ [7] P. G ORZELA NCZYK AND J. A. K OŁODZIEJ Some remarks concerning the shape of the source contour with application of the method of fundamental solutions to elastic torsion of prismatic rods, Eng. Anal. Bound. Elem., doi:10.1016/j.enganabound.2007.05.004, 2007. ¨ [8] D. M. H OUGH, User’s Guide to CONFPACK, IPS Research Report 90-11, ETH, Zurich, Switzerland, 1990. [9] M. K ATSURADA, A mathematical study of the charge simulation method II, J. Fac. Sci., Univ. of Tokyo, Sect. 1A, Math., 36, 135–162, 1989. [10] M. K ATSURADA AND H. O KAMOTO, A mathematical study of the charge simulation method I, J. Fac. Sci., Univ. of Tokyo, Sect. 1A, Math., 35, 507–518, 1988. [11] E. K ITA AND N. K AMIYA, Trefftz method: an overview, Adv. Eng. Software, 24, 3–12, 1995. [12] H. K OBER, Dictionary of Conformal Representations, Admiralty Computing Service, Department of Scientific Research and Experiment, Admiralty, London, 1944-1948. [13] P. K. K YTHE, Computational Conformal Mapping, Birkh¨auser, Boston, 1998. [14] D. L EVIN , N. PAPAMICHAEL AND A. S IDERIDIS, On the use of conformal transformations for the numerical solution of harmonic boundary value problems, Comput. Methods Appl. Mech. Engrg., 12, 201–218, 1977. [15] R. M ATHON AND R. L. J OHNSTON, The approximate solution of elliptic boundary–value problems by fundamental solutions, SIAM J. Numer. Anal., 14, 638–650, 1977. [16] Z. N EHARI, Conformal Mapping, Dover, New York, 1952. [17] N. PAPAMICHAEL, Dieter Gaier’s contributions to numerical conformal mapping, Comput. Methods Funct. Theory, 3, 1–53, 2003. [18] N. PAPAMICHAEL AND N. S. S TYLIANOPOULOS , Numerical conformal mapping onto a rectangle, Preprint, Department of Mathematics & Statistics, University of Cyprus, 2006. [19] Y.-S. S MYRLIS, Applicability and applications of the method of fundamental solutions, Tech. Report TR–03–2006, Department of Mathematics and Statistics, University of Cyprus, February 2006. [20] Y.S. S MYRLIS, The method of fundamental solutions: a weighted least-squares approach, BIT, 46, 164–193, 2006. [21] Y.S. S MYRLIS AND A. K ARAGEORGHIS , Some aspects of the method of fundamental solutions for certain harmonic problems, J. Sci. Comput., 16, 341–371, 2001. [22] Y.S. S MYRLIS AND A. K ARAGEORGHIS, Numerical analysis of the MFS for certain harmonic problems, M2AN Math. Model. Numer. Anal., 38, 495–517, 2004. [23] M. R. S PIEGEL, Complex Variables, McGraw-Hill, New York, 1964. [24] G. T. S YMM, Conformal mapping of doubly-connected domains, Numer. Math., 13, 448–457, 1969. [25] R. TANKELEVICH , G. FAIRWEATHER , A. K ARAGEORGHIS AND Y-S. S MYRLIS, Potential field based geometric modeling using the method of fundamental solutions, Internat. Journal Numer. Methods in Engineering, 68, 1257–1280, 2006. [26] L. N. T REFETHEN, SCPACK User’s Guide, Numerical Analysis Report 89-2, Department of Mathematics, MIT, Cambridge MA, 1989. [27] T H . T SANGARIS , Y-S. S MYRLIS AND A. K ARAGEORGHIS , Numerical Analysis of the method of fundamental solutions for harmonic problems in annular domains, Numer. Methods Partial Differential Equations , 21, 507–539, 2005. [28] M. K. WARBY, BKMPACK User’s Guide, Technical Report, Department of Mathematics & Statistics, Brunel University, Uxbridge, UK, 1992. [29] G-C. W EN, Conformal Mappings and Boundary Value Problems, Transactions of Mathematical Monographs, Vol. 106, American Mathematical Society, Providence, 1992. D EPARTMENT OF M ATHEMATICS AND S TATISTICS , U NIVERSITY OF C YPRUS , 1678 N ICOSIA , C YPRUS E-mail address: [email protected] D EPARTMENT OF M ATHEMATICS AND S TATISTICS , U NIVERSITY OF C YPRUS , 1678 N ICOSIA , C YPRUS E-mail address: [email protected]

16

A. KARAGEORGHIS AND Y.-S. SMYRLIS

α=0.1

0

α=0.5

0

10

10

−2

10

−4

10

−1

10

−6

Error

10

−8

10

−2

10

−10

10 N=16 N=32 N=64 N=128

−3

10

1

−12

10

−14

1.5 R

2

10

1

1.5 R

2

F IGURE 8. Maximum relative error versus R in Example 1, for α = 0.1, 0.5. k2=3/4

0

k2=1/2

0

10

−2

10

−2

10

−2

10

−4

10

−4

−4

10

10

Error

10

k2=1/3

0

10

−6

−6

10

−8

10

N=16 N=32 N=64 N=128

−10

10

−6

10

1

1.25 R

1.5

10

−8

−8

10

10

−10

10

−10

1

1.25 R

1.5

10

1

1.25 R

1.5

F IGURE 9. Maximum relative error versus R in Example 2, for k = 1/2 and f (z) = z2 .

CONFORMAL MAPPING MFS ALGORITHMS

17

a=1 0

10

N=8 N=16 N=32 N=64

−5

Error

10

−10

10

−15

10

1

2

3 R

4

5

F IGURE 10. Maximum relative error versus R in Example 3, for a = 1 and f (z) = z5 . f(z)=z2

0

10

−1

−1

Error

10

10

−2

−2

10

10

−3

−3

10

10

−4

10

f(z)=sin z

0

10

N=128 N=256 N=512 N=1024

−4

1

1.025 R

1.05

10

1

1.025 R

1.05

F IGURE 11. Maximum relative error versus R in Example 4, for f (z) = z2 and f (z) = sin z when K 0 /K = 1

18

A. KARAGEORGHIS AND Y.-S. SMYRLIS

f(z)=z2

f(z)=sin z

6

4 3

4 2 2 1 0

0 −1

−2 −2 −4 −3 −6

0

2

θ

4

6

−4

Real(f) Imag(f) 0

2

θ

4

6

F IGURE 12. Boundary values on the boundary of the unit disk in Example 4, for f (z) = z2 and f (z) = sin z when K 0 /K = 1. f(z)=z2

0

10

−1

−1

10

10

−2

−2

10

10

−3

−3

Error

10

10

−4

−4

10

10

−5

−5

10

10 N=128 N=256 N=512 N=1024

−6

10

−7

10

f(z)=sin z

0

10

1

1.025 R

1.05

−6

10

−7

10

1

1.025 R

1.05

F IGURE 13. Maximum relative error versus R in Example 4, for f (z) = z2 and f (z) = sin z when K 0 /K = 2.

CONFORMAL MAPPING MFS ALGORITHMS

f(z)=z2

19

f(z)=sin z

10

15

5

10

0

5

−5

0

−10

−5 Real(f) Imag(f)

−15

0

2

θ

4

6

−10

0

2

θ

4

6

F IGURE 14. Boundary values on the boundary of the unit disk in Example 4, for f (z) = z2 and f (z) = sin z when K 0 /K = 2. α=β=π/3

0

α=π/3, β=π/2

10

−1

10

−1

10

−2

10

−3

10 −3

Error

10

−5

10

−4

10

−5

10

−7

N=128 N=256 N=512 N=1024

−6

10

−7

10

1

1.025 R

1.05

10

−9

10

1

1.025 R

1.05

F IGURE 15. Maximum relative error versus R in Example 5, for f (z) = sin z in the cases α = β = π/3 and α = π/3, β = π/2.

20

A. KARAGEORGHIS AND Y.-S. SMYRLIS

α=β=π/3

α=π/3, β=π/2

10

25

8

20

6

15

4

10

2

5

0

0

−2

−5

−4

−10

−6

−15

−8 −10

Real(f) Imag(f) 0

2

θ

4

6

−20 −25

0

2

θ

4

6

F IGURE 16. Boundary values on the boundary of the unit disk in Example 5, for f (z) = sin z in the cases α = β = π/3 and α = π/3, β = π/2. z =0.3+0.3 i, r =0.3 2

2

0

10

N=8 N=16 N=32 N=64

−5

Error

10

−10

10

−15

10

1

2

3

4

R

F IGURE 17. Maximum relative error versus R in Example 5, for f (z) = 1/(z − z2 ) in the case z2 = 0.3 + 0.3i, r2 = 0.3.

CONFORMAL MAPPING MFS ALGORITHMS

a =9, b =7 0

0

a =7, b =5

0

0

10

−1

−1

10

10

−2

−2

10

10

−3

−3

10 Error

0

0

10

10

−4

−4

10

10

−5

−5

10

10

−6

−6

10

10

−7

N=12 N=24 N=48 N=96

−7

10

10

−8

10

21

−8

1

2

3 R

4

10

1

2

3

4

R

F IGURE 18. Maximum relative error versus R in Example 6, for f (z) = 1/z in the cases a0 = 9, b0 = 7 and a0 = 7, b0 = 5.

Suggest Documents