<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE article PUBLIC "-//NLM//DTD JATS (Z39.96) Journal Publishing DTD v1.3 20210610//EN" "JATS-journalpublishing1-3.dtd">
<article article-type="research-article" dtd-version="1.3" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xml:lang="en"><front><journal-meta><journal-id journal-id-type="publisher-id">donstu</journal-id><journal-title-group><journal-title xml:lang="en">Advanced Engineering Research (Rostov-on-Don)</journal-title><trans-title-group xml:lang="ru"><trans-title>Advanced Engineering Research (Rostov-on-Don)</trans-title></trans-title-group></journal-title-group><issn pub-type="epub">2687-1653</issn><publisher><publisher-name>Don State Technical University</publisher-name></publisher></journal-meta><article-meta><article-id pub-id-type="doi">10.23947/2687-1653-2023-23-2-121-129</article-id><article-id custom-type="elpub" pub-id-type="custom">donstu-2031</article-id><article-categories><subj-group subj-group-type="heading"><subject>Research Article</subject></subj-group><subj-group subj-group-type="section-heading" xml:lang="en"><subject>MECHANICS</subject></subj-group><subj-group subj-group-type="section-heading" xml:lang="ru"><subject>МЕХАНИКА</subject></subj-group></article-categories><title-group><article-title>Implementation of Basic Operations for Sparse Matrices when Solving a Generalized Eigenvalue Problem in the ACELAN-COMPOS Complex</article-title><trans-title-group xml:lang="ru"><trans-title>Реализация базовых операций для разреженных матриц в контексте решения обобщенной задачи на собственные значения в комплексе ACELAN-COMPOS</trans-title></trans-title-group></title-group><contrib-group><contrib contrib-type="author" corresp="yes"><contrib-id contrib-id-type="orcid">https://orcid.org/0000-0003-2311-7562</contrib-id><name-alternatives><name name-style="eastern" xml:lang="ru"><surname>Оганесян</surname><given-names>П. А.</given-names></name><name name-style="western" xml:lang="en"><surname>Oganesyan</surname><given-names>P. A.</given-names></name></name-alternatives><bio xml:lang="ru"><p>Павел Артурович Оганесян, кандидат физико-математических наук, доцент кафедры математического моделирования Института математики, механики и компьютерных наук</p><p>344006, РФ, г. Ростов-на-Дону, ул. Большая Садовая, 105/42</p></bio><bio xml:lang="en"><p>Pavel A. Oganesyan, Cand.Sci. (Phys.-Math.), associate professor of the Mathematical Modeling Department, Vorovich Institute for Mathematics, Mechanics, and Computer Science</p><p>105/42, Bolshaya Sadovaya St., Rostov-on-Don, 344006, RF</p></bio><email xlink:type="simple">poganesyan@sfedu.ru</email><xref ref-type="aff" rid="aff-1"/></contrib><contrib contrib-type="author" corresp="yes"><contrib-id contrib-id-type="orcid">https://orcid.org/0000-0003-1702-065X</contrib-id><name-alternatives><name name-style="eastern" xml:lang="ru"><surname>Штейн</surname><given-names>О. О.</given-names></name><name name-style="western" xml:lang="en"><surname>Shtein</surname><given-names>O. O.</given-names></name></name-alternatives><bio xml:lang="ru"><p>Ольга Олеговна Штейн, ассистент кафедры прикладной математики и программирования Института математики, механики и компьютерных наук</p><p>344006, РФ, г. Ростов-на-Дону, ул. Большая Садовая, 105/42</p></bio><bio xml:lang="en"><p>Olga O. Shtein, teaching assistant of the Applied Mathematics and Programming Department, Vorovich Institute for Mathematics, Mechanics, and Computer Science</p><p>105/42, Bolshaya Sadovaya St., Rostov-on-Don, 344006, RF</p></bio><email xlink:type="simple">shteyn@sfedu.ru</email><xref ref-type="aff" rid="aff-1"/></contrib></contrib-group><aff-alternatives id="aff-1"><aff xml:lang="ru"><institution>Южный федеральный университет</institution><country>Россия</country></aff><aff xml:lang="en"><institution>Southern Federal University</institution><country>Russian Federation</country></aff></aff-alternatives><pub-date pub-type="collection"><year>2023</year></pub-date><pub-date pub-type="epub"><day>14</day><month>07</month><year>2023</year></pub-date><volume>23</volume><issue>2</issue><fpage>121</fpage><lpage>129</lpage><permissions><copyright-statement>Copyright &amp;#x00A9; Oganesyan P.A., Shtein O.O., 2023</copyright-statement><copyright-year>2023</copyright-year><copyright-holder xml:lang="ru">Оганесян П.А., Штейн О.О.</copyright-holder><copyright-holder xml:lang="en">Oganesyan P.A., Shtein O.O.</copyright-holder><license license-type="creative-commons-attribution" xlink:href="https://creativecommons.org/licenses/by/4.0/" xlink:type="simple"><license-p>This work is licensed under a Creative Commons Attribution 4.0 License.</license-p></license></permissions><self-uri xlink:href="https://www.vestnik-donstu.ru/jour/article/view/2031">https://www.vestnik-donstu.ru/jour/article/view/2031</self-uri><abstract><sec><title>Introduction</title><p>Introduction. The widespread use of piezoelectric materials in various industries stimulates the study of their physical characteristics and determines the urgency of such research. In this case, modal analysis makes it possible to determine the operating frequency and the coefficient of electromechanical coupling of piezoelectric elements of various devices. These indicators are of serious theoretical and applied interest. The study was aimed at the development of numerical methods for solving the problem of determining resonance frequencies in a system of elastic bodies. To achieve this goal, we needed new approaches to the discretization of the problem based on the finite element method and the execution of the software implementation of the selected method in C# on the .net platform. Current solutions were created in the context of the ACELAN-COMPOS class library. The known methods of solving the generalized eigenvalue problem based on matrix inversion are not applicable to large-dimensional matrices. To overcome this limitation, the presented scientific work implemented the logic of constructing mass matrices and created software interfaces for exchanging data on eigenvalue problems with pre- and postprocessing modules.</p></sec><sec><title>Materials and Methods</title><p>Materials and Methods. A platform was used to implement numerical methods .net and the C# programming language. Validation of the research results was carried out through comparing the values found with solutions obtained in well-known SAE packages (computer-aided engineering). The created routines were evaluated in terms of performance and applicability for large-scale tasks. Numerical experiments were carried out to validate new algorithms in small-dimensional problems that were solved by known methods in MATLAB. Next, the approach was tested on tasks with a large number of unknowns and taking into account the parallelization of individual operations. To avoid finding the inverse matrix, a modified Lanczos method was programmatically implemented. We examined the formats for storing matrices in RAM: triplets, CSR, СSC, Skyline. To solve a system of linear algebraic equations (SLAE), an iterative symmetric LQ method adapted to these storage formats was used.</p></sec><sec><title>Results</title><p>Results. New calculation modules integrated into the class library of the ACELAN-COMPOS complex were developed. Calculations were carried out to determine the applicability of various formats for storing sparse matrices in RAM and various methods for implementing operations with sparse matrices. The structure of stiffness matrices constructed for the same task, but with different renumbering of nodes of a finite element grid, was graphically visualized. In relation to the problem of the theory of electroelasticity, data on the time required to perform basic operations with stiffness matrices in various storage formats were summarized and presented in the form of a table. It has been established that the renumbering of grid nodes gives a significant increase in performance even without changing the internal structure of the matrix in memory. Taking into account the objectives of the study, the advantages and weaknesses of known matrix storage formats were named. Thus, CSR was optimal when multiplying a matrix by a vector, SKS was optimal when inverting a matrix. In problems with the number of unknowns of the order of 103, iterative methods for solving a generalized eigenvalue problem won in speed. The performance of the software implementation of the Lanczos method was evaluated. The contribution of all operations to the total solution time was measured. It has been found that the operation of solving SLAE takes up to 95% of the total time of the algorithm. When solving the SLAE by symmetric LQ method, the greatest computational costs were needed to multiply the matrix by a vector. To increase the performance of the algorithm, parallelization with shared memory was resorted to. When using eight threads, the performance gain increased by 40–50%.</p><p>Discussion and Conclusion. The software modules obtained as part of the scientific work were implemented in the ACELAN-COMPOS package. Their performance for model problems with quasi-regular finite element grids was estimated. Taking into account the features of the structures of the stiffness and mass matrices obtained through solving the generalized eigenvalue problem for an electroelastic body, the preferred methods for their processing were determined.</p></sec></abstract><trans-abstract xml:lang="ru"><sec><title>Введение</title><p>Введение. Широкое использование пьезоматериалов в различных отраслях стимулирует изучение их физических характеристик и обусловливает актуальность таких изысканий. В рассматриваемом случае модальный анализ позволяет определить рабочую частоту и коэффициент электромеханической связи пьезоэлементов различных устройств. Эти индикаторы представляют серьезный теоретический и прикладной интерес. Цель исследования — разработка численных методов для решения задачи определения частот резонанса в системе упругих тел. Для достижения цели нужны новые подходы к дискретизации задачи на основе метода конечных элементов и выполнение программной реализации выбранного метода на языке С# на платформе .net. Актуальные решения созданы в контексте библиотеки классов комплекса ACELAN-COMPOS. Основанные на обращении матриц известные методы решения обобщенной задачи на собственные значения неприменимы к матрицам большой размерности. Для преодоления этого ограничения в представленной научной работе реализована логика построения матриц масс и созданы программные интерфейсы для обмена данными о задачах на собственные значения с модулями пре- и постпроцессинга.</p></sec><sec><title>Материалы и методы</title><p>Материалы и методы. Для реализации численных методов задействовали платформу .net и язык программирования C#. Валидация результатов исследования проводилась путем сравнения найденных значений с решениями, полученными в известных CAЕ-пакетах (англ. computer-aided engineering — компьютеризированная инженерия). Созданные подпрограммы оценивались с точки зрения производительности и применимости для задач большой размерности. Проводились численные эксперименты с целью валидации новых алгоритмов в задачах малой размерности, которые решаются известными методами в MATLAB. Далее подход тестировали на задачах с большим числом неизвестных и с учетом распараллеливания отдельных операций. Чтобы избежать нахождения обратной матрицы, программно реализовали модифицированный метод Ланцоша. Рассмотрели форматы хранения матриц в оперативной памяти: триплеты, CSR, СSC, SKyline. Для решения системы линейных алгебраических уравнений (СЛАУ) задействовали итерационный симметричный метод LQ, адаптированный к этим форматам хранения.</p></sec><sec><title>Результаты исследования</title><p>Результаты исследования. Разработаны новые расчетные модули, интегрированные в библиотеку классов комплекса ACELAN-COMPOS. Проведены расчеты для определения применимости различных форматов хранения разреженных матриц в оперативной памяти и различных методов реализации операций с разреженными матрицами. Графически визуализирована структура матриц жесткости, построенных для одной и той же задачи, но с различной перенумерацией узлов конечноэлементной сетки. Применительно к задаче теории электроупругости обобщены и представлены в виде таблицы данные о времени, необходимом на выполнение базовых операций с матрицами жесткости в различных форматах хранения. Установлено, что перенумерация узлов сетки дает существенный прирост производительности даже без изменения внутренней структуры матрицы в памяти. С учетом поставленных задач исследования названы преимущества и слабые стороны известных форматов хранения матриц. Так, CSR оптимален при умножении матрицы на вектор, SKS — при обращении матрицы. В задачах с числом неизвестных порядка 103 выигрывают в скорости итерационные методы решения обобщенной задачи на собственные значения. Оценивалась производительность программной реализации метода Ланцоша. Измерялся вклад всех операций в общее время решения. Выяснилось, что операция решения СЛАУ занимает до 95 % от общего времени работы алгоритма. При решении СЛАУ симметричным методом LQ наибольшие вычислительные затраты нужны для умножения матрицы на вектор. Для увеличения производительности алгоритма прибегли к распараллеливанию с общей памятью. При использовании восьми потоков производительность выросла на 40–50 %.</p></sec><sec><title>Обсуждение и заключение</title><p>Обсуждение и заключение. Полученные в рамках научной работы программные модули были внедрены в пакет ACELAN-COMPOS. Оценена их производительность для модельных задач с квазирегулярными конечноэлементными сетками. С учетом особенностей структур матриц жесткости и масс, получаемых при решении обобщенной задачи на собственные значения для электроупругого тела, определены предпочтительные методы для их обработки.</p></sec></trans-abstract><kwd-group xml:lang="ru"><kwd>пьезоматериалы</kwd><kwd>метод конечных элементов</kwd><kwd>разреженные матрицы</kwd><kwd>обобщенная задача на собственные значения</kwd><kwd>метод Ланцоша</kwd><kwd>подпространство Крылова</kwd><kwd>модуль препроцессинга</kwd><kwd>модуль постпроцессинга</kwd><kwd>триплеты</kwd><kwd>координатный формат хранения</kwd><kwd>сжатый разреженный ряд</kwd><kwd>CSR</kwd><kwd>сжатый разреженный столбец</kwd><kwd>CSC</kwd><kwd>SKyline</kwd></kwd-group><kwd-group xml:lang="en"><kwd>piezoelectric materials</kwd><kwd>finite element method</kwd><kwd>sparse matrices</kwd><kwd>generalized eigenvalue problem</kwd><kwd>Lanczos method</kwd><kwd>Krylov subspace</kwd><kwd>preprocessing module</kwd><kwd>postprocessing module</kwd><kwd>triplets</kwd><kwd>coordinate storage format</kwd><kwd>compressed sparse row</kwd><kwd>CSR</kwd><kwd>compressed sparse column</kwd><kwd>CSC</kwd><kwd>Skyline</kwd></kwd-group><funding-group><funding-statement xml:lang="ru">авторы выражают благодарность А.Н. Соловьеву и Т.С. Мартыновой за помощь в разработке численных методов и Российскому научному фонду за финансовую поддержку исследования грантом № 22–21–00318, https://rscf.ru/project/22-21-00318</funding-statement><funding-statement xml:lang="en">the authors would like to thank AN Solovyov and TS Martynova for their assistance in the development of numerical methods. Thanks are extended to the Russian Scientific Foundation for financial support of the research with grant no. 22–21–00318, https://rscf.ru/project/22-21-00318</funding-statement></funding-group></article-meta></front><body><p>Introduction. Devices made of piezoelectric materials have been widely used, actively studied and improved for a long time. Medical ultrasound devices (diagnostic equipment, ultrasonic scalpels) [1–4] and mobile energy generators [<xref ref-type="bibr" rid="cit5">5</xref>] should be noted separately. Paper [<xref ref-type="bibr" rid="cit6">6</xref>] described the combination of photo- and piezoelectric effects to create efficient compact energy sources. New materials designed for the application under specific conditions are being studied in science and industry. In [<xref ref-type="bibr" rid="cit7">7</xref>], the creation of a lead-free piezo-active composition suitable for operation at various temperatures was considered.</p><p>In the study on piezoelectric elements, a key role is played by the modal analysis stage, which enables to establish the resonance and antiresonance frequencies of the device. These data:</p><p>The study was aimed at the creation of numerical methods for solving the problem of determining resonance frequencies for a system of elastic bodies. Achieving the stated goal required solving two tasks. The first was to develop methods of discretization of the problem based on the finite element method (FEM). The second was to carry out a software implementation of the selected method in C# on the .net platform. All known programs take into account the context of the ACELAN-COMPOS class library [<xref ref-type="bibr" rid="cit8">8</xref>]. When solving a generalized eigenvalue problem, methods based on matrix inversion are widely used. However, they are not applicable to large-dimensional matrices. In the presented research, this limitation was overcome as follows:</p><p>Materials and Methods. Principally, the proposed approach was designed to solve static problems of electroelasticity when implementing the averaging method [<xref ref-type="bibr" rid="cit9">9</xref>], which was used to calculate the effective properties of piezo composites. In this regard, only stiffness matrices were presented at the stage of constructing global FEM matrices. In this study, we additionally implemented the logic of constructing mass matrices and developed software interfaces (application programming interface, API) for exchanging data on eigenvalue tasks with pre- and postprocessing modules. The developed routines were evaluated in terms of performance and applicability for large-scale tasks. Numerical experiments were carried out to validate the algorithms created for such small-dimensional problems that provide obtaining a solution by general methods in the MATLAB computing package. Next, testing was performed on tasks with a large number of unknowns and taking into account the parallelization of individual operations.</p><p>The mathematical model of the problem being solved consists of the defining relations [<xref ref-type="bibr" rid="cit9">9</xref>]:</p><p>,,(1)</p><p>, , (2)</p><p>, (3)</p><p>Here, σ— stress tensor; ρj — body density; ε — strain tensor; u — displacement vector; D — electric displacement vector; E — electric-field vector;  — body force vector;  — electric potential; , ,  — damping coefficients;, ,  — tensors of elastic constants, piezoelectric modules and dielectric permittivity; index j — body number in the model.</p><p>The discretization is performed by replacing:</p><p>Here,  — shape function matrix for the displacement field; Nϕ — shape function vector for electric potential; — global vectors of the corresponding nodal degrees of freedom.</p><p>In this case, the original problem (1–3) takes the form:</p><p>. (4)</p><p>Here, matrices M and K are global matrices of mass and stiffness, respectively, and the vector is a general vector of unknowns:</p><p>a = [U, Ф].</p><p>In the problem of the theory of electroelasticity:</p><p>(5)</p><p>Matrices ,  and — symmetric. In the case of harmonic oscillations at natural frequency , it is possible to write:</p><p>, denoting the corresponding eigenvector by .</p><p>Consider free oscillations if . In this case, task (4) is represented as:</p><p>. (6)</p><p>Thus, the original problem is reduced to a generalized eigenvalue problem (6). For nonzero , inequality (6) is solved by finding the matrix inverse to . However, at the same time, the sparse matrix becomes full, i.e., the method is unsuitable for large matrices. Therefore, it is needed to use other methods that do not require finding the inverse matrix. To solve this problem, a modified Lanczos method was programmatically implemented in this paper [<xref ref-type="bibr" rid="cit10">10</xref>]. The author of this modification is T. S. Martynova. The description of the development is not given in this article. Of the operations used in the method, the most expensive from the point of view of computational resources was the solution to a system of linear algebraic equations (SLAE), needed for performing a spectral transformation.</p><p>Matrices M and K — sparse, with a small number of nonzero elements. Several formats are used to store such matrices in RAM:</p><p>The coordinate format involves storing triples (triplets) of values (i, j, k), representing coordinates (i, j) and values (k) of nonzero elements. CSR is sometimes referred to as CRS or Yale format. It involves storing a sparse matrix in the form of three arrays. Consider matrix of N size with NZ nonzero elements. We describe the possible organization of its storage. All nonzero elements must be placed in one array of NZ size. The positions of these elements in the columns should be placed in another array of NZ size, and the third array of N size should be used to store the indices of the first elements of the rows. Similarly, the storage in CSV format is implemented.</p><p>The SKS format assumes the storage of a variable-width matrix band that includes all nonzero elements. In this case, zeros are allowed. The efficiency of this format depends on the renumbering of the matrix rows. Methods for reducing the size of the tape are described in [<xref ref-type="bibr" rid="cit11">11</xref>]; however, their applicability to the stiffness matrix obtained when solving a three-dimensional problem using FEM requires a separate study.</p><p>To solve the SLAE (system of linear algebraic equations), an iterative symmetric LQ method (SYMLQ [<xref ref-type="bibr" rid="cit12">12</xref>]) adapted to the storage formats listed above was used.</p><p>Research Results. At the beginning of the study, we chose the optimal storage format for sparse matrices. The coordinate format enabled to quickly add and change an element of the matrix. These operations were needed at the stage of assembling the global matrix and taking into account the boundary conditions. In addition, for ill-conditioned matrices, to which refers, a preliminary transformation is often used for normalization. It is also convenient to perform it in the coordinate format. However, this format is ineffective when it comes to algebraic operations.</p><p>CSR is ill-adapted for changing the structure of the matrix: by adding a nonzero element, you need to insert into two arrays. In this case, the matrix is multiplied by a vector quite easily and efficiently.</p><p>SKS has similar problems with the addition of nonzero elements and is highly dependent on the renumbering of unknowns in the problem. We focus on the example of a quasi-regular grid, which is used in the ACELAN-COMPOS package to work with representative volumes of composites. The width of the band containing all nonzero elements can be predetermined and depends on the number of nodes and the type of final element. In the general case of an arbitrary finite element grid, it is difficult to estimate the size of the band in advance.</p><p>Four methods of numbering unknowns were used in numerical experiments. Figure 1 shows the structure of stiffness matrices constructed for the same task, but with different renumbering of nodes of a finite element grid.</p><fig id="fig-1"><caption><p>Fig. 1. Stiffness matrix structure with various methods of node numbering:a — unknowns are ordered by nodes; b — first, displacement nodes are ordered, then potentials; c — nodes are sorted by layers of the FE grid, and unknowns — by nodes;b, d — nodes are sorted by layers of the FE grid, and unknowns — as in example</p></caption><graphic xlink:href="donstu-23-2-g001.jpeg"><uri content-type="original_file">https://cdn.elpub.ru/assets/journals/donstu/2023/2/rB53QnYJeHES2m7QaNNPhTfL8NaLpvSoT1DBJKVh.jpeg</uri></graphic><graphic xlink:href="donstu-23-2-g001.jpeg"><uri content-type="original_file">https://cdn.elpub.ru/assets/journals/donstu/2023/2/7fBdMR3NRaKTVGzm74hbTXAfinqzjVzT8RNkhXvG.jpeg</uri></graphic></fig><p>Thus, the grid was a cube with regular partitioning by eight-node finite elements. A model matrix of 500 lines was used for the illustrations. The matrices shown in Figures 1 a and 1 b, were not subjected to additional renumbering of nodes and differed only in the numbering of degrees of freedom. In 1 a:</p><p>.</p><p>In 1 b, the unknowns responsible for the potential distribution were collected at the end of the vector:</p><p>.</p><p>The unknowns in matrices 1 c and 1 d were numbered similarly, but the nodes of the finite element grid were pre-numbered according to their coordinates through alternately sorting all nodes by each of the coordinates. This technique is widely used to build more efficient SLAE solution modules, as it enables to work with the matrix in a suitable band format, convenient for parallelization. Similar external modules were implemented for the ACELAN-COMPOS complex [13–15]; however, in this work, only formats for storing sparse matrices of a general form were used.</p><p>Table 1 summarizes the data on the time required to perform basic operations with matrices in various formats.</p><table-wrap id="table-1"><caption><p>Table 1</p><p>Time to perform basic operations with the stiffness matrix in the problem of the theory of electroelasticity.</p><p>19,652 rows</p></caption><table><tbody><tr><td>Storage format</td><td>Operation</td><td>Elapsed time, ms</td></tr><tr><td>1 a</td><td>1 b</td><td>1 c</td><td>1 d</td></tr><tr><td>CSR</td><td>Conversion from coordinate format</td><td>123</td><td>132</td><td>97</td><td>117</td></tr><tr><td>CSR</td><td>Multiplication by vector, 100 operations</td><td>260</td><td>260</td><td>260</td><td>260</td></tr><tr><td>SKS</td><td>Conversion from coordinate format</td><td>690</td><td>703</td><td>124</td><td>268</td></tr><tr><td>SKS</td><td>Multiplication by vector, 100 operations</td><td>60,558</td><td>61,450</td><td>7,616</td><td>22,113</td></tr></tbody></table></table-wrap><p>The experimental results showed that the conversion operation from a coordinate storage format to a compact one took little time. At the same time, the renumbering of grid nodes to form a block-tape matrix made it possible to get a noticeable increase in performance even without changing the internal structure of the matrix in memory. CSR format turned out to be optimal in terms of the efficiency of the matrix-vector multiplication operation. When the matrix was inverted, SKS format was more efficient, but for problems with the number of unknowns of the order of 103, iterative methods for solving a generalized eigenvalue problem worked noticeably faster.</p><p>Further, the performance of the software implementation of the Lanczos method was experimentally evaluated. The contribution of all operations to the total solution time was measured. As a result, it was found that the operation of solving SLAE took up to 95% of the total time of the algorithm. In the course of the algorithm, a Krylov subspace was constructed, and depending on its dimension, the number of SLAE that needed to be solved changed. Note that the dimension of the Krylov subspace was chosen based on heuristics with respect to the number of desired eigenvalues. Here, the SLAE differed only in the right part, so that the requirements for allocated memory remained low. Among the basic operations used in the course of solving SLAE by the SYMLQ method, the greatest computational costs were needed for multiplying the matrix by the vector.</p><p>To increase the performance of the algorithm, the simplest parallelization with shared memory was implemented. Blocks of rows were allocated for the CRS format. They were transmitted to separate threads that calculated the corresponding components of the resulting vector. The performance gain was 40–50% when using 8 threads. At the same time, for matrices of the order of 103 elements, the increase was about 40%, and for matrices of the order of 104 — about 50%.
</p><p>Discussion and Conclusions. Within the framework of this study, a method for solving a generalized eigenvalue problem for matrices obtained by modeling electroelastic bodies was implemented. Software modules were created in C# for constructing mass matrices by the finite element method and performing auxiliary operations within the framework of the Lanczos method (working with Krylov subspace vectors, reorthogonalization, finding eigenvectors). The computational complexity was mainly due to the operations of multiplying sparse matrices by a vector. In this regard, numerical experiments were carried out to determine the optimal formats for storing matrices, the optimal structure of the matrix obtained as a result of renumbering the nodes of the FE grid and degrees of freedom in the nodes. A version of the SYMMLQ iterative algorithm using parallel computing was developed. The final scheme of work included three points. First, global matrices were constructed in coordinate format with a renumbering algorithm (Fig. 1 c). Secondly, the data was converted to CRS format. Thirdly, the data was processed by the Lanczos method, which included the SYMLQ method for solving SLAE. The results of the work were included in the ACELAN-COMPOS software package.</p></body><back><ref-list><title>References</title><ref id="cit1"><label>1</label><citation-alternatives><mixed-citation xml:lang="ru">Lisong Deng, Mingxiang Ling. Design and Integrated Stroke Sensing of a High-Response Piezoelectric Direct Drive Valve Enhanced by Push-Pull Compliant Mechanisms. Review of Scientific Instruments. 2022;93(3):035008. https://doi.org/10.1063/5.0067483</mixed-citation><mixed-citation xml:lang="en">Lisong Deng, Mingxiang Ling. Design and Integrated Stroke Sensing of a High-Response Piezoelectric Direct Drive Valve Enhanced by Push-Pull Compliant Mechanisms. Review of Scientific Instruments. 2022;93(3):035008. https://doi.org/10.1063/5.0067483</mixed-citation></citation-alternatives></ref><ref id="cit2"><label>2</label><citation-alternatives><mixed-citation xml:lang="ru">Urtnasan Erdenebayar, Jong-Uk Park, Pilsoo Jeong, et al. Obstructive Sleep Apnea Screening Using a Piezo-Electric Sensor. Journal of Korean Medical Science. 2017;32(6):893–899. https://doi.org/10.3346/jkms.2017.32.6.893</mixed-citation><mixed-citation xml:lang="en">Urtnasan Erdenebayar, Jong-Uk Park, Pilsoo Jeong, et al. Obstructive Sleep Apnea Screening Using a Piezo-Electric Sensor. Journal of Korean Medical Science. 2017;32(6):893–899. https://doi.org/10.3346/jkms.2017.32.6.893 3. Skaliukh AS, Gerasimenko TE, Oganesyan PA, Solovieva AA. Effect of Geometric and Physical Parameters on Resonant Frequencies of Ultrasonic Vibrations of Elastic and Piezoelectric Element System. Vestnik of Don State Technical University. 2017;17(4):5–13. https://doi.org/10.23947/1992-5980-2017-17-4-5-13</mixed-citation></citation-alternatives></ref><ref id="cit3"><label>3</label><citation-alternatives><mixed-citation xml:lang="ru">Скалиух А.С., Герасименко Т.Е., Оганесян П.А., Соловьева А.А. Влияние геометрических и физических параметров на резонансные частоты ультразвуковых колебаний системы упругих и пьезоэлектрических элементов. Вестник Донского государственного технического университета. 2017;17(4):5–13. https://doi.org/10.23947/1992-5980-2017-17-4-5-13</mixed-citation><mixed-citation xml:lang="en">Bulletti A, Capineri L, Floridia D. Automatic System to Measure the Impedance of Piezoelectric Actuators Used in Ultrasonic Scalpels. In book: Sensors and Microsystems. Cham: Springer; 2014. Vol. 268. P. 71–74. https://doi.org/10.1007/978-3-319-00684-0_14</mixed-citation></citation-alternatives></ref><ref id="cit4"><label>4</label><citation-alternatives><mixed-citation xml:lang="ru">Bulletti A., Capineri L., Floridia D. Automatic System to Measure the Impedance of Piezoelectric Actuators Used in Ultrasonic Scalpels. In book: Sensors and Microsystems. Cham: Springer; 2014. Vol. 268. P. 71–74. https://doi.org/10.1007/978-3-319-00684-0_14</mixed-citation><mixed-citation xml:lang="en">Keli Li, Qisheng He, Jiachou Wang, et al. Wearable Energy Harvesters Generating Electricity from Low-Frequency Human Limb Movement. Microsystems &amp; Nanoengineering. 2018;4:24. https://doi.org/10.1038/s41378-018-0024-3</mixed-citation></citation-alternatives></ref><ref id="cit5"><label>5</label><citation-alternatives><mixed-citation xml:lang="ru">Keli Li, Qisheng He, Jiachou Wang, et al. Wearable Energy Harvesters Generating Electricity from Low-Frequency Human Limb Movement. Microsystems &amp; Nanoengineering. 2018;4:24. https://doi.org/10.1038/s41378-018-0024-3</mixed-citation><mixed-citation xml:lang="en">Wenbo Peng, Chenhong Wang, Fangpei Li, et al. Piezo- and Photo-Voltage Field-Effect Transistor. Nano Energy. 2022;105:108025. https://doi.org/10.1016/j.nanoen.2022.108025</mixed-citation></citation-alternatives></ref><ref id="cit6"><label>6</label><citation-alternatives><mixed-citation xml:lang="ru">Wenbo Peng, Chenhong Wang, Fangpei Li, et al. Piezo- and Photo-Voltage Field-Effect Transistor. Nano Energy. 2022;105:108025. https://doi.org/10.1016/j.nanoen.2022.108025</mixed-citation><mixed-citation xml:lang="en">Tangyuan Li, Chang Liu, Peng Shi, et al. High-Performance Strain of Lead-Free Relaxor-Ferroelectric Piezoceramics by the Morphotropic Phase Boundary Modification. Advanced Functional Materials. 2022;32(32):2202307. https://doi.org/10.1002/adfm.202270184</mixed-citation></citation-alternatives></ref><ref id="cit7"><label>7</label><citation-alternatives><mixed-citation xml:lang="ru">Tangyuan Li, Chang Liu, Peng Shi, et al. High-Performance Strain of Lead-Free Relaxor-Ferroelectric Piezoceramics by the Morphotropic Phase Boundary Modification. Advanced Functional Materials. 2022;32(32):2202307. https://doi.org/10.1002/adfm.202270184</mixed-citation><mixed-citation xml:lang="en">Kurbatova NV, Nadolin DK, Nasedkin AV, et al. Finite Element Approach for Composite Magneto-Piezoelectric Materials Modeling in ACELAN-COMPOS Package. In book: Analysis and Modelling of Advanced Structures and Smart Systems. Singapore: Springer; 2018. Vol. 81. P. 69–88. https://doi.org/10.1007/978-981-10-6895-9_5</mixed-citation></citation-alternatives></ref><ref id="cit8"><label>8</label><citation-alternatives><mixed-citation xml:lang="ru">Kurbatova N.V., Nadolin D.K., Nasedkin A.V., et al. Finite Element Approach for Composite Magneto-Piezoelectric Materials Modeling in ACELAN-COMPOS Package. In book: Analysis and Modelling of Advanced Structures and Smart Systems. Singapore: Springer; 2018. Vol. 81. P. 69–88. https://doi.org/10.1007/978-981-10-6895-9_5</mixed-citation><mixed-citation xml:lang="en">Belokon AV, Nasedkin AV, Soloviev AN. Novye skhemy konechnoehlementnogo dinamicheskogo analiza p'ezoehlektricheskikh ustroistv. Journal of Applied Mathematics and Mechanics. 2002;66(3):491–501. (In Russ.)</mixed-citation></citation-alternatives></ref><ref id="cit9"><label>9</label><citation-alternatives><mixed-citation xml:lang="ru">Белоконь А.В., Наседкин А.В., Соловьев А.Н. Новые схемы конечноэлементного динамического анализа пьезоэлектрических устройств. Прикладная математика и механика. 2002;66(3):491–501.</mixed-citation><mixed-citation xml:lang="en">Zhongming Teng, Lei-Hong Zhang. A Block Lanczos Method for the Linear Response Eigenvalue Problem. Electronic Transactions on Numerical Analysis. 2017;46:505–523. https://doi.org/10.13140/RG.2.2.16369.68962</mixed-citation></citation-alternatives></ref><ref id="cit10"><label>10</label><citation-alternatives><mixed-citation xml:lang="ru">Zhongming Teng, Lei-Hong Zhang. A Block Lanczos Method for the Linear Response Eigenvalue Problem. Electronic Transactions on Numerical Analysis. 2017;46:505–523. https://doi.org/10.13140/RG.2.2.16369.68962</mixed-citation><mixed-citation xml:lang="en">Chagas G, Oliveira SLGD. Metaheuristic-Based Heuristics for Symmetric-Matrix Bandwidth Reduction: A Systematic Review. Procedia Computer Science. 2015;51:211–220. https://doi.org/10.1016/j.procs.2015.05.229</mixed-citation></citation-alternatives></ref><ref id="cit11"><label>11</label><citation-alternatives><mixed-citation xml:lang="ru">Chagas G., Oliveira S.L.G.D. Metaheuristic-Based Heuristics for Symmetric-Matrix Bandwidth Reduction: A Systematic Review. Procedia Computer Science. 2015;51:211–220. https://doi.org/10.1016/j.procs.2015.05.229</mixed-citation><mixed-citation xml:lang="en">Paige CC, Saunders MA. Solution of Sparse Indefinite Systems of Linear Equations. SIAM Journal on Numerical Analysis. 1975;12(4):617–629. https://doi.org/10.1137/0712047</mixed-citation></citation-alternatives></ref><ref id="cit12"><label>12</label><citation-alternatives><mixed-citation xml:lang="ru">Paige C.C., Saunders M.A. Solution of Sparse Indefinite Systems of Linear Equations. SIAM Journal on Numerical Analysis. 1975;12(4):617–629. https://doi.org/10.1137/0712047</mixed-citation><mixed-citation xml:lang="en">Fassbender H, Ikramov K. SYMMLQ-like Procedure of Ax = b where A is a Special Normal Matrix. Calcolo. 2006;43(1):17–37. https://doi.org/10.1007/s10092-006-0112-x</mixed-citation></citation-alternatives></ref><ref id="cit13"><label>13</label><citation-alternatives><mixed-citation xml:lang="ru">Fassbender H., Ikramov K. SYMMLQ-like Procedure of Ax = b where A is a Special Normal Matrix. Calcolo. 2006;43(1):17–37. https://doi.org/10.1007/s10092-006-0112-x</mixed-citation><mixed-citation xml:lang="en">Vasilenko A, Veselovskiy V, Metelitsa E, et al. Precompiler for the ACELAN-COMPOS Package Solvers. In: Proc. 16th Int. Conf.: Parallel Computing Technologies. Cham: Springer; 2021. Vol. 12942. P. 103–116. https://doi.org/10.1007/978-3-030-86359-3_8 15. Steinberg BYa, Vasilenko AA, Veselovskiy VV, et al. Solvers for Systems of Linear Algebraic Equations with Block-Band Matrices. Bulletin of the South Ural State University. Series “Mathematical Modeling, Programming &amp; Computer Software”. 2021;14(3):106–112. https://doi.org/10.14529/mmp210309</mixed-citation></citation-alternatives></ref><ref id="cit14"><label>14</label><citation-alternatives><mixed-citation xml:lang="ru">Vasilenko A., Veselovskiy V., Metelitsa E., et al. Precompiler for the ACELAN-COMPOS Package Solvers. In: Proc. 16th Int. Conf.: Parallel Computing Technologies. Cham: Springer; 2021. Vol. 12942. P. 103–116. https://doi.org/10.1007/978-3-030-86359-3_8</mixed-citation><mixed-citation xml:lang="en">Vasilenko A., Veselovskiy V., Metelitsa E., et al. Precompiler for the ACELAN-COMPOS Package Solvers. In: Proc. 16th Int. Conf.: Parallel Computing Technologies. Cham: Springer; 2021. Vol. 12942. P. 103–116. https://doi.org/10.1007/978-3-030-86359-3_8</mixed-citation></citation-alternatives></ref><ref id="cit15"><label>15</label><citation-alternatives><mixed-citation xml:lang="ru">Штейнберг Б.Я., Василенко А.А., Веселовский В.В. и др. Решатели СЛАУ с блочно-ленточными матрицами. Вестник Южно-Уральского государственного университета. Серия «Математическое моделирование и программирование». 2021;14(3):106–112. https://doi.org/10.14529/mmp210309</mixed-citation><mixed-citation xml:lang="en">Штейнберг Б.Я., Василенко А.А., Веселовский В.В. и др. Решатели СЛАУ с блочно-ленточными матрицами. Вестник Южно-Уральского государственного университета. Серия «Математическое моделирование и программирование». 2021;14(3):106–112. https://doi.org/10.14529/mmp210309</mixed-citation></citation-alternatives></ref></ref-list><fn-group><fn fn-type="conflict"><p>The authors declare that there are no conflicts of interest present.</p></fn></fn-group></back></article>
