# Approximation on the hexagonal grid of the Dirichlet problem for Laplace’s equation

- Adiguzel A. Dosiyev
^{1}Email author and - Emine Celiker
^{1}

**2014**:73

https://doi.org/10.1186/1687-2770-2014-73

© Dosiyev and Celiker; licensee Springer. 2014

**Received: **28 November 2013

**Accepted: **9 March 2014

**Published: **28 March 2014

## Abstract

The fourth order matching operator on the hexagonal grid is constructed. Its application to the interpolation problem of the numerical solution obtained by hexagonal grid approximation of Laplace’s equation on a rectangular domain is investigated. Furthermore, the constructed matching operator is applied to justify a hexagonal version of the combined Block-Grid method for the Dirichlet problem with corner singularity. Numerical examples are illustrated to support the analysis made.

**MSC:**35A35, 35A40, 35C15, 65N06, 65N15, 65N22, 65N99.

## Keywords

## 1 Introduction

When solving PDEs, many approximate methods, such as overlapping versions of domain decomposition, composite grids and different types of combined methods, use the matching operator to connect the subsystems within them. Hence, the approximation of the solutions relies heavily on the order of accuracy of the matching operator, as well as on the order of accuracy of the subsystems. In [1] and [2], the second order matching operator is used to construct and justify the second order composite grid method for solving Laplace’s boundary value problems. In [3], the fourth order matching operator is constructed and used for the fourth order composite grids and in [4] and [5] it is used for the fourth order Block-Grid method. In [6–9], the sixth order matching operator is constructed for the Block-Grid method and it is used for the sixth order composite grids in [10].

In all of the above mentioned papers, the fourth and sixth order matching operators were constructed on the basis of the 9-point finite difference solution of Laplace’s equation on square grids. In this paper, the matching operator is constructed for the solution of the Dirichlet problem on a hexagonal grid. In order to approximate the given differential equations at each regular node ${P}_{0}$ on a hexagonal grid, the six equidistant nodes surrounding ${P}_{0}$ are used, and the truncation error obtained is $O({h}^{4})$. Thus, we obtain the same order of accuracy when using the 7-point scheme on the hexagonal grid, as we do when using the 9-point scheme on the rectangular grid (see [11]). This has many computational advantages such as (i) the matrix of the system will contain seven diagonals rather than nine and will lead to less use of memory space, (ii) the calculations will require less computational effort and (iii) the algorithm will be easier to implement. Hexagonal grids are favored in many applied problems in dynamical meteorology and dynamical oceanography as well (see [12–14]), due to the benefits a hexagonal grid provides, compared to a rectangular grid.

Even though using a hexagonal grid has the above mentioned advantages, it has not been used before in methods such as composite grids, domain decomposition, and combined methods, as the fourth order matching operator for connecting the subsystems together was not constructed. In this paper, in Section 2, the approximate solution in a hexagonal grid on a rectangular domain is analyzed. In Section 3 a fourth order matching operator is constructed and its application to find the fourth order accurate approximate solution on the closed domain is considered. Section 4 contains the justification of using a hexagonal grid for the solution of Laplace’s equation on a staircase polygon, with the use of the Block-Grid method. This method requires the application of the matching operator constructed in Section 3 and gives an overall fourth order accuracy. Numerical examples are illustrated in Section 5 to support the analysis made.

## 2 Approximation in the hexagonal grid of the Dirichlet problem on a rectangle

*j*th vertex. We consider the boundary value problem

*s*taken along

*γ*, and

are satisfied.

*h*, defined as the set of nodes

Let ${\gamma}_{j}^{h}$ be the set of nodes on the interior of ${\gamma}_{j}$, and let ${\dot{\gamma}}_{j}^{h}={\gamma}_{j}\cap {\gamma}_{j+1}$, ${\gamma}^{h}=\bigcup ({\gamma}_{j}^{h}\cup {\dot{\gamma}}_{j}^{h})$, ${\overline{\mathrm{\Pi}}}^{h}={\mathrm{\Pi}}^{h}\cup {\gamma}^{h}$. Also let ${\mathrm{\Pi}}^{\ast h}$ denote the set of nodes whose distance from the boundary *γ* of $\overline{\mathrm{\Pi}}$ is $\frac{h}{2}$ and ${\mathrm{\Pi}}^{0h}={\mathrm{\Pi}}^{h}\mathrm{\setminus}{\mathrm{\Pi}}^{\ast h}$.

From formulae (2.9) and (2.10) it follows that the coefficients of the expressions $Su(x,y)$ and ${S}_{j}^{\ast}u(x,y)$ are non-negative, and their sums do not exceed one. Hence, on the basis of the maximum principle, it follows that the solution of system (2.6)-(2.8) exists and it is unique (see [11]).

Everywhere below we will denote constants which are independent of *h* and of the cofactors on their right by $c,{c}_{0},{c}_{1},\dots $ , generally using the same notation for different constants for simplicity.

**Lemma 2.1**

*Let*

*and*

*where*${f}_{h}$, ${\overline{f}}_{h}$, ${\overline{f}}_{h}^{\ast}$

*and*${\overline{\eta}}_{h}$

*are arbitrary grid functions*.

*If the conditions*

*are satisfied*,

*then*

*Proof* The proof of this lemma is similar to the proof of the comparison theorem (see Ch. 4 in [11]). □

**Theorem 2.2**

*Let*

*u*

*be the solution of problem*(2.1), (2.2)

*and*${u}_{h}$

*be the solution of system*(2.6)-(2.8),

*then*

*Proof*Let

*u*is the trace of the solution of problem (2.1), (2.2) on ${\overline{\mathrm{\Pi}}}^{h}$, and ${u}_{h}$ is the solution of system (2.6)-(2.8). Then, the error function ${\u03f5}_{h}$ satisfies the following system:

are the truncation errors of equations (2.6) and (2.7), respectively.

□

**Remark 2.3**Estimation (2.12) remains true when ${E}_{jh}^{\ast}({\phi}_{j})$ in system (2.6)-(2.8) is replaced by

## 3 Construction of the fourth order matching operator

*u*on Ω with $u\in {C}^{4,0}(\overline{\mathrm{\Omega}})$, by Taylor’s formula, any point $(x,y)\in \mathrm{\Omega}$ can be represented as

Let ${\mathrm{\Pi}}_{0}$ denote the set of points $P\in \mathrm{\Pi}$ such that all the nodes ${P}_{k}$ to determine the expression ${S}^{4}u$ belong to ${\overline{\mathrm{\Pi}}}^{h}$, and ${\mathrm{\Pi}}_{01}$ contain the points *P*, where some of the nodes ${P}_{k}$ emerge through the side ${\gamma}_{j}$, $j=1,2,3,4$. We construct the fourth order matching operator ${S}^{4}$ by considering the cases when the point *P* belongs to one of the sets ${\mathrm{\Pi}}_{0}$ or ${\mathrm{\Pi}}_{01}$.

*Case 1.* The point $P\in {\mathrm{\Pi}}_{0}$ lies on the line connecting two neighboring grid nodes (a grid line).

*x*along the grid line, so that $P=P(\delta h,0)$, $0<\delta \le 1/2$, and take the nodes.

*u*, we obtain the equation

*x*-axis. Since $Im{z}^{k}=0$, $k=1,2,3$ for $y=0$, and odd with respect to

*y*, and $Re{z}^{k}$, $k=0,1,2,3$, is even with respect to

*y*, from (3.4) we have

*P*, where

**Remark 3.1** When $1/2<\delta <1$, the node ${P}_{1}$, which is closest to *P*, is taken as the origin.

*Case* 2. The point $P\in {\mathrm{\Pi}}_{0}$ lies inside a grid cell of the hexagonal grid.

*x*along the grid line, so that

*P*has the coordinates $P(\delta h,\frac{\sqrt{3}h\kappa}{2})$, where $0<\delta ,\kappa \le 1/2$. We form an artificial grid by taking the following points:

*P*the expression

From the distribution of the nodes it becomes obvious that only 17 nodes are needed for this approximation (see Figure 2).

*Type A*and

*Type B*, as shown in Figure 1.

*Type A*with $0<\delta ,\kappa \le 1/2$. The nodes used in ${S}^{4}u$ are shown in Figure 2.

In the case $1/2<\delta <1$, $0<\kappa \le 1/2$, the 17 nodes used have the same distribution as the reflection of the nodes in Figure 2 about the line $x=0$. In the cases $0<\delta \le 1/2$, $1/2<\kappa <1$ and $1/2<\delta ,\kappa <1$, the nodes for ${S}^{4}$ are defined analogously.

In the case when *P* falls into a triangle of *Type B*, we rotate the artificial grids formed for *Type A* with an angle of 180^{∘}, for all four cases of *δ* and *κ* specified earlier.

*Case 3*. $P\in {\mathrm{\Pi}}_{01}$, where $u={\phi}_{j}$ on the side ${\gamma}_{j}$, $j=1,2,3,4$, and ${\phi}_{j}\in {C}^{4,\lambda}({\gamma}_{j})$, $0<\lambda <1$.

*P*lies on the positive

*y*

*axis*, and the

*x*

*axis*is in the direction of the vertex ${A}_{j+1}$ along ${\gamma}_{j}$. It is obvious that ${\sum}_{k=1}^{3}{b}_{k}Im{z}^{k}=0$ if $y=0$, where $z=x+iy$. Hence, when the function ${\phi}_{j}\in {C}^{4,\lambda}({\gamma}_{j})$, $0<\lambda <1$, is represented using Taylor’s formula about the point $x=0$ in the neighborhood $|z|\le 4h$ of the origin, we define ${a}_{k}$, $k=0,1,2,3$, of (3.1) as

*u*of problem (2.1), (2.2) at any $P\in {\mathrm{\Pi}}_{01}$

**Remark 3.2** We obtain the representation (3.13), with a less number of grid nodes ${P}_{j}$ in (3.10) or (3.11) for the points on the boundary *γ* of Π.

**Theorem 3.3**

*Let the boundary functions*${\phi}_{j}$, $j=1,2,3,4$,

*in problem*(2.1), (2.2)

*satisfy the conditions*

*Then*

*where* *u* *is the exact solution of problem* (2.1), (2.2).

*Proof* According to Theorem 3.1 in [15], from conditions (3.15) and (3.16) it follows that $u\in {C}^{4,\lambda}(\overline{\mathrm{\Pi}})$. Then on the basis of (3.1), (3.5), (3.8), (3.13), and Remark 3.2, we obtain inequality (3.17). □

where ${u}_{h}$ is the solution of the finite difference problem (2.6)-(2.8).

**Theorem 3.4**

*Let conditions*(2.3)

*and*(2.4)

*be satisfied*.

*Then the function*${\tilde{u}}_{h}$

*is continuous on*$\overline{\mathrm{\Pi}}$,

*and*

*where* *u* *is the solution of problem* (2.1), (2.2).

*Proof*From the construction of the expression ${S}^{4}({u}_{h},\phi )$ it follows that ${\stackrel{\u02c6}{u}}_{h}={u}_{h}$ on ${\mathrm{\Pi}}^{h}$, and ${\stackrel{\u02c6}{u}}_{h}={\phi}_{j}$ on ${\gamma}_{j}^{h}$, $j=1,2,3,4$. The continuity of ${\stackrel{\u02c6}{u}}_{h}$ on Π follows from the continuity ${S}^{4}({u}_{h},\phi )$ on each closed triangle Type

*A*and Type

*B*, and from the equality ${\stackrel{\u02c6}{u}}_{h}={u}_{h}$ on ${\mathrm{\Pi}}^{h}$. By Remark 3.2 and from the condition ${\stackrel{\u02c6}{u}}_{h}={\phi}_{j}$ on ${\gamma}_{j}^{h}$, $j=1,2,3,4$, the continuity of the function ${\stackrel{\u02c6}{u}}_{h}$ on the closed rectangle $\overline{\mathrm{\Pi}}$ follows. By virtue of (2.3) and (2.4) it follows that $u\in {C}^{6,\lambda}(\overline{\mathrm{\Pi}})$, $0<\lambda <1$ (see Theorem 3.1 in [15]). Then, on the basis of (3.6), (3.7), (3.9), (3.11) Theorem 2.2, Theorem 3.3 and (3.18), we obtain

□

## 4 An application of the matching operator in the Block-Grid method

Let *G* be an open simply connected staircase polygon, let ${\gamma}_{j}$, $j=1,2,\dots ,N$, be its sides, including the ends, and let ${\alpha}_{j}\pi $, ${\alpha}_{j}\in \{\frac{1}{2},1,\frac{3}{2},2\}$, be the interior angle formed by the sides ${\gamma}_{j-1}$ and ${\gamma}_{j}$ (${\gamma}_{0}={\gamma}_{N}$). Furthermore, let *s* be the arc length measured along the boundary of *G* in the positive direction and ${s}_{j}$ be the value of *s* at the vertex ${A}_{j}={\gamma}_{j-1}\cap {\gamma}_{j}$, $({r}_{j},{\theta}_{j})$ be a polar system of coordinates with pole in ${A}_{j}$ and the angle ${\theta}_{j}$ taken counterclockwise from the side ${\gamma}_{j}$.

are satisfied. At the vertices ${A}_{j}$ for ${\alpha}_{j}\ne \frac{1}{2}$ no compatibility conditions for boundary functions are required; in particular the values of ${\phi}_{j-1}$ and ${\phi}_{j}$ at these vertices might be different. Additionally, it is required that when ${\alpha}_{j}\ne 1/2$, the boundary functions on ${\gamma}_{j-1}$ and ${\gamma}_{j}$ are given as algebraic polynomials of arclength *s* measured along *γ*.

*G*. We construct two fixed block sectors in the neighborhood of ${A}_{j}$, $j\in E$, denoted by ${T}_{j}^{i}={T}_{j}({r}_{ji})\subset G$, $i=1,2$, where $0<{r}_{j2}<{r}_{j1}<min\{{s}_{j+1}-{s}_{j},{s}_{j}-{s}_{j-1}\}$, ${T}_{j}(r)=\{({r}_{j},{\theta}_{j}):0<{r}_{j}<r,0<{\theta}_{j}<{\alpha}_{j}\pi \}$. On the closed sector ${\overline{T}}_{j}^{1}$, $j\in E$, we consider the function ${Q}_{j}({r}_{j},{\theta}_{j})$, which has the following properties:

- (i)
${Q}_{j}({r}_{j},{\theta}_{j})$ is harmonic and bounded on the open sector ${T}_{j}^{1}$;

- (ii)
continuous everywhere on ${\overline{T}}_{j}^{1}$ apart from the point ${A}_{j}$, $j\in E$ when ${\phi}_{j-1}\ne {\phi}_{j}$;

- (iii)
continuously differentiable on ${\overline{T}}_{j}^{1}\mathrm{\setminus}{A}_{j}$;

- (iv)
satisfies the given boundary conditions on ${\gamma}_{j-1}\cap {\overline{T}}_{j}^{1}$ and ${\gamma}_{j}\cap {\overline{T}}_{j}^{1}$, $j\in E$.

The function ${Q}_{j}({r}_{j},{\theta}_{j})$ with properties (i)-(iv) is given in [17].

is the kernel of the Poisson integral for a unit circle.

The approximation of the integral representation given in the following lemma is used to construct an approximate solution of problem (4.1) around the singular vertices ${A}_{j}$, $j\in E$.

**Lemma 4.1**

*The solution*

*u*

*of problem*(2.1), (2.2)

*can be represented on*${\overline{T}}_{j}^{2}\mathrm{\setminus}{V}_{j}$, $j\in E$,

*in the form*

*where* ${V}_{j}$ *is the curvilinear part of the boundary of the sector* ${T}_{j}^{2}$.

*Proof* The proof follows from Theorems 3.1 and 5.1 in [17]. □

We define the approximate solution in the whole polygon *G* by applying a version of the Block-Grid method introduced in [8] (see also [9]).

*G*, with $0<{r}_{j4}<{r}_{j3}<{r}_{j2}$, ${r}_{j3}=({r}_{j2}+{r}_{j4})/2$ and ${T}_{k}^{3}\cap {T}_{l}^{3}=\mathrm{\varnothing}$, $k\ne l$, where $k,l\in E$. Furthermore, let ${G}_{T}=G\mathrm{\setminus}({\bigcup}_{j\in E}{T}_{j}^{4})$. We give the description of the Block-Grid method on a hexagonal grid:

- (i)
All singular corners ${A}_{j}$, $j\in E$, are separated by the double sectors ${T}_{j}^{i}={T}_{j}({r}_{ji})$, $i=2,3$, with ${r}_{j3}<{r}_{j2}$, ${T}_{k}^{2}\cap {T}_{l}^{3}=\mathrm{\varnothing}$, $k\ne l$ and $k,l\in E$. The polygon is covered by overlapping rectangles ${\mathrm{\Pi}}_{k}$, $k=1,2,\dots ,M$, and sectors ${T}_{j}^{3}$, $j\in E$, such that the distance from ${\mathrm{\Pi}}_{k}$ to a singular point ${A}_{j}$ is greater than ${r}_{j4}$ for all $k=1,2,\dots ,M$ and $j\in E$.

- (ii)
On each rectangle ${\mathrm{\Pi}}_{k}$, the seven point difference scheme for the approximation of Laplace’s equation on a hexagonal grid is used, with step size ${h}_{k}\le h$,

*h*is a parameter, and as an approximate solution on ${\overline{T}}_{j}^{3}$, $j\in E$, the harmonic function (4.6) is used. - (iii)
We use the matching operator ${S}^{4}$ constructed in Section 3 to connect the subsystems.

For obtaining the numerical solution of the algebraic system of equations (2.1), (2.2), we outline the procedure: Let ${\mathrm{\Pi}}_{k}\subset {G}_{T}$, $k=1,2,\dots ,M$, be certain fixed open rectangles with sides ${a}_{1k}$ and ${a}_{2k}$ parallel to the sides of *G*, and $G\subset ({\bigcup}_{k=1}^{M}{\mathrm{\Pi}}_{k})\cup ({\bigcup}_{j\in E}{T}_{j}^{3})\subset G$. We use ${\eta}_{k}$ to denote the boundary of the rectangle ${\mathrm{\Pi}}_{k}$, ${V}_{j}$ is the curvilinear part of the boundary of the sector ${T}_{j}^{2}$ and ${t}_{j}=({\bigcup}_{k=1}^{M}{\eta}_{k})\cap {\overline{T}}_{j}^{3}$.

The overlapping condition is imposed on the arrangement of the rectangles ${\mathrm{\Pi}}_{k}$, $k=1,2,\dots ,M$: any point *P* lying on ${\eta}_{k}\cap {G}_{T}$, $1\le k\le M$, or located on ${V}_{j}\cap G$, $j\in E$, falls inside at least one of the rectangles ${\mathrm{\Pi}}_{k(P),}1\le k(P)\le M$, where the distance from *P* to ${G}_{T}\cap {\eta}_{k(P)}$ is not less than some constant ${\varkappa}_{0}$ independent of *P*. The quantity ${\varkappa}_{0}$ is called the gluing depth of the rectangles ${\mathrm{\Pi}}_{k}$, $k=1,2,\dots ,M$.

where $1\le k,m\le M$, $j\in E$, $\phi ={\{{\phi}_{j}\}}_{j=1}^{N}$; $S{u}_{h}$, ${S}_{m}^{\ast}{u}_{h}$ and ${E}_{mh}^{\ast}({\phi}_{m})$ are defined as equations (2.9), (2.10), and (2.11) in Section 2, respectively.

The solution of the system of equations (4.7)-(4.11) is a numerical solution of problem (2.1), (2.2) on ${\overline{G}}_{T}$ (‘nonsingular’ part of the polygon *G*).

**Theorem 4.2** *There is a natural number* ${n}_{0}$ *such that for all* $n\ge {n}_{0}$ *and* $h\in (0,\frac{{\varkappa}_{0}}{4}]$, *where* ${\varkappa}_{0}$ *is the gluing depth*, *the system of equations* (4.7)-(4.11) *has a unique solution*.

*Proof*Let ${v}_{h}$ be a solution of the system of equations

*S*and ${S}_{j}^{\ast}$, and the forms (3.5), (3.6), (3.7), (3.8), (3.9), and (3.10)-(3.11) of the matching operator ${S}^{4}$ and by the maximum principle (see Ch. 4, [11]) it follows that the nonzero maximum value of the function ${v}_{h}$ can be at the points on ${\bigcup}_{j\in E}{t}_{j}^{h}$. From estimation (2.29) in [18] the existence of the positive constants ${n}_{0}$ and $\sigma >0$ such that for $n\ge {n}_{0}$

follows. However, taking (4.14) into account in (4.13) we have that the nonzero maximum value can not be at the points on ${\bigcup}_{j\in E}{t}_{j}^{h}$ either. Since the set ${\overline{G}}_{\ast}^{h,n}$ is connected, from equation (4.12) it follows that ${max}_{{\overline{G}}_{\ast}^{h,n}}|{v}_{h}|=0$. □

is the approximation of the integral representation (4.6) with the use of the composite mid-point rule. We use the function ${U}_{h}({r}_{j},{\theta}_{j})$ as an approximate solution of problem (2.1), (2.2) on the closed block ${\overline{T}}_{j}^{3}$, $j\in E$ (‘singular’ parts of the polygon *G*).

*u*is the trace of the solution of (2.1), (2.2) on ${\overline{G}}_{\ast}^{h,n}$. On the basis of (2.1), (2.2), (4.7)-(4.11), and (4.16), ${\u03f5}_{h}$ satisfies the following difference equations:

*G*, at a distance greater than ${r}_{j4}>0$ independent of

*h*, by virtue of the conditions (2.3) and (2.4), up to sixth order derivatives of the solution of problem (2.1), (2.2) are bounded on ${\bigcup}_{k=1}^{M}{\mathrm{\Pi}}_{k}$. Then, by Taylor’s formula, from (4.21) we obtain

**Theorem 4.3**

*There exists a natural number*${n}_{0}$

*such that for all*$n\ge max\{{n}_{0},[{ln}^{1+\varkappa}{h}^{-1}]\}$, $\varkappa >0$

*being a fixed number*,

*Proof* The proof follows from estimations (4.23)-(4.25) and the principle of maximum by analogy to the proof of Theorem 6.1 in [9]. □

**Theorem 4.4**

*Let*${u}_{h}$

*be the solution of the system of equations*(4.7)-(4.11),

*and let an approximate solution of problem*(2.1), (2.2)

*be found on blocks*${\overline{T}}_{j}^{3}$, $j\in E$,

*by*(4.15).

*There is a natural number*${n}_{0}$

*such that for all*$n\ge max\{{n}_{0},[{ln}^{1+\varkappa}{h}^{-1}]\}$, $\varkappa >0$

*being a fixed number*,

*the following estimations hold*:

*where* $0\le q\le p$, $p=0,1,\dots $ .

*Proof* Estimation (4.27) is obtained from the integral representation (4.6) and formula (4.15) by using estimations (4.25) and (4.26). Estimation (4.28) for $p=0,1,\dots $ is obtained by using inequality (4.27) and Lemma 6.12 in [17]. □

## 5 Numerical results and discussion

To support the theoretical results, numerical examples have been solved in two different domains.

**Example 5.1** Approximation in a rectangular domain.

with the boundary *γ*. The hexagonal grid (2.5), denoted ${\mathrm{\Pi}}^{h}$, is assigned to the grid Π, where ${\gamma}^{h}$ denotes the set of nodes on the boundary *γ*.

is the exact solution in the rectangular domain.

This example is solved using the incomplete LU-decomposition method (see [19], Ch. 5), and all the calculations are carried out in double precision. As a convergence test, we request the maximum residual error to be 10^{−12}, and as a starting point ${v}_{h}=0$ is used.

*i.e.*, ${\parallel {\u03f5}_{h}\parallel}_{{\overline{\mathrm{\Pi}}}^{h}}={max}_{{\overline{\mathrm{\Pi}}}^{h}}|v-{v}_{h}|$. The ratios ${R}_{{\overline{\mathrm{\Pi}}}^{h}}^{m}=\frac{{\parallel v-{v}_{{2}^{-m}}\parallel}_{{\overline{\mathrm{\Pi}}}^{h}}}{{\parallel v-{v}_{{2}^{-(m+1)}}\parallel}_{{\overline{\mathrm{\Pi}}}^{h}}}$ have also been included, where $O({h}^{4})$ order of accuracy corresponds to 2

^{4}of the value ${R}_{{\overline{\mathrm{\Pi}}}^{h}}^{m}$.

**Approximation in a rectangle with smooth exact solution**

h | ${\mathbf{\parallel}{\mathit{\u03f5}}_{\mathit{h}}\mathbf{\parallel}}_{{\overline{\mathbf{\Pi}}}^{\mathit{h}}}$ | ${\mathit{R}}_{{\overline{\mathbf{\Pi}}}^{\mathit{h}}}^{\mathit{m}}$ |
---|---|---|

2 | 1.15727 × 10 | |

2 | 7.33698 × 10 | 15.7731 |

2 | 4.58658 × 10 | 15.9966 |

2 | 2.89896 × 10 | 15.4765 |

2 | 2.02482 × 10 | 14.3171 |

**Example 5.2** Less smooth function.

**Approximation in a rectangle with less smooth exact solution**

h | ${\mathbf{\parallel}{\mathit{\u03f5}}_{\mathit{h}}\mathbf{\parallel}}_{{\mathbf{\Pi}}^{\mathit{h}}}$ | ${\mathit{R}}_{{\mathbf{\Pi}}^{\mathit{h}}}^{\mathit{m}}$ |
---|---|---|

2 | 1.9285677 × 10 | |

2 | 1.1998304 × 10 | 16.0737 |

2 | 7.4809403 × 10 | 16.0385 |

2 | 4.67808169 × 10 | 15.9915 |

2 | 2.922653 × 10 | 16.0063 |

**Example 5.3** The matching operator.

**Results for approximation of inner points with the matching operator**

${S}^{4}u$ | 1.56912199976621 |

Exact | 1.56912199014188 |

$|{\u03f5}_{h}({P}_{1})|$ | 9.624329 × 10 |

**Results for approximation of near boundary points with the matching operator**

h | $\mathbf{|}{\mathit{\u03f5}}_{\mathit{h}}\mathbf{(}{\mathit{P}}_{\mathbf{2}}\mathbf{)}\mathbf{|}$ | $\mathbf{|}{\mathit{\u03f5}}_{\mathit{h}}\mathbf{(}{\mathit{P}}_{\mathbf{3}}\mathbf{)}\mathbf{|}$ |
---|---|---|

2 | 1.716286 × 10 | 3.85255412 × 10 |

2 | 5.385032 × 10 | 4.3619541 × 10 |

2 | 2.2436186 × 10 | 3.41679468 × 10 |

2 | 2.4942270 × 10 | 2.8927971 × 10 |

**Example 5.4** Approximation in an L-shaped domain.

where ${\mathrm{\Omega}}_{1}^{s}=\{(x,y):0\le x\le \frac{1}{2},-\frac{\sqrt{3}}{4}\le y\le 0\}$, and the nonsingular part is ${\mathrm{\Omega}}^{NS}=\mathrm{\Omega}/{\mathrm{\Omega}}^{S}$. The system of Block-Grid equations is solved by Schwarz’s alternating method. The quadrature nodes on the circular arc, whose radius is taken as 0.75, and the overlapping boundaries of the rectangles are renewed after each Schwarz’s iteration. The nodes on the circular arc, the inner boundaries of the overlapping rectangles and the nodes in the set ${\bigcup}_{k=1}^{4}{\eta}_{k0}^{\ast h}$ are renewed using the matching operator constructed above. Since the boundary functions are harmonic polynomials on the sides ${\gamma}_{1}$ and ${\gamma}_{0}\equiv {\gamma}_{6}$, the nodes whose neighbors emerge outside of the domain from these sides are approximated using the function $u-{Q}_{1}$. Finally, the solution on the singular part is approximated using the integral representation [3, 9].

*N*is the number of quadrature nodes,

*h*is the mesh size of the hexagonal grid.

**The order of convergence in ‘nonsingular’ part**

(h,N) | ${\mathbf{\parallel}{\mathit{\u03f5}}_{\mathit{h}}\mathbf{\parallel}}_{{\mathbf{\Omega}}^{\mathit{N}\mathit{S}}}$ | ${\mathit{R}}_{{\mathbf{\Omega}}^{\mathit{N}\mathit{S}}}^{\mathit{m}}$ |
---|---|---|

(2 | 9.9742 × 10 | 27.9237 |

(2 | 3.57195 × 10 | |

(2 | 8.2649 × 10 | 15.3796 |

(2 | 5.373923 × 10 | |

(2 | 5.373923 × 10 | 15.7215 |

(2 | 3.418192 × 10 |

**The order of convergence in ‘singular’ part**

(h,N) | ${\mathbf{\parallel}{\mathit{\u03f5}}_{\mathit{h}}\mathbf{\parallel}}_{{\mathbf{\Omega}}^{\mathit{S}}}$ | ${\mathit{R}}_{{\mathbf{\Omega}}^{\mathit{S}}}^{\mathit{m}}$ |
---|---|---|

(2 | 9.9742 × 10 | 11.7569 |

(2 | 3.57195 × 10 | |

(2 | 8.2649 × 10 | 14.9731 |

(2 | 5.373923 × 10 | |

(2 | 5.373923 × 10 | 16.5665 |

(2 | 3.418192 × 10 |

## 6 Conclusions

The fourth order classical 7-point scheme on a hexagonal grid is applied on a rectangular domain. This leads to some of the nodes emerging from the two parallel sides while approximating points whose distance from the boundary is $\frac{h}{2}$. This problem was overcome by devising an approximating equation for near-boundary nodes, which included the use of three inner nodes around the point of evaluation and three points lying on the boundary. The fourth order matching operator has been constructed on the hexagonal grid functions. It is applied to construct a fourth order accurate interpolating function, on the closed rectangle, for the numerical solution of Laplace’s equation on the hexagonal grids. Further, the matching operator and the hexagonal grid approximation in a rectangle are used to obtain and justify the Block-Grid method in solving the Dirichlet problem for Laplace’s equation on staircase polygons.

Numerical examples have been provided as an illustration of the theoretical results mentioned above.

The matching operator constructed can be applied to many other forms of domain decomposition or combined methods. It will also be an interesting study to extend the approximation of the methods to using mixed or Neumann boundary conditions.

## Declarations

## Authors’ Affiliations

## References

- Volkov EA: Method of composite meshes for finite and infinite domain with a piecewise-smooth boundary.
*Tr. Mat. Inst. Steklova*1968, 96: 117-148.Google Scholar - Volkov EA: On the method of composite meshes for Laplace’s equation on polygons.
*Tr. Mat. Inst. Steklova*1976, 140: 68-102.Google Scholar - Dosiyev AA: A fourth order accurate composite grids method for solving Laplace’s boundary value problems with singularities.
*Comput. Math. Math. Phys.*2002, 42(6):832-849.MathSciNetGoogle Scholar - Dosiyev AA, Buranay SC: A fourth order accurate difference-analytical method for solving Laplace’s boundary value problem with singularities. In
*Mathematical Methods in Engineers*. Edited by: Tas K, Machado JAT, Baleanu D. Springer, Berlin; 2007:167-176.View ArticleGoogle Scholar - Dosiyev AA, Buranay SC:A fourth-order block-grid method for solving Laplace’s equation on a staircase polygon with boundary functions in ${C}^{k,\lambda}$.
*Abstr. Appl. Anal.*2013., 2013: Article ID 864865 10.1155/2013/864865Google Scholar - Dosiyev AA, Buranay SC, Subasi D: The highly accurate block-grid method in solving Laplace’s equation for nonanalytic boundary condition with corner singularity.
*Comput. Math. Appl.*2012, 64: 612-632.MathSciNetView ArticleGoogle Scholar - Dosiyev AA: A block-grid method for increasing accuracy in the solution of the Laplace equation on polygons.
*Russ. Acad. Sci. Dokl. Math.*1992, 45(2):396-399.MathSciNetGoogle Scholar - Dosiyev AA: A block-grid method of increased accuracy for solving Dirichlet’s problem for Laplace’s equation on polygons.
*Comput. Math. Math. Phys.*1994, 34(5):591-604.MathSciNetGoogle Scholar - Dosiyev AA: The high accurate block-grid method for solving Laplace’s boundary value problem with singularities.
*SIAM J. Numer. Anal.*2004, 42(1):153-178. 10.1137/S0036142900382715MATHMathSciNetView ArticleGoogle Scholar - Volkov EA, Dosiyev AA: A high accurate composite grid method for solving Laplace’s boundary value problems with singularities.
*Russ. J. Numer. Anal. Math. Model.*2007, 22(3):291-307.MATHMathSciNetView ArticleGoogle Scholar - Samarskii AA:
*The Theory of Difference Schemes*. Dekker, New York; 2001.MATHView ArticleGoogle Scholar - Ničkovic S, Gavrilov MB, Tošic IA: Geostrophic adjustment on hexagonal grids.
*Mon. Weather Rev.*2002, 130(3):668-683. 10.1175/1520-0493(2002)130<0668:GAOHG>2.0.CO;2View ArticleGoogle Scholar - Majewski D, Liermann D, Prohl P, Ritter B, Buchhold M, Hanisch T, Paul G, Wergen W, Baumgardner J: The operational global icosahedral-hexagonal gridpoint model GME: description and high-resolution tests.
*Mon. Weather Rev.*2002, 130(2):319-338. 10.1175/1520-0493(2002)130<0319:TOGIHG>2.0.CO;2View ArticleGoogle Scholar - Sadourny R, Morel P: A finite-difference approximation of the primitive equations for a hexagonal grid on a plane.
*Mon. Weather Rev.*1969, 97(6):439-445. 10.1175/1520-0493(1969)097<0439:AFAOTP>2.3.CO;2View ArticleGoogle Scholar - Volkov EA: On differentiability properties of solutions of boundary value problems for the Laplace and Poisson equations on a rectangle.
*Proc. Steklov Inst. Math.*1965, 77: 101-126.MATHGoogle Scholar - Kantorovich LV, Krylov VI:
*Approximate Methods of Higher Analysis*. Noordhoff, Groningen; 1958.MATHGoogle Scholar - Volkov EA:
*Block Method for Solving the Laplace Equation and Constructing Conformal Mappings*. CRC Press, Boca Raton; 1994.MATHGoogle Scholar - Volkov EA: An exponentially converging method for solving Laplace’s equation on polygons.
*Math. USSR Sb.*1980, 37(3):295-325. 10.1070/SM1980v037n03ABEH001954MATHView ArticleGoogle Scholar - Smith GD:
*Numerical Solution of Partial Differential Equations: Finite Difference Methods*. Oxford University Press, Oxford; 1985.MATHGoogle Scholar

## Copyright

This article is published under license to BioMed Central Ltd. This is an Open Access article distributed under the terms of the Creative Commons Attribution License (http://creativecommons.org/licenses/by/2.0), which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly credited.