Implementation of Basic Operations for Sparse Matrices when Solving a Generalized Eigenvalue Problem in the ACELAN-COMPOS Complex

П.А. Оганесян, О.О. Штейн, P. Oganesyan, Olga Shtein
{"title":"Implementation of Basic Operations for Sparse Matrices when Solving a Generalized Eigenvalue Problem in the ACELAN-COMPOS Complex","authors":"П.А. Оганесян, О.О. Штейн, P. Oganesyan, Olga Shtein","doi":"10.23947/2687-1653-2023-23-2-121-129","DOIUrl":null,"url":null,"abstract":"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.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.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%.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.","PeriodicalId":13758,"journal":{"name":"International Journal of Advanced Engineering Research and Science","volume":null,"pages":null},"PeriodicalIF":0.0000,"publicationDate":"2023-07-14","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"International Journal of Advanced Engineering Research and Science","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.23947/2687-1653-2023-23-2-121-129","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 0

Abstract

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.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.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%.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.
查看原文
分享 分享
微信好友 朋友圈 QQ好友 复制链接
本刊更多论文
求解ACELAN-COMPOS复合体中广义特征值问题时稀疏矩阵基本运算的实现
介绍。压电材料在各行各业的广泛应用,激发了对其物理特性的研究,决定了这类研究的紧迫性。在这种情况下,模态分析可以确定各种器件的压电元件的工作频率和机电耦合系数。这些指标具有重要的理论和应用价值。本研究的目的是发展数值方法来解决弹性体系统中共振频率的确定问题。为了实现这一目标,我们需要基于有限元方法的问题离散化的新方法,并在。net平台上用c#执行所选方法的软件实现。当前的解决方案是在ACELAN-COMPOS类库的上下文中创建的。已知的基于矩阵反演的广义特征值问题的求解方法不适用于大维矩阵。为了克服这一限制,提出的科学工作实现了构造质量矩阵的逻辑,并创建了用于与预处理和后处理模块交换特征值问题数据的软件接口。材料与方法。采用。net平台和c#编程语言实现数值方法。通过将研究结果与知名SAE软件包(计算机辅助工程)中得到的解进行比较,验证了研究结果。所创建的例程在性能和大规模任务的适用性方面进行了评估。通过数值实验验证了新算法对MATLAB中已知方法求解的小维问题的有效性。接下来,该方法在具有大量未知数的任务上进行了测试,并考虑了单个操作的并行化。为了避免求逆矩阵,通过编程实现了一种改进的Lanczos方法。我们研究了在RAM中存储矩阵的格式:triplets, CSR, СSC, Skyline。为了求解线性代数方程组(SLAE),采用了一种适用于这些存储格式的迭代对称LQ方法。开发了集成到ACELAN-COMPOS复合体类库中的新的计算模块。通过计算确定了在RAM中存储稀疏矩阵的各种格式的适用性以及使用稀疏矩阵实现操作的各种方法。以图形化的方式可视化了为同一任务构造的刚度矩阵结构,但在有限元网格中节点编号不同。针对电弹性理论的问题,对不同存储格式的刚度矩阵进行基本运算所需时间的数据进行了总结,并以表格的形式提出。已经证明,即使不改变内存中矩阵的内部结构,网格节点的重新编号也能显著提高性能。考虑到研究的目标,已知矩阵存储格式的优点和缺点被命名。因此,当矩阵乘以向量时,CSR是最优的,当矩阵逆时,SKS是最优的。在未知量为103阶的问题中,求解广义特征值问题的迭代方法在速度上获胜。对Lanczos方法的软件实现性能进行了评价。测量了所有操作对总解决时间的贡献。结果表明,求解SLAE的运算时间占算法总时间的95%以上。采用对称LQ法求解SLAE时,矩阵与向量相乘的计算量最大。为了提高算法的性能,采用了共享内存并行化的方法。当使用8个线程时,性能提高了40-50%。讨论与结论。作为科学工作的一部分获得的软件模块在ACELAN-COMPOS包中实现。估计了它们在拟正则有限元网格模型问题上的性能。结合求解电弹性体广义特征值问题得到的刚度矩阵和质量矩阵的结构特点,确定了优选的处理方法。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 去求助
来源期刊
自引率
0.00%
发文量
0
期刊最新文献
Investigation of Dynamic Characteristics of an Automated Position Long-Stroke Pneumatic Actuator of Fabrication System Optimization of Geometric Characteristics of Cycloidal Profiles of Gerotor Hydraulic Machines Sensitivity of Diffusion-Weighted Image Combined with T2 Turbo Inversion Recovery Magnitude Sequence and as an Alternative to Contrast-Enhanced MRI in the Detection of Perianal Fistula GATCGGenerator: New Software for Generation of Quasirandom Nucleotide Sequences 3D Human Motion Capture Method Based on Computer Vision
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
现在去查看 取消
×
提示
确定
0
微信
客服QQ
Book学术公众号 扫码关注我们
反馈
×
意见反馈
请填写您的意见或建议
请填写您的手机或邮箱
已复制链接
已复制链接
快去分享给好友吧!
我知道了
×
扫码分享
扫码分享
Book学术官方微信
Book学术文献互助
Book学术文献互助群
群 号:481959085
Book学术
文献互助 智能选刊 最新文献 互助须知 联系我们:info@booksci.cn
Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。
Copyright © 2023 Book学术 All rights reserved.
ghs 京公网安备 11010802042870号 京ICP备2023020795号-1