计算机应用 ›› 2012, Vol. 32 ›› Issue (05): 1429-1431.

• 计算机软件与技术 • 上一篇    下一篇

内存映射文件在提取有限元模态结果中的应用

陕光,凌玲,胡于进   

  1. 华中科技大学 机械科学与工程学院,武汉 430074
  • 收稿日期:2011-10-25 修回日期:2011-12-29 发布日期:2012-05-01 出版日期:2012-05-01
  • 通讯作者: 陕光
  • 作者简介:陕光(1986-),男,湖北荆州人,硕士研究生,主要研究方向:有限元建模与分析;凌玲(1975-),女,江苏昆山人,副教授,博士,主要研究方向:知识工程、本体论工程、智能设计;胡于进(1958-),男,湖北松滋人,教授,博士,主要研究方向:计算机辅助设计、结构动力学分析及优化设计。
  • 基金资助:

    国家自然科学基金资助项目(30870605);中央高校基本科研业务费专项资金资助项目(2011ON126)

Application of memory-mapped file to extract modal data from results of finite element analysis

SHAN Guang,LING Ling,HU Yu-jin   

  1. School of Mechanical Science and Engineering, Huazhong University of Science and Technology, Wuhan Hubei 430074, China
  • Received:2011-10-25 Revised:2011-12-29 Online:2012-05-01 Published:2012-05-01
  • Contact: SHAN Guang

摘要: 对于有限元分析软件导出的大型结果文件,在使用常规的文件操作函数处理时,容易导致计算机速度缓慢甚至失去响应。针对这个问题,提出了一种基于内存映射文件读写数据的方法。该方法通过建立磁盘文件与进程地址的关联,直接访问磁盘文件,提取相关结果信息。当文件过大时,采用了分段映射的技术,逐段进行处理,并对两种不同的分段方式进行了比较。测试结果表明,比起传统的文件读写方法,该方法可以大大提高文件读取的速度,有效适应巨型文本文件的读取需求。

关键词: 有限元分析, 内存映射文件, 进程地址, 分段映射, 文本文件

Abstract: Concerning the problems of low running speed and no response that are very likely to occur when using the common file manipulation function to dispose the large-scale result file exported from Finite Element Analysis (FEA) software, a method of data reading and writing based on memory-mapped file was proposed. By establishing the relation between disk file and process address, the file could be accessed directly to extract the data information. When the data information was very large in size, a method of piecewise map was applied to dispose the disk file, and two different forms of piecewise map were compared. Compared with the traditional method, the result shows that the proposed method can improve the speed greatly and be applied to huge text file effectively.

Key words: finite element analysis, memory-mapped file, process address, piecewise map, text file

中图分类号: