=Paper= {{Paper |id=Vol-1839/MIT2016-p39 |storemode=property |title= Using of the mosaic-skeleton method for numerical solution of three-dimensional scalar diffraction problems |pdfUrl=https://ceur-ws.org/Vol-1839/MIT2016-p39.pdf |volume=Vol-1839 |authors=Sergei Smagin,Aleksei Kashirin,Mariia Taltykina }} == Using of the mosaic-skeleton method for numerical solution of three-dimensional scalar diffraction problems== https://ceur-ws.org/Vol-1839/MIT2016-p39.pdf
              Mathematical and Information Technologies, MIT-2016 β€” Mathematical modeling

  Using of the Mosaic-skeleton Method for
Numerical Solution of Three-Dimensional Scalar
            Diffraction Problems

             Sergei Smagin, Aleksei Kashirin, and Mariia Taltykina

               Computing Center of FEB RAS, Khabarovsk, Russia
            smagin@as.khb.ru,elomer@mail.ru,taltykina@yandex.ru
                     http://www.ccfebras.ru/en/general



      Abstract. In the paper three-dimensional stationary scalar diffraction
      problems are considered. They are formulated in the form of boundary
      weakly singular Fredholm integral equations of the first kind with a single
      function, each of which is equivalent to the original problem. These equa-
      tions are approximated by systems of linear algebraic equations, which
      are then solved numerically by an iterative method. In order to reduce
      the computational complexity, the mosaic-skeleton method is used at the
      stage of numerical solution of the systems.

      Keywords: diffraction problem, Helmholtz equation, integral equation,
      mosaic-skeleton method, GMRES


1   Introduction

Three-dimensional stationary diffraction problems of acoustic waves are widely
used in science and technology. Most often such problems are solved numeri-
cally, since their analytical solutions can be constructed only in simplest cases.
The method of numerical solution of the initial problems should take into con-
sideration that the solutions are found in unbounded domains, must satisfy the
radiation condition at infinity, and are rapidly oscillating functions at large wave
numbers. Keeping these limitations in mind, it is preferable to use methods of
the potential theory for creating the algorithms for numerical solution. In this
case, the three-dimensional problem in an unbounded domain can be reduced to
a two-dimensional problem formulated on a closed surface of inclusion.
    Using the methods of potential theory, two equivalent weakly singular bound-
ary Fredholm integral equations of the first kind with one unknown function
(density) [1–3] are constructed for the problem of diffraction. A special method of
averaging kernels of weakly singular integral operators [4, 5] is used to build their
discrete analogs. In this case, the unknown density is sought as a linear combi-
nation of continuously differentiable finite functions forming a partition of unity
on the surface of inclusion. In the process of discretization of the integral equa-
tion, the surface integrals are approximated by expressions containing integrals
over space R3 , which are then calculated analytically. This allows calculation of

                                                                                     458
Mathematical and Information Technologies, MIT-2016 β€” Mathematical modeling

coefficients of systems of linear algebraic equations (SLAE), approximating cor-
responding integral equations, by very simple formulas. Once the approximate
solution of integral equation is found, the required approximate solution of the
diffraction problem by using integral representations is restored in any point of
space.
    Matrices of the obtained SLAE are dense. The complexity of solving such
SLAE by direct methods is 𝑂(𝑛3 ), where 𝑛 is the order of the system. It was
established earlier [1] that the use of the generalized minimal residual method
(GMRES) [6] allows to lower the complexity to 𝑂(π‘šπ‘›2 ), where π‘š is the number
of iterations, which is much less than 𝑛 and barely depends on it. The most time-
consuming part of the algorithm of GMRES is the use of multiple matrix-vector
multiplication. The time expenses on multiplication can be lowered using the
”quick” method, the complexity of which is π‘œ(𝑛2 ), when 𝑛 β†’ ∞. The mosaic-
skeleton method [7] – [11] can be used for already developed software for solving
problems of mathematical physics. Its basic idea is to approximate the large
blocks of dense matrices by low-rank matrices. As a result, the SLAE matrix is
not fully computed and stored, but its approximation is used in the procedure
of matrix-vector multiplication. In this case, the complexity of multiplication of
this approximation by a vector is almost linear.
    To implement the method in an already established program for numeri-
cal solution of diffraction problems, it is only necessary to add the procedure
of creating and storing the approximate matrix and to change the module of
matrix-vector multiplication, whereas the method of sampling and the calcu-
lation procedure of the elements of the original matrix remain the same. An
additional advantage of this method is that, due to the cost effective storage of
the approximate matrix, the requirements for computer resources are reduced.
    The present work outlines the numerical method for solving three-dimensional
problems of diffraction formulated as boundary Fredholm integral equations of
the first kind and describes the use of the mosaic-skeleton method for the nu-
merical solution of such problems. It also presents the results of numerical ex-
periments, which allow us to judge the effectiveness of the approach.


2     The initial problem and its equivalent integral
      equations

Let us consider a three-dimensional Euclidean space R3 with orthogonal coordi-
nate system π‘œπ‘₯1 π‘₯2 π‘₯3 , filled with a homogeneous isotropic medium with density
πœŒπ‘’ , with speed of propagation of acoustic oscillations 𝑐𝑒 and absorption coeffi-
cient 𝛾𝑒 , which has a homogeneous isotropic inclusion, limited by the arbitrary
closed surface 𝛀 , with density πœŒπ‘– , speed of sound 𝑐𝑖 and absorption coefficient
𝛾𝑖 . Let’s denote domains R3 , occupied by the inclusion and containing medium,
by 𝛺𝑖 and 𝛺𝑒 (𝛺𝑒 = R3 βˆ–π›Ί     ¯𝑖 ).
     Suppose there are harmonic sound sources in space 𝛺𝑒 , stimulating initial
pressure wave field 𝑒0 in the containing medium. Sound waves come through
space and scatter, reaching the inclusion. As a result, there appear reflected

459
              Mathematical and Information Technologies, MIT-2016 β€” Mathematical modeling

waves in domain 𝛺𝑒 , and transmitted waves in domain 𝛺𝑖 . Therefore, the com-
plex amplitude of the complete field of pressures 𝑒 can be presented as:
                                {οΈ‚
                                   𝑒𝑖 ,      π‘₯ ∈ 𝛺𝑖 ,
                           𝑒=
                                   𝑒𝑒 + 𝑒0 , π‘₯ ∈ 𝛺𝑒 ,

where 𝑒𝑖 , 𝑒𝑒 are complex amplitudes of the pressure field of transmitted and
reflected wave fields.
    The inclusion, initial, reflected and transmitted pressure wave fields are
shown in the Figure 1.




      Fig. 1. Wave propagation in the inclusion and in the containing medium


   Let’s formulate the initial problem.

Problem 1. In bounded domain 𝛺𝑖 of three-dimensional Euclidean space R3 and
unbounded domain 𝛺𝑒 = R3 βˆ–π›Ί      ¯𝑖 , separated by closed surface 𝛀 ∈ 𝐢 π‘Ÿ+𝛽 , π‘Ÿ + 𝛽 >
1, find complex-valued functions 𝑒𝑖(𝑒) ∈ 𝐻 1 (𝛺𝑖(𝑒) , π›₯), which satisfy integral
identities
    ∫︁                            ∫︁
                 *          2                 *
                                                                       (οΈ€    )οΈ€
        βˆ‡π‘’π‘–(𝑒) βˆ‡π‘£π‘–(𝑒) 𝑑π‘₯ βˆ’ π‘˜π‘–(𝑒)       𝑒𝑖(𝑒) 𝑣𝑖(𝑒) 𝑑π‘₯ = 0  βˆ€π‘£π‘–(𝑒) ∈ 𝐻01 𝛺𝑖(𝑒) , (1)
  𝛺𝑖(𝑒)                            𝛺𝑖(𝑒)


conjugation conditions on the material interface between 𝛺𝑖 and 𝛺𝑒
                 βŸ¨οΈ€ βˆ’         βŸ©οΈ€
                   𝑒𝑖 βˆ’ 𝑒+
                         𝑒 , πœ‡ 𝛀 = βŸ¨π‘“0 , πœ‡βŸ©π›€  βˆ€πœ‡ ∈ 𝐻 βˆ’1/2 (𝛀 ),                      (2)
             βŸ¨οΈ€                           βŸ©οΈ€
                  πœ‚, 𝑝𝑖 𝑁 βˆ’ 𝑒𝑖 βˆ’ 𝑝𝑒 𝑁 + 𝑒𝑒 𝛀 = βŸ¨πœ‚, 𝑝𝑒 𝑓1 βŸ©π›€   βˆ€πœ‚ ∈ 𝐻 1/2 (𝛀 ),
as well as the radiation condition at infinity
                                          (︁      )︁
                                               βˆ’1
                   πœ•π‘’π‘’ /πœ• |π‘₯| βˆ’ π‘–π‘˜π‘’ 𝑒𝑒 = π‘œ |π‘₯|       ,        |π‘₯| β†’ ∞,               (3)

if functions 𝑓0 ∈ 𝐻 1/2 (𝛀 ) and 𝑓1 ∈ 𝐻 βˆ’1/2 (𝛀 ) are set on the boundary 𝛀 .

                                                                                     460
Mathematical and Information Technologies, MIT-2016 β€” Mathematical modeling

    Here 𝑣 * is a complex conjugate function to 𝑣, ⟨·, Β·βŸ©π›€ is duality ratio on
𝐻 (𝛀 ) Γ— 𝐻 βˆ’1/2 (𝛀 ), which generalizes the inner product in 𝐻 0 (𝛀 ), 𝑒± ≑ 𝛾 Β± 𝑒,
  1/2

𝛾 βˆ’ : 𝐻 1 (𝛺𝑖 ) β†’ 𝐻 1/2 (𝛀 ), 𝛾 + : 𝐻 1 (𝛺𝑒 ) β†’ 𝐻 1/2 (𝛀 ) are trace operators, 𝑁 βˆ’ :
𝐻 1 (𝛺𝑖 , π›₯) β†’ 𝐻 βˆ’1/2 (𝛀 ), 𝑁 + : 𝐻 1 (𝛺𝑒 , π›₯) β†’ 𝐻 βˆ’1/2 (𝛀 ) are operators of normal
derivatives [12], 𝑓0 = 𝑒+           +
                         0 , 𝑓1 = 𝑁 𝑒 0 ,

          2
                 (οΈ€          )︀⧸︁                                      βˆ’2 βˆ’1
       π‘˜π‘–(𝑒) = πœ” πœ” + 𝑖𝛾𝑖(𝑒) 𝑐2𝑖(𝑒) , Im(π‘˜π‘–(𝑒) ) β‰₯ 0, 𝑝𝑖(𝑒) = 𝑐2𝑖(𝑒) π‘˜π‘–(𝑒) πœŒπ‘–(𝑒) ,

πœ” is a wave circular frequency, 𝑐𝑖(𝑒) > 0, πœŒπ‘–(𝑒) > 0, 𝛾𝑖(𝑒) β‰₯ 0. The definitions of
functional spaces used hereinafter are available in [12].
                                     1
Remark 1. If Im(π‘˜π‘’ ) = 0, then 𝑒𝑒 ∈ 𝐻loc (𝛺𝑒 , π›₯).
      In works [1], [2] the next theorem was proven.
Theorem 1. Problem 1 has no more than one solution.
     Let’s introduce the following notation
         (οΈ€        )οΈ€    βŸ¨οΈ€              βŸ©οΈ€   (οΈ€     )οΈ€     βŸ¨οΈ€                  βŸ©οΈ€
            𝐴𝑖(𝑒) π‘ž (π‘₯) ≑ 𝐺𝑖(𝑒) (π‘₯, Β·), π‘ž 𝛀 , 𝐡𝑖(𝑒) π‘ž (π‘₯) ≑ 𝑁π‘₯ 𝐺𝑖(𝑒) (π‘₯, Β·), π‘ž 𝛀 ,  (4)
(︁        )︁          βŸ¨οΈ€              βŸ©οΈ€                    (οΈ€             )οΈ€β§ΈοΈ€
    *
   𝐡𝑖(𝑒) π‘ž (π‘₯) ≑ 𝑁(Β·) 𝐺𝑖(𝑒) (π‘₯, Β·), π‘ž 𝛀 , 𝐺𝑖(𝑒) (π‘₯, 𝑦) = exp π‘–π‘˜π‘–(𝑒) |π‘₯ βˆ’ 𝑦| (4πœ‹ |π‘₯ βˆ’ 𝑦|).
      The solution to problem 1 will be sought in the form of potentials

                            𝑒𝑒 (π‘₯) = (𝐴𝑒 π‘ž) (π‘₯), π‘₯ ∈ 𝛺𝑒 ,                               (5)
                     (οΈ€    (οΈ€ +         )οΈ€      (οΈ€        )οΈ€)οΈ€
            𝑒𝑖 (π‘₯) = 𝑝𝑒𝑖 𝐴𝑖 𝑁 𝑒𝑒 + 𝑓1 βˆ’ 𝐡𝑖* 𝑒+     𝑒 + 𝑓0      (π‘₯),   π‘₯ ∈ 𝛺𝑖 ,
where π‘ž ∈ 𝐻 βˆ’1/2 (𝛀 ) is an unknown density, 𝑓0 ∈ 𝐻 1/2 (𝛀 ), 𝑓1 ∈ 𝐻 βˆ’1/2 (𝛀 ),
𝑝𝑒𝑖 = 𝑝𝑒 /𝑝𝑖 .
    The kernels of these integral operators are fundamental solutions of the
Helmholtz equations and their normal derivatives. Therefore, as shown in [2],
they satisfy identities (1) and radiation condition at infinity (3). In addition, the
fulfillment of the first of the matching conditions for them (2) automatically en-
tails the fulfillment of the second matching condition. Substituting potentials (5)
in the first matching condition, we obtain a weakly singular Fredholm integral
equation of the first kind for defining unknown density π‘ž:

                          βŸ¨πΆπ‘ž, πœ‡βŸ©π›€ = βŸ¨π‘“2 , πœ‡βŸ©π›€ βˆ€πœ‡ ∈ 𝐻 βˆ’1/2 (𝛀 ),                        (6)

where

      𝐢 = (0.5 + 𝐡𝑖* ) 𝐴𝑒 + 𝑝𝑒𝑖 𝐴𝑖 (0.5 βˆ’ 𝐡𝑒 ) , 𝑓2 = βˆ’ (0.5 + 𝐡𝑖* ) 𝑓0 + 𝑝𝑒𝑖 𝐴𝑖 𝑓1 .

    Problem 1 allows another equivalent formulation in the form of Fredholm
integral equation of the first kind with a weak singularity in the kernel [1]. We
shall seek its solution in the form

                              𝑒𝑖 (π‘₯) = (𝐴𝑖 π‘ž) (π‘₯),   π‘₯ ∈ 𝛺𝑖 ,                           (7)

461
               Mathematical and Information Technologies, MIT-2016 β€” Mathematical modeling
                   (οΈ€ (οΈ€              )οΈ€    (οΈ€       )οΈ€)οΈ€
           𝑒𝑒 (π‘₯) = 𝐴𝑒 𝑓1 βˆ’ 𝑝𝑖𝑒 𝑁 βˆ’ 𝑒𝑖 βˆ’ 𝐡𝑒* 𝑓0 βˆ’ π‘’βˆ’
                                                   𝑖      (π‘₯),              π‘₯ ∈ 𝛺𝑒 ,
where π‘ž ∈ 𝐻 βˆ’1/2 (𝛀 ) is an unknown density, 𝑓0 ∈ 𝐻 1/2 (𝛀 ), 𝑓1 ∈ 𝐻 βˆ’1/2 (𝛀 ),
𝑝𝑖𝑒 = 𝑝𝑖 /𝑝𝑒 .
    In this case problem 1 is reduced to equation

                         βŸ¨π·π‘ž, πœ‡βŸ©π›€ = βŸ¨π‘“0 , πœ‡βŸ©π›€ βˆ€πœ‡ ∈ 𝐻 βˆ’1/2 (𝛀 ),                            (8)

                        𝐷 = (0.5 βˆ’ 𝐡𝑒* ) 𝐴𝑖 + 𝑝𝑖𝑒 𝐴𝑒 (0.5 + 𝐡𝑖 ) .
     The next theorem is proved [1].

Theorem 2. Let 𝑓0 ∈ 𝐻 1/2 (𝛀 ), 𝑓1 ∈ 𝐻 βˆ’1/2 (𝛀 ), 𝛾𝑒 > 0 or πœ” is not the eigen
frequency of the problem

                         π›₯𝑒 + π‘˜π‘’2 𝑒 = 0,        π‘₯ ∈ 𝛺𝑖 ,       π‘’βˆ’ = 0.

Then equations (6) and (8) are correctly solvable in the class of densities π‘ž ∈
𝐻 βˆ’1/2 (𝛀 ) and formulae (5) and (7) provide the solution to problem 1.

Remark 2. In cases where we are more interested in the wave field in domain 𝛺𝑒 ,
it is preferable to use equation (6), which allows the calculation of the reflected
field by a simpler formulae. For a similar reason, if we are interested in the
transmitted wave field in domain 𝛺𝑖 , it is preferable to use equation (8).


3     Numerical method
The applied method of numerical solution is presented in work [3] and appears
to be the development of the technics proposed and tested for the first time
in [4]. Let us briefly describe the general scheme of its implementation. Let us
construct a surface 𝛀 coating by system {π›€π‘š }𝑀   π‘š=1 of neighborhoods of nodes
π‘₯β€²π‘š ∈ 𝛀 , lying within the spheres of radii β„Žπ‘š centered at π‘₯β€²π‘š , and denote its
subordinate partition of unity by {πœ™π‘š }. In place of πœ™π‘š let us take functions
                       (οΈƒ 𝑀         )οΈƒβˆ’1                     {οΈ‚ (οΈ€        β§ΈοΈ€ 2 )οΈ€3
                         βˆ‘οΈ                                             2
                                                                   1 βˆ’ π‘Ÿπ‘š   β„Žπ‘š , π‘Ÿπ‘š < β„Žπ‘š ,
    πœ™π‘š (π‘₯) = πœ™β€²π‘š (π‘₯)          πœ™β€²π‘˜ (π‘₯)       ,    πœ™β€²π‘š (π‘₯) =
                                                                  0,               π‘Ÿπ‘š β‰₯ β„Žπ‘š ,
                        π‘˜=1

where π‘₯ ∈ 𝛀 , π‘Ÿπ‘š = |π‘₯ βˆ’ π‘₯β€²π‘š |, πœ™π‘š ∈ 𝐢 1 (𝛀 ) when 𝛀 ∈ 𝐢 π‘Ÿ+𝛽 , π‘Ÿ + 𝛽 > 1.
   Approximate solutions of equations (6) and (8) will be sought on grid {π‘₯π‘š },
                                ∫︁                 ∫︁
                            1
                    π‘₯π‘š =           π‘₯πœ™π‘š 𝑑𝛀 , πœ™Β―π‘š = πœ™π‘š 𝑑𝛀 ,
                          πœ™Β―π‘š
                                        𝛀                     𝛀

the nodes are the centers of gravity of functions πœ™π‘š . We assume that for all
π‘š = 1, 2, . . . , 𝑀 inequalities are satisfied

                   0 < β„Žβ€² ≀ |π‘₯π‘š βˆ’ π‘₯𝑛 | , π‘š ΜΈ= 𝑛, 𝑛 = 1, 2, . . . , 𝑀,

                                                                                               462
Mathematical and Information Technologies, MIT-2016 β€” Mathematical modeling

                                 β„Žβ€² ≀ β„Žπ‘š ≀ β„Ž, β„Ž/β„Žβ€² ≀ π‘ž0 < ∞,
where β„Ž, β„Žβ€² are positive numbers depending on 𝑀 , π‘ž0 does not depend on 𝑀 .
    Instead of unknown function π‘ž set on 𝛀 we shall seek generalized function
π‘žπ›Ώπ›€ , acting according to the rule

                              (π‘žπ›Ώπ›€ , πœ‚)R3 = βŸ¨π‘ž, πœ‚βŸ©π›€      βˆ€πœ‚ ∈ 𝐻 1 (R3 ).

We shall approximate this function by expression
                                                  𝑀
                                                  βˆ‘οΈ
                                 π‘ž (π‘₯) 𝛿𝛀 (π‘₯) β‰ˆ         π‘žπ‘› πœ™Β―π‘› πœ“π‘› (π‘₯),
                                                  𝑛=1

where π‘žπ‘› are unknown coefficients,
                                         (οΈ€          β§ΈοΈ€ )οΈ€
                 πœ“π‘› (π‘₯) = (πœ‹πœŽπ‘›2 )βˆ’3/2 exp βˆ’(π‘₯ βˆ’ π‘₯𝑛 )2 πœŽπ‘›2 , πœŽπ‘›2 = 0.5πœ™Β―π‘› .
   In paper [3] it is shown that for any functions πœ‚ ∈ 𝐻 1 (R3 ) and π‘ž ∈ 𝐻 1 (𝛀 )
equality
                                𝑀
                                βˆ‘οΈ
                      βŸ¨π‘ž, πœ‚βŸ©π›€ =    π‘žπ‘› πœ™Β―π‘› (πœ“π‘› , πœ‚)R3 + 𝑂(β„Ž2 ).
                                        𝑛=1

    Approximation of the density of a single layer potential by a volume density
allows us to obtain simple formulae for approximating integral operator 𝐴𝑖(𝑒)
from (4). The theoretical justification of the presented approach is given in [4].
    The integral operators from (4) on 𝛀 are approximated by expressions [1, 5].
                                          𝑀
                                          βˆ‘οΈ
                     βŸ¨οΈ€              βŸ©οΈ€
                          𝐴𝑖(𝑒) π‘ž, πœ™π‘š 𝛀 β‰ˆ    π΄π‘šπ‘›
                                              𝑖(𝑒) π‘žπ‘› ,       π‘š = 1, 2, ..., 𝑀,           (9)
                                           𝑛=1
                                                 (οΈ€    )οΈ€
                                      π΄π‘šπ‘›
                                       𝑖(𝑒) ≑ π΄π‘šπ‘› π‘˜π‘–(𝑒) ,

                 πœ™Β―π‘š πœ™Β―π‘›     (οΈ€          )οΈ€ (οΈ€ (οΈ€ βˆ’ )οΈ€   (οΈ€ + )οΈ€)οΈ€
      π΄π‘šπ‘› (π‘˜) =           exp πœ‡2π‘šπ‘› βˆ’ π›Ύπ‘šπ‘›
                                      2
                                              𝑀 π‘§π‘šπ‘› βˆ’ 𝑀 π‘§π‘šπ‘›        , 𝑛 ΜΈ= π‘š,
                 8πœ‹π‘Ÿπ‘šπ‘›
                                (οΈƒ             √ (οΈ‚                         )οΈ‚)οΈƒ
             πœ™Β―2π‘š      (οΈ€ 2 )οΈ€                    2πœ‹ πœ™Β―π‘š             π‘˜ 2 πœŽπ‘š
                                                                          3
   π΄π‘šπ‘š (π‘˜) =      exp πœ‡π‘šπ‘š π‘–π‘˜π‘€ (πœ‡π‘šπ‘š ) +                     + 2πœŽπ‘š βˆ’               ,
              4πœ‹                                πœ™Β―π‘š πœ‹πœŽπ‘š                 3
                 2     2                          Β±
                πœŽπ‘šπ‘› = πœŽπ‘š + πœŽπ‘›2 , πœ‡π‘šπ‘› = 0.5π‘˜πœŽπ‘šπ‘› , π‘§π‘šπ‘› = πœ‡π‘šπ‘› Β± π‘–π›Ύπ‘šπ‘› ,
                                  π›Ύπ‘šπ‘› = π‘Ÿπ‘šπ‘› /πœŽπ‘šπ‘› ,        𝑖2 = βˆ’1,
                                                          ∫︁∞
                                       2𝑖   (οΈ€    )οΈ€               (οΈ€ )οΈ€
                             𝑀 (𝑧) = βˆ’ √ exp βˆ’π‘§ 2               exp 𝑑2 𝑑𝑑,
                                        πœ‹
                                                          𝑧

                                   𝑀
                                   βˆ‘οΈ
         βŸ¨οΈ€                   βŸ©οΈ€       π‘šπ‘›
              π‘Žπ‘ž + 𝐡𝑖(𝑒) π‘ž, πœ™π‘š 𝛀 β‰ˆ    𝐡𝑖(𝑒) π‘žπ‘› , π‘š = 1, 2, ..., 𝑀,           π‘Ž = Β±0.5,   (10)
                                       𝑛=1


463
             Mathematical and Information Technologies, MIT-2016 β€” Mathematical modeling

                ⟨                 ⟩   𝑀
                                      βˆ‘οΈ
                       *                  π‘›π‘š
                 π‘Žπ‘ž + 𝐡𝑖(𝑒) π‘ž, πœ™π‘š   β‰ˆ    𝐡𝑖(𝑒) π‘žπ‘› , π‘š = 1, 2, ..., 𝑀,                       (11)
                                     𝛀
                                             𝑛=1
         π‘šπ‘›        πœ‚π‘šπ‘›      (οΈ€            )οΈ€ (οΈ€                )οΈ€
        𝐡𝑖(𝑒) =      2
                        exp    π‘–π‘˜π‘–(𝑒) π‘Ÿπ‘šπ‘›      π‘–π‘˜ 𝑖(𝑒) π‘Ÿπ‘šπ‘› βˆ’ 1    πœ™Β―π‘š πœ™Β―π‘› ,     𝑛 ΜΈ= π‘š,
                  4πœ‹π‘Ÿπ‘šπ‘›
                                               3
                                              βˆ‘οΈ                            βˆ‘οΈ πœ‚π‘›π‘š πœ™Β―π‘›π‘€
 π‘šπ‘š                                                     π‘₯π‘šπ‘™ βˆ’ π‘₯𝑛𝑙
𝐡𝑖(𝑒) = (βˆ’ |π‘Ž| + π‘Ž + Gsπ‘š ) πœ™Β―π‘š , πœ‚π‘šπ‘› =              π‘›π‘šπ‘™           , Gsπ‘š = βˆ’       2
                                                                                       ,
                                                          π‘Ÿπ‘šπ‘›                  4πœ‹π‘Ÿπ‘šπ‘›
                                              𝑙=1                                    𝑛̸=π‘š

π‘›π‘šπ‘™ are components of the unit vector of the external normal to the surface at
point π‘₯π‘š .
   The operators on the left sides of equations (6) and (8) are approximated by
the composition of operators (9)–(11):
                𝑀
                βˆ‘οΈ                                        𝑀
                                                          βˆ‘οΈ
                       π‘›π‘š                                        π‘›π‘š
 βŸ¨πΆπ‘ž, πœ™π‘š βŸ©π›€ β‰ˆ         𝐢𝑖𝑒 π‘žπ‘› ,    βŸ¨π·π‘ž, πœ™π‘š βŸ©π›€ β‰ˆ βˆ’                𝐢𝑒𝑖 π‘žπ‘› ,   π‘š = 1, 2, ..., 𝑀, (12)
                𝑛=1                                       𝑛=1
                             π‘›π‘š
                            𝐢𝑖𝑒 = π΅π‘–π‘›π‘š π΄π‘šπ‘›
                                        𝑒  βˆ’ 𝑝𝑒𝑖 π΄π‘šπ‘› π‘šπ‘›
                                                  𝑖 𝐡𝑒 ,
and the right sides of equations (6) and (8) by formulae
                      𝑀
                      βˆ‘οΈ
      βŸ¨π‘“2 , πœ™π‘š βŸ©π›€ β‰ˆ         (𝑝𝑒𝑖 π΄π‘šπ‘›       π‘›π‘š
                                  𝑖 𝑓1𝑛 βˆ’ 𝐡𝑖 𝑓0𝑛 ),             βŸ¨π‘“0 , πœ™π‘š βŸ©π›€ = πœ™Β―π‘š 𝑓0π‘š ,     (13)
                      𝑛=1

                π‘“π‘™π‘š = βŸ¨π‘“π‘™ , πœ™π‘š /πœ™Β―π‘š βŸ©π›€ ,         𝑙 = 0, 1,      π‘š = 1, 2, ..., 𝑀.
    Solving the corresponding SLAE, we find the approximate values of the den-
sity of integral equations at discretization points. After that, an approximate
solution of the diffraction problem using integral representations can be calcu-
lated at any point in space.

4   Mosaic-skeleton method
Let us introduce the definitions necessary for describing the mosaic-skeleton
method [7]. Let π΄π‘˜ be block matrix π΄π‘›Γ—π‘š , and 𝛱(π΄π‘˜ ) be matrix of size 𝑛 Γ— π‘š,
resulting from π΄π‘˜ by adding zeros up to 𝐴.
Definition 1. The systems of blocks {π΄π‘˜ } will be called covering 𝐴, if
                                   βˆ‘οΈ
                              𝐴=      𝛱(π΄π‘˜ ),
                                             π‘˜
                                                      β‹‚οΈ€
and mosaic partitioning 𝐴, if, in addition,                π΄π‘˜ = βˆ….
                                                      π‘˜

Definition 2. The mosaic rank of matrix 𝐴 ∈ Cπ‘›Γ—π‘š , corresponding to some
covering, is number          βˆ‘οΈ
                      mr 𝐴 =     mem π΄π‘˜ /(𝑛 + π‘š),                    (14)
                                         π‘˜
where the sum is taken over all blocks of covering π΄π‘˜ ∈ Cπ‘›π‘˜ Γ—π‘šπ‘˜ , and mem π΄π‘˜ =
min{π‘›π‘˜ π‘šπ‘˜ , (π‘›π‘˜ + π‘šπ‘˜ ) rank π΄π‘˜ }.

                                                                                             464
Mathematical and Information Technologies, MIT-2016 β€” Mathematical modeling

The mosaic rank determines the memory requirements for storing the mosaic
partitioning of matrix 𝐴, and also the computational complexity of matrix-vector
multiplication.
    An important indicator of the effectiveness of this method is the compression
factor 𝐼 [7]. It is defined by the following formulae

                                        mem 𝐴𝑝
                                   𝐼=          100,                              (15)
                                        mem 𝐴
where mem 𝐴𝑝 is the amount of memory required to store a matrix in a low-rank
format, mem 𝐴 is the amount of memory for storing the original matrix.

Definition 3. We shall call a matrix of 𝑒𝑣 * kind a skeleton, where 𝑒 and 𝑣 are
column vectors, 𝑣 * denotes the row-vector Hermite-conjugate to vector 𝑣.

    From definition 3 it follows that rank (𝑒𝑣 * ) = 1.
    The mosaic-skeleton method consists of three phases: constructing a cluster
tree, creating a list of blocks and finding a low-rank approximation. For the first
phase, the input data is a grid, on which discretization is carried out. The set of
all points of the grid is called a zero-level cluster (or a root of the tree). At each
step, the original cluster is split into several disjoint subclusters. This continues
until the level of the tree reaches the prescribed one. As a zero-level cluster, we
can take a cube, and plunge the domain on the border of which the grid is built
there. When moving to the next level of the tree, each edge of this cluster bisects,
resulting in 8 subcubes. Then, all the points belonging to the original cube are
distributed across 8 subcubes, forming 8 subclusters (some of them might be
empty). On reaching the maximum level of π‘˜, the number of clusters equals 8π‘˜ .
    The next step is creating the list of blocks. Any two clusters determine a
block in a matrix. If the points of the clusters are geometrically separated from
each other, the block enters a far zone and an approximation will be constructed
for it, or, otherwise, it enters a near zone, and the elements of the blocks will be
calculated by formulae (12).
    At the final stage, the blocks of the far zone are approximated by low-rank
matrices. Such matrices can be sought in different ways [10, 11]. In paper [13] the
cross of the matrix row and column is chosen as a template. A current approx-
imation is built on the cross at each step. This algorithm is called incomplete
cross approximation [8, 14].
    Algorithm 1. Incomplete cross approximation.
    Approximation of matrix 𝐴 of size 𝑛 Γ— π‘š by matrix 𝐴(π‘Ÿ) , being the sum of
π‘Ÿ skeletons.

 1. Let 𝑝 be the number of the calculated skeleton. At this step, we assume that
    𝑝 = 1 and select an arbitrary number 𝑗𝑝 from the column of matrix 𝐴.
 2. In the column with number 𝑗𝑝 we calculate all the elements of matrix 𝐴, then,
    subtract the elements of all previously obtained skeletons in these positions
    from them. In the obtained column 𝑒𝑝 we find the maximum element in
    modulus. Let it be located in the row with number 𝑖𝑝 .

465
              Mathematical and Information Technologies, MIT-2016 β€” Mathematical modeling

 3. We calculate the row of matrix 𝐴 with number 𝑖𝑝 and subtract from it the
    elements of all already found skeletons in their respective positions. In the
    obtained row 𝑣𝑝* we find the maximum element in modulus. It should be
    noted that an element from the column with number 𝑗𝑝 cannot be selected
    again. The number of the column in which the maximum element is found
    will be denoted by 𝑗𝑝+1 .
 4. Along the cross with centre (𝑖𝑝 , 𝑗𝑝 ) we build a skeleton so that the coefficients
    of matrix
                                            βˆ‘οΈπ‘
                                      (𝑝)        𝑒𝛼 𝑣𝛼*
                                  𝐴 =                                              (16)
                                                 𝐴
                                            𝛼=1 𝑖𝛼 𝑗𝛼

    coincide with the coefficients of the original matrix in positions 𝑝 of computed
    columns 𝑗1 , ..., 𝑗𝑝 and 𝑝 of calculated rows 𝑖1 , ..., 𝑖𝑝 .
 5. We check the stopping criterion. If it is satisfied, the calculation stops. If it
    is not satisfied, we set 𝑝 := 𝑝 + 1 and repeat the algorithm from step 2.

    An approximation (16) is considered to be sufficiently accurate if inequality
(stopping criterion)
                         ||𝐴 βˆ’ 𝐴(𝑝) ||𝐹 ≀ πœ€||𝐴(𝑝) ||𝐹 ,
where πœ€ is a relative approximation error, || Β· ||𝐹 is a Frobenius norm [15], is
satisfied.
    To verify this criterion, it is necessary to calculate π‘›π‘š of the elements of ma-
trix 𝐴, which is very time-consuming. The number of operations can be reduced
by using the upper estimate of ||𝐴 βˆ’ 𝐴(𝑝) ||𝐹 , obtained in [8]

     ||𝐴 βˆ’ 𝐴(𝑝) ||𝐹 ≀ (𝑙 βˆ’ 𝑝)||𝑒𝑝 𝑣𝑝* ||𝐹 /|𝐴𝑖𝑝 𝑗𝑝 | = (𝑙 βˆ’ 𝑝)||𝑒𝑝 ||𝐹 ||𝑣𝑝 ||𝐹 /|𝐴𝑖𝑝 𝑗𝑝 |,

where 𝑙 = min(𝑛, π‘š).
   Here the stopping criterion takes the form of

                       (𝑙 βˆ’ 𝑝)||𝑒𝑝 ||𝐹 ||𝑣𝑝 ||𝐹 /|𝐴𝑖𝑝 𝑗𝑝 | ≀ πœ€||𝐴(𝑝) ||𝐹 .                           (17)

    Using recurrence formulae we can obtain next result

                                           (︁ βˆ‘οΈ
                                              π‘βˆ’1
                                                  (𝑒* 𝑒𝛼 )(𝑣 * 𝑣𝑝 ) )︁       ||𝑒𝑝 ||2𝐹 ||𝑣𝑝 ||2𝐹
                                                     𝑝       𝛼
       ||𝐴(𝑝) ||2𝐹 = ||𝐴(π‘βˆ’1) ||2𝐹 + 2Re                                 +                       ,
                                             𝛼=1
                                                    𝐴𝑖𝛼 𝑗𝛼 𝐴*𝑖𝑝 𝑗𝑝              |𝐴𝑖𝑝 𝑗𝑝 |2


                                         ||𝑒1 ||𝐹 ||𝑣1 ||𝐹
                          ||𝐴(1) ||𝐹 =                     ,   𝑝 β‰₯ 2.
                                             |𝐴𝑖1 𝑗1 |


5    Numerical results
The program for the numerical solution of diffraction problems is written in
Fortran 90 and has the form of a console application, designed to run on mul-
tiprocessor computing systems. Intel Fortran Compiler performs as a compiler,

                                                                                                      466
Mathematical and Information Technologies, MIT-2016 β€” Mathematical modeling

Intel Math Kernel Library (Intel MKL) and implementation of the OpenMP
standard for the compiler are also used. The above mentioned software is used
in the computing cluster of CC FEB RAS (http://hpc.febras.net/). The cluster
consists of one subcontrol and thirteen compute nodes. The compute node with
four Six Core AMD OpteronTM 8431 processors, with clock frequency of 2.40
GHz and 96 GB of RAM has been involved in testing. To read more information
about the program, see [16].

Example 1. The diffraction problem of a plane acoustic wave on a triaxial el-
lipsoid with semi-axes (0.75, 1, 0.5) centered at the origin of coordinates and
having three different sets of parameters of the host medium and inclusion. The
complex amplitude of the initial wave field of pressures has the form 𝑒0 (π‘₯) =
exp(π‘–π‘˜π‘’ π‘₯3 ), 𝑓0 = 𝑒+             +
                      0 , 𝑓1 = 𝑁 𝑒0 , parameters of the media: 𝐼) π‘˜π‘– = 8, πœŒπ‘– =
3, π‘˜π‘’ = 5.5, πœŒπ‘’ = 1; 𝐼𝐼) π‘˜π‘– = 15.5, πœŒπ‘– = 5, π‘˜π‘’ = 9, πœŒπ‘’ = 4; 𝐼𝐼𝐼) π‘˜π‘– = 21, πœŒπ‘– =
7, π‘˜π‘’ = 30.5, πœŒπ‘’ = 9.5.

    In all the examples, the diffraction problem was solved twice: using the
mosaic-skeleton method in GMRES and without it. In the process discretization
of equations (6) and (8) was carried out by formulas (12) and (13), the order
of matrix 𝑀 ranged from 1032 to 64139. Hereinafter the accuracy of GMRES
amounted to 10βˆ’7 , and the accuracy of the low-rank approximations was 10βˆ’5 .
The level of the cluster tree varied from 4 to 5. Further, squares denote the first
set of media parameters, circles stand for the second set and triangles mark the
third set in all the graphs.
    In this case, the solutions found approximately were compared with the solu-
tions found on a denser grid, i.e. with 64139 sampling points. This is because the
analytical solution of Example 1 is unknown. The relative errors of solution of
the problem in Example 1 using equation (6) and (8) are shown in Figures 2. The
solid lines indicate errors 𝑒𝑖 , and the dashed lines represent errors 𝑒𝑒 . According
to the numerical experiments, the method has the second order of accuracy, as
the errors fall twofold when the order of matrix is doubled (𝑂(𝑀 βˆ’1 ) = 𝑂(β„Ž2 )).
The errors were calculated in the norm of grid functions π»β„Ž0 (𝛺𝑖(𝑒) ).
    The time spent on the solution of SLAE depending on the order of matrix
𝑀 with the mosaic-skeleton method and without it is shown in Figures 3 for
equation (6). The results for equation (8) are similar. Hereinafter, the time 𝑑 is
presented in seconds. The dashed lines show the time for solving SLAE using the
mosaic-skeleton method, and the solid lines indicate the time for solving SLAE
without it. When using the mosaic-skeleton method in GMRES, the solution
time is 115 times less (at 𝑀 = 64139 for the third set of parameters for equation
(6)) than without the fast method. When the number of nodes is doubled, the
time for solving SLAE using the mosaic-skeleton method increases 2.5 times on
average.
    Tables 1 and 2 show the values of the mosaic rank and compression factor
for SLAE, approximating the integral equation (6), depending on the number
of grid points. For equation (8) almost the same results were obtained. This is
because the kernels of equations (6) and (8) have similar properties as they are

467
              Mathematical and Information Technologies, MIT-2016 β€” Mathematical modeling




Fig. 2. Errors of solutions 𝑒𝑖 (solid lines) and 𝑒𝑒 (dashed lines) for the problem in
Example 1, obtained with the help of equations (6) and (8), respectively


compositions of similar integral operators. The mosaic rank was calculated using
formula (14), and the compression factor by formula (15). The numerical experi-
ments show that the mosaic rank increases like 𝑂(ln3 (𝑀 )), and the compression
factor, from a certain 𝑀 , decreases like 𝑂(ln3 (𝑀 )/𝑀 ).


               Table 1. Mosaic ranks for the problem in Example 1.

                 kβˆ–M 1032 2096 4010 8022 16033 32120 64139
                   I 493.1 751.9 991.0 1244.1 1517.1 1845.1 2241.0
                  II 509.9 818.5 1103.0 1376.8 1666.3 2004.4 2410.3
                  III 518.0 948.5 1327.9 1677.7 2011.6 2380.7 2810.7




            Table 2. Compression factors for the problem in Example 1.

                    kβˆ–M 1032 2096 4010 8022 16033 32120 64139
                      I 95.6 71.7 49.4 31.0 18.9 11.5 7.0
                     II 98.8 78.1 55.0 34.3 20.8 12.5 7.5
                     III 100.0 90.5 66.2 41.8 25.1 14.8 8.8



Example 2. The problem of diffraction on a triaxial ellipsoid with semi-axes
(0.75, 1, 0.5) centered at the origin is considered. The incident field is generated
by a point source
                        𝑒0 (π‘₯) = exp (π‘–π‘˜ |π‘₯ βˆ’ π‘₯0 |)/|π‘₯ βˆ’ π‘₯0 |,

                                                                                     468
Mathematical and Information Technologies, MIT-2016 β€” Mathematical modeling




Fig. 3. SLAE solution time for the problem with the mosaic-skeleton method (dashed
lines) and without it (solid lines) for equation (6) in Example 1


where π‘₯0 = (1.125, 1, 0.75). The sets of parameters of the containing medium
and inclusion are the same as in Example 1.

    The relative errors of solutions 𝑒𝑖(𝑒) for the problem in Example 2 formulated
in the form of equation (6) and (8) are shown in Figures 4. The solid lines indicate
errors 𝑒𝑖 , and the dashed lines represent errors 𝑒𝑒 . All the errors are calculated
in the norm of grid functions π»β„Ž0 (𝛺𝑖(𝑒) ). When we increase the order of the
matrices twofold, they also halve, as in the above example.
    The values of mosaic rank and compression factor for the problem in Example
2 formulated in the form of equation (6) are shown in Tables 3 and 4, respectively.
The mosaic rank, just as in the previous example, grows at the rate of 𝑂(ln3 (𝑀 )),
and the compression factor falls like 𝑂(ln3 (𝑀 )/𝑀 ). Almost the same results were
obtained for equation (8).


                 Table 3. Mosaic ranks for the problem in Example 2

                  kβˆ–M 1032 2096 4010 8022 16033 32120 64139
                    I 493.1 751.9 991.0 1244.1 1517.1 1845.1 2241.0
                   II 509.9 818.5 1103.0 1376.8 1666.3 2004.4 2410.3
                   III 518.0 948.5 1327.9 1677.7 2011.6 2380.7 2810.7



    Figures 5 show the real and imaginary parts of solution 𝑒𝑒 for the first set
of media parameters in Example 2 on the interval βˆ’5 6 π‘₯1 6 5, π‘₯2 = 0, π‘₯3 = 1
and on the interval π‘₯1 = 0, βˆ’5 6 π‘₯2 6 5, π‘₯3 = 1, respectively. It is evident
that solution 𝑒𝑒 oscillates rapidly and slowly decreases while distancing from the
inclusion.

469
              Mathematical and Information Technologies, MIT-2016 β€” Mathematical modeling




Fig. 4. Errors of solutions 𝑒𝑖 (solid lines) and 𝑒𝑒 (dashed lines) for the problem in
Example 2, obtained with the help of equations (6) and (8), respectively




           Fig. 5. Real and imaginary parts of solution 𝑒𝑒 in Example 2




                                                                                     470
Mathematical and Information Technologies, MIT-2016 β€” Mathematical modeling

             Table 4. Compression factors for the problem in Example 2

                     kβˆ–M 1032 2096 4010 8022 16033 32120 64139
                       I 95.6 71.7 49.4 31.0 18.9 11.5 7.0
                      II 98.8 78.1 55.0 34.3 20.8 12.5 7.5
                      III 100.0 90.5 66.2 41.8 25.1 14.8 8.8



6     Conclusion

We have studied the possibilities of using the mosaic-skeleton method for nu-
merical solution of three-dimensional diffraction problems of acoustic waves, for
which two new formulations have been offered in the form of boundary Fredholm
integral equations of the first kind with one unknown function. The method has
been implemented on the stage of solving linear systems. All of the most labor-
intensive computing processes have been parallelized using OpenMP. The obvi-
ous advantage of this approach compared to the others, for example, to a fast
multipole method, is that the mosaic-skeleton method can be used in already
existing software for the numerical solution of integral equations of diffraction
theory. Thereat only the algorithms for calculating the coefficients of linear sys-
tems and matrix-vector multiplication are changed. Using the multipole method
and other similar methods involves creating virtually new computing algorithms
and programs.
    Numerical experiments have shown that the modification of numerical algo-
rithms for solving diffraction problems with the mosaic-skeleton method leads
to a significant acceleration of their work while maintaining the same accuracy
of calculations.


References
1. Kashirin, A.A.: Research and Numerical Solution of Integral Equations of Three-
   dimensional Stationary Problems of Diffraction of Acoustic Waves. PhD thesis,
   Khabarovsk (2006) (in Russian)
2. Kashirin, A.A., Smagin, S.I.: Generalized Solutions of the Integral Equations of a
   Scalar Diffraction Problem. Diff. Equat. 42(1), 79–90 (2006)
3. Kashirin, A.A., Smagin, S.I.: Numerical Solution of Integral Equations of a Scalar
   Diffraction Problem. Dokl. Akad. Nauk, 458(2), 141–144 (2014)
4. Smagin, S.I.: Numerical Solution of an Integral Equation of the First Kind with a
   Weak Singularity for the Density of a Simple Layer Potential. Comp. Math. Math.
   Phys., 28(11), 1663–1673 (1988)
5. Kashirin, A.A., Smagin, S.I.: Potential-based Numerical Solution of Dirichlet Prob-
   lems for the Helmholtz Equation. Comp. Math. Math. Phys. 52(8), 1492–1505 (2012)
6. Saad, Y., Schultz, M.: GMRES: a Generalized Minimal Residual Algorithm for
   Solving Nonsymmetric Linear Systems. SIAM Journal on Scientific and Statistical
   Computing. 7(3), 856–869 (1986)
7. Tyrtyshnikov, E.E.: Methods for Fast Multiplication and Solution of Equations.
   Matrix Methods and Computations, INM RAS, Moscow. 4–41 (1999) (in Russian)

471
              Mathematical and Information Technologies, MIT-2016 β€” Mathematical modeling

8. Savostyanov, D.V.: Polilinear Approximation of Matrices and Integral Equations.
   PhD thesis, Moscow (2006) (in Russian)
9. Goreinov, S.A.: Mosaic-skeleton Approximations of Matrices Generated by Asymp-
   totically Smooth and Oscillatory Kernels. Matrix Methods and Computations, INM
   RAS, Moscow. 41–76 (1999) (in Russian)
10. Tyrtyshnikov, E.E.: Mosaic-skeleton Approximations. Calcolo, 33(1), 47–57 (1996)
11. Tyrtyshnikov, E.E.: Incomplete Cross Approximations in the Mosaic-skeleton
   Method. Computing, 64(4), 367–380 (2000)
12. McLean, W.: Strongly Elliptic Systems and Boundary Integral Equations. Cam-
   bridge University Press, Cambridge (2000)
13. Bebendorf, M.: Approximation of Boundary Element Matrices. Numer. Math.
   86(4), 565–589 (2000)
14. Kashirin, A.A., Smagin, S.I., Taltykina, M.Y.: Mosaic-Skeleton Method as Ap-
   plied to the Numerical Solution of Three-Dimensional Dirichlet Problems for the
   Helmholtz Equation in Integral Form. Computational Mathematics and Mathemat-
   ical Physics, 4(56), 612–625 (2016)
15. Meyer, C.D.: Matrix analysis and applied linear algebra. SIAM, Philadelphia
   (2000)
16. Kashirin, A.A., Smagin, S.I., Taltykina, M.Y.: Realization of Mosaic-skeleton
   Method in Dirichlet problems. Informatics and control systems, 4(46), 32–42 (2015)




                                                                                     472