Научная статья на тему 'Применение параллельных вычислений для трассировки технологических трубопроводов волновым алгоритмом'

Применение параллельных вычислений для трассировки технологических трубопроводов волновым алгоритмом Текст научной статьи по специальности «Компьютерные и информационные науки»

CC BY
191
40
i Надоели баннеры? Вы всегда можете отключить рекламу.
Ключевые слова
АЛГОРИТМЫ / ПАРАЛЛЕЛЬНЫЕ ВЫЧИСЛЕНИЯ / ПРОЕКТИРОВАНИЕ ПРОИЗВОДСТВ / ТРАССИРОВКА

Аннотация научной статьи по компьютерным и информационным наукам, автор научной работы — Егоров Сергей Яковлевич, Шаронин Кирилл Анатольевич, Фурсов Игорь Сергеевич, Немтинов Кирилл Владимирович

Применение традиционных (последовательных) алгоритмов трассировки для задач проектирования реальных производств затрудняется высокими требованиями этих алгоритмов к вычислительным ресурсам. Увеличения быстродействия можно достичь с помощью модификации алгоритмов для использования параллельных вычислений. Для волнового алгоритма трассировки хорошо подлежат распараллеливанию этапы анализа монтажной области и распространения волны. Использование параллельных алгоритмов позволяет достичь значительного прироста производительности.

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

Похожие темы научных работ по компьютерным и информационным наукам , автор научной работы — Егоров Сергей Яковлевич, Шаронин Кирилл Анатольевич, Фурсов Игорь Сергеевич, Немтинов Кирилл Владимирович

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

Текст научной работы на тему «Применение параллельных вычислений для трассировки технологических трубопроводов волновым алгоритмом»

yflK 004.021

APPLICATION OF PARALLEL PROCESSING FOR TECHNOLOGICAL PIPELINES TRACING USING WAVE ALGORITHM

S.Ya. Egorov, I.S. Fursov, K.A. Sharonin, K.V. Nemtinov

Department “AutomatedDesign of Processing Equipment”, TSTU; egorovsy@yandex.ru

Represented by a Member of the Editorial Board Professor S.I. Dvoretsky

Key words and phrases: algorithms; design industries; parallel computing; tracing.

Abstract: The use of traditional (serial) tracing algorithms for the problems of real production design is hampered by high requirements of these algorithms. Speed up can be achieved by modifying the algorithms for parallel computing. For the wave algorithm for tracing stages of mounting space analysis and wave propagation are good for parallelization. The use of parallel algorithms can achieve significant productivity gains.

Topological synthesis is particularly important and one of the most difficult stages in the design of technological systems [1]. At this stage, the problem of developing enlarged structure of the designed object is solved, including the problem of the choosing space-planning decisions, the problem of locating equipment and routing intra-shop pipelines. These tasks are the most laborious in terms of computation. This particularly applies to the task of tracing process piping. This problem is one of the most time consuming tasks of industries design. Its automation will reduce development time instrumentation of the process flow sheet, as well as to reduce the costs of practical implementation by optimizing the structure of the technological connections.

Automated tracing solution requires large computational resources. Thus, the time of solving the problem increases significantly with increasing number of traced connections and growth of the mounting space. These requirements cause the complexity of traditional tracing algorithms to solve real-world design problems of industrial production. Therefore modification of the algorithms for parallel computing application is topical.

A mathematical model for the trace includes the following limitations: the fragments of pipes in the shop space are orthogonal; the pipelines are lying in the selected areas; it's necessary to ensure the gaps between the tracks, the distance between the fragments of tracks and technical units, the distance between the tracks and building structures [2].

As optimality criterion for the problem uses criterion of the form

L

(1)

where j - the number of pipe; L - number of communications; Sy - the cost per length unit of the jth pipeline; f - length of the jth pipeline; S2j - the cost of the technical implementation of a bending of the pipeline, Kj is the number of turns of the jth pipeline.

Formulation of the tracing problem sets as follows: to find a spatial arrangement of piping considering the described restrictions in which the criterion (1) reached a minimum.

Let us consider the possibility of using parallel computing to solve the problem. To do this, select parts of the algorithm, which can be calculated independently of each other with following union of the results and gaining correct result.

First of all solution of the problem can be divided into three serial stages (Fig. 1):

1) choosing lines sequence;

2) analyzing mounting space;

3) tracing each route by chosen method.

In the first stage the set of processors are divided into groups, which amount is not higher than epy number of pipelines and that of processors in each group is not smaller than the latter. The set of projected lines in its turn is divided into subsets, whose number is a multiple to amount of processors groups. Previously all the tracks are ranged according to the diameter of the pipeline, the properties of transported products, and the cost of their production. Thus, each processor receives a certain number of processing routes (Fig. 2). After completing the trace, pipelines of different subsets are checked for intersection with each other. This problem belongs to a class of sorting problems. Parallel implementation of sorting algorithms is described in [3].

Fig. 1. The classical scheme of the wave tracing algorithm

Fig. 2. The parallel scheme of the wave tracing algorithm

In the second stage preparatory steps are carried out: tracing space is divided into set of unit cellsD = {di j,k\i = 1...dx, j = 1...dy, k = 1...dz}, where dx, dy, dz - the

number of cells in length, width and height respectively. The cell size is chosen multiple of the largest diameter of the pipe, which allows to ensure the greatest number of runs. As a result, tracing region is divided into K = m x n x a regions, where m = dx, n = dy, a = dz respectively, information about which is conveniently stored in the matrix K (m, n, a). The appropriate value is assigned to each element k (m, n, a) of the matrix K depending on the properties of the cell di,j, k (for i = m, j = n, k = a) of the set D:

- if the cell di,j,k contains any object, except for the source nozzle and the receiver nozzle of the route, or contains a zone restricted to the trace (restriction of 5-9 [2]), then K(m, n, a)=(dx x dy x dz) + 2;

- if the cell di,j,k does not contain objects, i.e. it is passable for the track, then K(m, n, a)=(dx x dy x dz) + 1;

- if the cell di,j, k contains a zone which is temporary forbidden to trace it, then K(m, n, a)=(dx x dy x dz) + 3. Firstly these cells are considered as no-trace, and if either of the routes which can’t be built, then these areas are beginning to be regarded as passable.

Filling each element of the matrix does not depend on the values of other elements. Thus it is possible to select a subset of cells of the matrix and make filling them in some

calculators. For convenience, the matrix K (m, n, a) is divided into a equal subset of rows by band splitting method [3]. Number of rows processed by one processor is Nr = ma/Npr, where Npr - the number of available counters. Each computer gets a subset of rows for the processing, which is defined by following expressions: Nr-1 = (q- 1)Nr, Nr+1=qxNr, where q=1,...,Npr - number of the calculator; Nr_ 1, Nr+1 _ minimum and maximum number of rows in subsets. Then each computer produces described operations with the obtained data.

In the third phase of the piping tracing, depending on the type of connection (single or branched), the following algorithms are used [4]: the double-ray - to implement the connections of single bonds; algorithm for constructing the shortest connecting tree - for branched pipelines; wave algorithm for the construction of the shortest route between the source and receiver with crawl of objects. Solution of the parallelization for the construction of SCT is given in [5]. Algorithm of parallelization for wave method is described below. (Double-ray algorithm is a special case of the wave, and in this work it is not considered.)

Wave tracing algorithm applies to serial. That is, the route is carried out one after another in sequence. However, the most demanding in terms of time-consuming steps are the analysis of mounting space and wave propagation. Similarly, the Huygens principle in physics, every point of the wave front can be regarded as an independent source of elementary oscillations. Thus, to obtain (N +1)th wave front at each point of Nth front can be made in parallel. But we need to to monitor conflicts related to the consideration of one cell by different calculators. For parallelization, we use a masterslave paradigm [6]. This Paradigm is widely used in parallelization of various algorithms, such as branch and bound methods [7]. Processor Xo called master will manage the even distribution of data on other CPUs Xn, called slaves. Starting from the point of beginning of the wave propagation St, master processor sends to each slave processor one of the cells for processing, the matrix element value of which corresponds to the wave front number that is under consideration at this time. After the slave processor has performed its work with data, it sends a signal to the master processor, which transmits the results, and message that slave was released. In turn, the master processor transmits this slave processor the next cell for processing, the value of the matrix of which equals number of considered or next wave front. After the slave processor has performed its work with data, it sends a signal to the master processor, which transmits the results, and message that slave was released. In turn, the master processor transmits this slave processor the next cell for processing, the value of the matrix of which equals number of considered or next wave front. Each slave processor scans the six neighboring regions of the cell under consideration (each bordered by an edge of the cell under consideration). If some of them are free for tracing and the wave number have not yet given for these cells, the slave processor assigns the elements of the matrix, corresponding to these cells, number of the next wave front k (m, n, a) = Nwave + 1. Each slave processor forms a part of the next wave front, which data are transmitted to the master processor, and it passes some of this front for the processing to free slave processors.

After constructing the wave shortest path is determined the same way as in [8] and not considered in this article.

The approach can significantly speed up the tracing problem solution and more fully utilize the resources of modern multi-core and multiprocessor systems. The use of modern high-speed computing for graphics cards that have a large number of calculators, can achieve significant productivity gains of the algorithm. This allows using various options to trace the branched pipeline networks and applying the algorithm for the design of complex real-world chemical production.

The work has been performed under the state contract № 02.740.11.0624 of the Federal Program “Scientific and Scientific-Pedagogical staff of Innovative Russia in 2009-2013”.

References

1. Мешалкин, В.П. Экспертные системы в химической технологии / В.П. Мешалкин. - М. : Химия, 1995. - 367 с.

2. Information and Logical Model of Tracing of Technological Pipelines / S.Ya. Egorov [et al.] // Вестн. Тамб. гос. техн. ун-та. - 2010. - Т. 16, №. 4. - С. 826830.

3. Гергель, В.П. Параллельные методы сортировки [Электронный ресурс] / В. П. Гергель // Теория и практика параллельных вычислений : учеб. пособие / В.П. Гергель. - Лекция 9. - Режим доступа : http://www.intuit.ru/department/ calculate/paralltp/9/. - Загл. с экрана.

4. Егоров, С.Я. Аналитические и процедурные модели автоматизированной информационной системы компоновки промышленных объектов / С.Я. Егоров, В. А. Немтинов // Пром. АСУ и контроллеры. - 2009. - № 8. - С. 29-37.

5. Гергель, В.П. Принципы разработки параллельных алгоритмов [Электронный ресурс] / В.П. Гергель // Теория и практика параллельных вычислений : учеб. пособие / В.П. Гергель. - Лекция 4. - Режим доступа : http://www.intuit.ru/ department/calculate/paralltp/4/2.html. - Загл. с экрана.

6. Ней Мин Тун. Параллельная трассировка на многопроцессорных вычислениях / Ней Мин Тун // Системный анализ и информационно-управляющие системы : сб. науч. тр. / под ред. В.А. Бархоткина - М., 2008. - С. 100.

7. Borisenko, A. Optimal Design of Multi-Product Batch Plants Using a Parallel Branch-and-Bound Method / A. Borisenko, Ph. Kegel, S. Gorlatch // Parallel Computing Technologies : 11th International Conference, PaCT 2011, Kazan, Russia, September 1923, 2011, Proceedings (Lecture Notes in Computer Science) / Malyshkin V. (ed.). -Springer-Verlag, Berlin Heidelberg New-York, 2011. - Vol. 6873. - P. 417-430.

8. Волновой алгоритм [Электронный ресурс] // Алгоритмы, методы, исходники. - Режим доступа : http://algolist.manual.ru/maths/graphs/shortpath/wave.php. -Загл. с экрана.

Применение параллельных вычислений для трассировки технологических трубопроводов волновым алгоритмом

С.Я. Егоров, И. С. Фурсов, К.А. Шаронин, К.В. Немтинов

Кафедра «Автоматизированное проектирование технологического оборудования», ФГБОУВПО «ТГТУ»; egorovsy@yandex.ru

Ключевые слова и фразы: алгоритмы; параллельные вычисления; проектирование производств; трассировка.

Аннотация: Применение традиционных (последовательных) алгоритмов трассировки для задач проектирования реальных производств затрудняется высокими требованиями этих алгоритмов к вычислительным ресурсам. Увеличения быстродействия можно достичь с помощью модификации алгоритмов для использования параллельных вычислений. Для волнового алгоритма трассировки хоро-

шо подлежат распараллеливанию этапы анализа монтажной области и распространения волны. Использование параллельных алгоритмов позволяет достичь значительного прироста производительности.

Anwendung der Parallelrechnen für die Trassierung der technologischen Rohrleitungen vom Wellenalgorithmus

Zusammenfassung: Die Anwendung der traditionellen (konsequenten)

Algorithmen der Trassierung für die Aufgaben der Projektierung der Realproduktionen wird durch die hohen Anforderungen diesen Algorithmen zu den Rechnenressourcen erschwert. Die Vergrößerung der Schnellwirkung kann man mit Hilfe der Modifizierung der Algorithmen für die Benutzung der Parallelrechnen erreichen. Für den Wellenalgorithmus der Trassierung sind die Etappe der Analyse des Montageraumes und der Wellenverbreitung für die Abparallelization gut geeignet. Die Benutzung der Parallelalgorithmen erlaubt es, den wesentlichen Zuwachs der Produktivität zu erreichen.

Application des calculs parallèles pour le tracement des tuyauteries technologiques par l’algorithme ondulaire

Résumé: L’application des algorithmes traditionnels (successifs) du tracement pour les problèmes de la conception des industries réelles est compliquée par de hautes exigences de ces algorithmes envers les ressources de calcul. On peut obtenir l’augmentation de la rapidité de l’action à l’aide de la modification des algorithmes pour l’emploi des calculs parallèles. Pour l’algorithme ondulaire du tracement sont bien employées les étapes de l’analyse du domaine de montage et la répartition de l’onde. L’emploi des algorithmes parallèles permet d’élever considérablement la productivité.

Авторы: Егоров Сергей Яковлевич - доктор технических наук, доцент кафедры «Автоматизированное проектирование технологического оборудования»; Шаронин Кирилл Анатольевич - аспирант кафедры «Автоматизированное проектирование технологического оборудования»; Фурсов Игорь Сергеевич - магистрант кафедры «Автоматизированное проектирование технологического оборудования»; Немтинов Кирилл Владимирович - студент, ФГБОУ ВПО «ТГТУ».

Рецензент: Литовка Юрий Владимирович - доктор технических наук, профессор кафедры «Системы автоматизированного проектирования», ФГБОУ ВПО «ТГТУ».

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