系统仿真学报 ›› 2024, Vol. 36 ›› Issue (5): 1107-1117.doi: 10.16182/j.issn1004731x.joss.23-0084

• 研究论文 • 上一篇    下一篇

基于Python的面向对象弹塑性有限元方法实现与数值模拟

李恒辉(), 肖映雄()   

  1. 湘潭大学 机械工程与力学学院,湖南 湘潭 411105
  • 收稿日期:2023-02-02 修回日期:2023-04-30 出版日期:2024-05-15 发布日期:2024-05-21
  • 通讯作者: 肖映雄 E-mail:202021002587@smail.xtu.edu.cn;xyx610xyx@xtu.edu.cn
  • 第一作者简介:李恒辉(1997-),男,硕士生,研究方向为工程力学与计算。E-mail: 202021002587@smail.xtu.edu.cn
  • 基金资助:
    国家自然科学基金(10972191);湖南省自然科学基金(2023JJ30569)

Implementation and Numerical Simulation on Object-oriented Elastic-plastic Finite Element Method Based on Python

Li Henghui(), Xiao Yingxiong()   

  1. School of Mechanical Engineering and Mechanics, Xiangtan University, Xiangtan 411105, China
  • Received:2023-02-02 Revised:2023-04-30 Online:2024-05-15 Published:2024-05-21
  • Contact: Xiao Yingxiong E-mail:202021002587@smail.xtu.edu.cn;xyx610xyx@xtu.edu.cn

摘要:

随着有限元应用领域的不断扩大,对有限元的可扩充性提出了更高的要求。为克服传统有限元的缺陷,基于Python提出了一种简单、易扩充的面向对象弹塑性有限元程序框架,结合Python的特性,设计了前处理类、后处理类、线性求解类、应力积分类、分析类等有限元类。通过将程序框架应用于几类典型弹塑性问题的有限元分析与模拟,并与ABAQUS计算结果进行了对比,验证了基于Python的面向对象弹塑性有限元程序的准确性和有效性。

关键词: 面向对象编程, 弹塑性有限元, 程序框架, 数值模拟, Python

Abstract:

With the continuous expansion of the application fields of finite element methods, higher requirements are put forward for the scalability of finite element methods. In order to overcome the defects of the traditional finite element methods, a simple and easily extensible object-oriented elastic-plastic finite element program framework is proposed based on Python. Combined with the characteristics of Python, we design some finite element classes such as the pre-processing class, the post-processing class, the linear solution class, the stress integration class and the analysis class. By applying the resulting framework to several typical elastic-plastic mechanical problems and comparing the results with those calculated by ABAQUS, the correctness and effectiveness of object-oriented elastic-plastic finite element program based on Python have been verified.

Key words: object-oriented programming, elastic-plastic finite element, program framework, numerical simulation, Python

中图分类号: