Научная статья на тему 'New approaches to the formulation of domain decomposition method and algorithm of the large-block parallelization for mathematical modeling problems'

New approaches to the formulation of domain decomposition method and algorithm of the large-block parallelization for mathematical modeling problems Текст научной статьи по специальности «Математика»

CC BY
87
10
i Надоели баннеры? Вы всегда можете отключить рекламу.
Ключевые слова
DOMAIN DECOMPOSITION METHOD / INVERSE PROBLEMS / NUMERICAL METHODS / ADJOINT EQUATIONS / PARALLEL ALGORITHMS / МЕТОД РАЗДЕЛЕНИЯ ОБЛАСТИ / ОБРАТНЫЕ ЗАДАЧИ / ЧИСЛЕННЫЕ МЕТОДЫ / СОПРЯЖЕННЫЕ УРАВНЕНИЯ / ПАРАЛЛЕЛЬНЫЕ АЛГОРИТМЫ

Аннотация научной статьи по математике, автор научной работы — Agoshkov Valery Ivanovich, Lezina Natalia Romanovna

Domain decomposition method based on adjoint equation and inverse problem theory is discussed. The mathematical model of the Baltic Sea circulation, developed in INM RAS, is considered. The splitting method is used for time approximations. Domain decomposition method is studied to convection-diffusion problem. Also using domain decomposition method on multiprocessor computer system is possible to create algorithms for the parallel calculations.

i Надоели баннеры? Вы всегда можете отключить рекламу.
iНе можете найти то, что вам нужно? Попробуйте сервис подбора литературы.
i Надоели баннеры? Вы всегда можете отключить рекламу.

Текст научной работы на тему «New approaches to the formulation of domain decomposition method and algorithm of the large-block parallelization for mathematical modeling problems»

UDC 519.6 10.23947/2587-8999-2017-2-141-147

New approaches to the formulation of domain decomposition method and algorithm of the large-block parallelization for mathematical modeling problems*

V.I. Agoshkov, N.R. Lezina **

Institute of Numerical Mathematics Russian Academy of Sciences, Moscow State University, Moscow, Russia

Domain decomposition method based on adjoint equation and inverse problem theory is discussed. The mathematical model of the Baltic Sea circulation, developed in INM RAS, is considered. The splitting method is used for time approximations. Domain decomposition method is studied to convection-diffusion problem. Also using domain decomposition method on multiprocessor computer system is possible to create algorithms for the parallel calculations.

Keywords: domain decomposition method; inverse problems; numerical methods; adjoint equations; parallel algorithms

Introduction. For complex problems of mathematical modeling such as the problems of hydrothermodynamics of oceans and seas, methods are frequently used that make it possible to simplify the solution of a system of equations. When using the splitting method, one can reduce the solution of the system of equations to the solution of classical problems: convection-diffusion, shallow water, and elliptic problems. Quite often such problems are problems with the prevailing asymmetric operator and for them difficulties arise in the use of known methods of division of the region. Therefore, in this paper, a new approach to the formulation of methods for domain decomposition is proposed.

In addition, the development of modern computer technology makes it possible to use time-efficient algorithms of numerical realizations, which leads to the creation of parallel algorithms in solving problems numerically. One of the simplest ways to create such algorithms is to use the domain decomposition method.

1. Description of new approaches. One of the known approaches to the formulation of the method of domain decomposition is the theory of special Poincare-Steklov boundary operators introduced in [1]. These operators proved to be fruitful for constructing a wide variety of algorithms for dividing the area, analyzing and optimizing them.

Another methodology for constructing the area separation algorithms proposed in [2] is based on the theory of optimal control, the results of the theory of inverse and ill-posed problems, the

*The research is done with the financial support from the RSF (Grant 14-11-00609, within which the numerical experiments were carried out) and the RFBR (grant 16-01-00548, within which the research of the formulated tasks was carried out).

"E-mail: agoshkov@inm.ras.ru.

application of adjoint equations, and modern iterative processes. The idea of this methodology is as follows. After the introduction of the internal boundary separating the original domain, the conditions of cross-linking for solving sub-problems in subdomains are recorded on it. Then some of the stitching conditions are written through «boundary functions», which are declared "controls" and are to be found together with the solutions in subdomains. As the «closure equation», the second part of the cross-linking conditions is adopted, which are written on the inner boundary «in the sense of least squares». Thus, we obtain the optimal control problem, which is solved by already known methods (see, for example, [3-5]) and, as a result, we obtain algorithms for domain decomposition. In a sense, such an approach can be interpreted as the application of the «quasisolution method» by V.K. Ivanov» with the introduction of Tikhonov regularization for the search for «boundary functions». It should be noted that this methodology is applicable to problems with operators of different types, orders and with a different number of independent variables.

2. Consideration of the presented approach on the example of the convection-diffusion problem. One of the basic problems of hydrothermodynamics of oceans and seas is the problem of convection-diffusion type. The application of the method of decomposition of the domain in the first stages of the solution makes it possible to reduce the process of solving the problem in the entire domain D to alternate solutions in subdomains D and D2, possibly having a simpler geometric form than D.

So, let's consider a problem of the form:

Tt + (U, Grad)T - Div (vTGradT) = f on D x (t0, tj ), T = T (0), t = t0 in D

prr _

:(-)T_„ ___\-t/(T — T\ — O _i_7V(-

ÔZ

ÔT ÔN

UVT -vT — + yT (T - Ta ) = Qt + Un-dT onr, x (t0, t1 ),

= 0on rw,0 x(t0, t1 )

(2.1)

U (-)T +

ÔT ÔN

= Qt + u

( )dr onr x

n 1 w,op

(t0, t1 ) ,

ÔT ÔN

= 0 onr^ x (t0, t1 )

with given U, fT,..., dT, QT.

Let the domain d be divided by a piecewise smooth Lipschitz surface r,„ into two subregions D1 and D2 so that the boundaries dDx and 3D2 are also Lipschitz. We denote the characteristic functions rin by min. Let us dwell in more detail on the conditions that must be set on the "artificially" imposed boundary of decomposition of domains rin. We require the following conditions:

dT,

t = t u(rt +

T1 1 2 , u n,1 T1 +

ÔN

ü (-]T + ÔT2 ^

U n,2 1 2 +

ÔN

(2.2)

T ,2 J

where Urn{ = Uy , when approaching to rin from Di, i = 1,2.

Thus, problem (2.1) can be written on each of the sets D1 x(t0,tx),D2 x(t0,^) and conjugation conditions of the form:

t = T u[r)T = ■

1 2' "-1 1 dNTl

fU{;iT2

v 2 ^ j

on

Tin x(t0, ti), (2.3)

where NT; - the exterior to Yin the conormal D (i =1,2), and Yin - the common part of the boundaries dDx and PD2, dividing D into two subregions.

Let the «additional unknown» v («control») on Yin x(t0, tt)be entered as:

__PT

V - uilT onrin x(t0,t1), (2.4)

subject to determination together with T, T.

As the closure equation for the problem, we consider the first equality in (2.3) and introduce the following «cost functional»:

Ja( V)-J,(T ( V), T2 ( V), V )-

7 1 }mn (V - V(0) )2 dYdt +11 ]mn, (T - T2 )2 drdt, (2'5)

2 r f 2 r t

where a = const > 0 - the "regularization parameter", v(0) - the given function.

The following problem is posed: to find function Ti on D x(t0, t), satisfying (2.1)-(2.4) and

D - D, (i = 1,2) and a function v such that the functional (2.5) assumes the smallest value: inf J ( v ).

An approximate solution of problem (2.1) is carried out with a preliminary approximation in time, for the transition to the semi-discrete form of the model and the subsequent solution of the resulting stationary equation. The solution of the problem is found by an iterative method, which will be briefly described below (in more detail this method is described in [2]). Let vk be already defined. Then the following steps are implemented:

1) when v - vk solving a direct problem in Di to search T - T^^,i = 1,2:

(U, Grad) T - Div (vr GradT ) + bTt = F in D x(t0, t )

ÔT

un^)Ti - Vt + ^ (T - Ta ) = Qt + Utdi on r, x (t0, t1 )

Ôz

ÔT

ÔN

= 0onrw,C x(t0, t1 ) S

ÔT

U»T = Qt + di on rw,op x (t0, t1 )

ÔN

ÔT

ÔN

= 0onrx(t0,t1 ),

ÔT

ÔT

U/T +-- = v,UIX +-— = -v on r X ntn, t);

2) solving the conjugate problem in D for T = Tk) ,i = 1,2

-Div (U, T *) - Div ( vr GradT *) = 0 in Dt x (t0, t),

S^T*

Un+T-Vt + 7TT: = 0onrs x(t0,t1 ),

ÔT* ÔN

= 0on (r w,c H ) x( t0, t1 ) ,

U (+)T * +■

ÔT*

ÔN

= 0onr w,op x(t0, t1 ) ,

T ,i

*

*

= mm 1 - T2 ) onr in x(t0, t1 ),

un +

ÔN

T ,1

^T* + -ÔT- = -min (11 - T2 ) onr in x ( t0, t1 ) ;

ÔT

ÔN

T,2 i+1.

iНе можете найти то, что вам нужно? Попробуйте сервис подбора литературы.

3) we find a new approximation v + :

V+1 = vA -T, v - v

where the parameter rk is calculated by the formula: rk =

(«(/ -v(0)) + m,„ 1 -72*))o«rm,

1 Jr (T - T2 )2 dr

1 in_.

2 JT (71* - T* )2 dr '

4) go to step 1, until the exit condition for the iterative process is fulfilled. To test the effectiveness of the method of division of the region, a number of numerical experiments were carried out. Studies were conducted for the Baltic Sea, divided into two parts. For numerical experiments, only the problem of the propagation of heat was considered. The most interesting is the result of the temperature difference obtained using the method of division of the

region T(ddm) and without its application T{w) at the interface between the two regions (depth cut). The results are shown in Fig. 1.

ki

a)

b) c)

Fig. 1. Temperature profile along the depth at the boundary rin a) using the division method of the region; b) without using the method of division of the region; c) the difference between the obtained temperatures T(ddm) - T(w)

Numerical experiments of comparing temperatures without and using the method of division of the region for the problem of heat distribution in the Baltic Sea show good agreement of the results.

So, it is worth noting that the temperature difference Tddrm) - Tw) at the inner boundary rin is almost

equal to 0. That is, the temperature is the same.

3. Algorithm of large-block parallelization for problems of mathematical physics on the basis of domain decomposition method. Using the method of division of the region for problems of mathematical physics allows us to create parallel algorithms quite simply on the basis of the presented method, since the problems in the subdomains are connected only at the boundary and can be solved simultaneously.

Let us formulate a parallel algorithm for problems solved using the method of partitioning the region described above:

1. Each processor solves the problem in its subdomain;

2. After solving the problem in the subdomain, data are exchanged at the internal boundary;

3. Each processor solves the associated task in its subdomain;

4. After completion, data is exchanged at the internal boundary;

5. We find a new approximation;

6. Go to step 1 until the condition for stopping the iterative process has been fulfilled;

The acceleration for the algorithm used was approximately 1.2. A small acceleration obtained using the algorithm for the computer system "ICM RAS - the Baltic Sea" ([6]) can be explained by the fact that the model used for test checks of the algorithm is based on the method of splitting, and the splitting method (and, accordingly, the algorithm of large-block parallelization) is applied only for one module of the program for calculating the temperature in the model.

Conclusion. In addition to the above described method of dividing the region presented in this paper for the convection-diffusion problem, it should be noted that this approach can also be applied to other sub-problems that arise when the splitting method is used in hydrothermodynamics of oceans and seas. For brevity of description in this paper, a method was presented only for the convection-diffusion problem, but the approach described above can also be used for shallow-water equations, and for elliptic equations of the fourth order. More details with these methods can be found in [2].

Let us also make a few remarks about other approaches to constructing methods for dividing the region, different from those described above. We consider the problem (2.1). When formulating the region partition algorithm, we introduced an additional unknown v according to (2.4). But one could do otherwise: add an additional unknown as T = T = v on rin, and as the "closure equation"

take the second condition from (2.2). Also important is the choice of suitable space and the "appropriate rate" in it. More details on the development of algorithms and approaches to solving boundary value problems by methods of division of a domain can be found in [2]. References

1. Lebedev V.I. Generalized Schwarz algorithm with variable parameters. Lebedev, V.I. Agoshkov - M .: OVM USSR Academy of Sciences, 1981.- 50 p.

2. Agoshkov V.I. Methods of division of the region in the problems of hydrothermodynamics of oceans and seas. Agoshkov. -Moscow: IVM RAS, 2017. - 192 p.

3. Agoshkov V.I. Methods of optimal control and conjugate equations in problems of mathematical physics. Agoshkov. - Moscow: IVM RAS, 2016. - 244 p.

4. Marchuk G.I. Methods of Computational Mathematics. Marchuk. - Moscow: Nauka, 1989. - 608 p.

5. Tikhonov A.N. Methods for solving ill-posed problems. / A.N. Tikhonov, V.Ya. Arsenin -Moscow: Nauka: Home Edition of Physical and Mathematical Literature, 1979. - 288 p.

6. Agoshkov V.I. Informational and computing system «IVM RAS - Baltic Sea». / Agoshkov, N.A. Aseev, N.B. Zakharova, E.I. Parmuzin, T.O. Sheloput, V.P. Shutyayev - Moscow: Institute of Computer Science, Russian Academy of Sciences, 2016. - 139 p.

Authors:

Agoshkov Valery Ivanovich, Principal Researcher of the Institute of Numerical Mathematics Russian Academy of Sciences (8 Moscow, Gubkin St., Russian Federation), Professor, Doctor of Science in Physics and Maths, Honored Scientist of the Russian Federation

Natalia Romanovna Lezina, graduate school of the Institute of Numerical Mathematics Russian Academy of Sciences (8 Moscow, Gubkin St., Russian Federation)

УДК 519.6

Новые подходы к формулировке метода разделения области и алгоритм крупноблочного распараллеливания для задач математического моделирования*

В.И. Агошков, Н.Р. Лёзина**

ИВМ РАН, МГУ, г. Москва, Россия

В данной работе представлен метод разделения области, основанный на теории сопряженных уравнений и теории обратных задач. Используется математическая модель циркуляции Балтийского моря, разработанная в ИВМ РАН. Для аппроксимации по времени применяется метод расщепления. Метод разделения области рассмотрен на примере задачи конвекции-диффузии. Использование данного метода разделения области на многопроцессорных вычислительных системах позволяет создавать параллельные алгоритмы.

Ключевые слова: метод разделения области; обратные задачи; численные методы; сопряженные уравнения; параллельные алгоритмы

Авторы:

Агошков Валерий Иванович, главный научный сотрудник ИВМ РАН (119333, г. Москва, ул. Губкина, 8), профессор, доктор физико-математических наук, заслуженный деятель науки Российской Федерации

Наталья Романовна Лёзина, аспирант ИВМ РАН (119333, г. Москва, ул. Губкина, 8)

*Работа выполнена при поддержке РНФ (грант 14-11-00609, в рамках которого проведены численные эксперименты) и РФФИ (грант 16-01-00548, в рамках которого проведено исследование сформулированных задач).

** E-mail: agoshkov@inm.ras.ru.

i Надоели баннеры? Вы всегда можете отключить рекламу.