Multi-layer parallel simulation for complex system based on extended Modelica
-
摘要: 为提高复杂系统多学科建模仿真效率,弥补现有多领域统一建模仿真语言(Modelica)不支持并行的缺陷,提出了一个面向复杂系统建模仿真的多层次并行仿真框架,从仿真任务级、实体级和模型级3个应用层次上充分发掘仿真系统的并行性.将MPI(Message Passing Interface)/OpenMP中的并行元素加入Modelica语言,并通过所提出的代码映射机制将Modelica文本转换为支持并行编程的高级代码(C++),再利用一定的任务分配机制将高级代码在多层次并行平台(多核集群)上高效执行.针对某典型军事复杂系统优化迭代过程进行仿真实验,结果表明上述多层次并行仿真方法能大幅提高仿真效率.
-
关键词:
- 复杂系统 /
- 并行计算 /
- Modelica /
- 多学科仿真 /
- MPI/OpenMP
Abstract: To improve multi-disciplinary modeling and simulation (M&S) efficiency for complex systems, and overcome the shortcoming of no parallel mechanisms in current multi-domain M&S languages like Modelica, a multi-layer parallel framework for complex system simulation was proposed. Parallel mechanisms of application systems were captured from three layers including task layer, entity layer and model layer. Modelica was extended by inserting typical parallel elements of message passing interface (MPI) and OpenMP. A code mapping strategy was presented to transfer Modelica texts to parallel-support codes like C++. Application systems were simulated in multi-layer parallel platforms like multi-core clusters after task allocating. The iterative process of optimization in a typical military complex system was tested using the proposed means. The simulation results show that the efficiency can be improved evidently through the above framework and methods.-
Key words:
- complex system /
- parallel computing /
- Modelica /
- multi-disciplinary simulation /
- MPI/OpenMP
-
[1] 金士尧,李宏亮,党岗,等.复杂系统计算机仿真的研究与设计[J].中国工程科学,2002,4(4):52-57 Jin Shiyao,Li Hongliang,Dang Gang,et al.Research and design of computer simulation for complex system[J].Engineering Science,2002,4(4):52-57 (in Chinese) [2] 熊光楞,郭斌,陈晓波,等.协同仿真与虚拟样机技术[M].北京:清华大学出版社,2004:3-15 Xiong Guangleng,Guo Bing,Chen Xiaobo,et al.Technologies of collaborative simulation and virtual prototype[M].Beijing:Tsinghua University Press,2004:3-15 (in Chinese) [3] IEEE Standard1516.1 IEEE Standard for modeling and simulation (M&S) High Level Architecture(HLA)[S] [4] Modelica Association.Modelica-a unified object-oriented language for physical systems modeling. 2010-03. http://www.modelica.org/ [5] Ferretti G,Magnani G,Rocco P.Simulating permanent magnet brushless motors in DYMOLA//Proceedings of the 2nd International Modelica Conference.Oberpfaffenhofen,Deutschland:The Modelica Association,2002:109-115 [6] Bengtsson P,Jansson H,Perttersson N.Development of a modelica heavy vehicle modeling library//Proceedings of the 4th International Modelica Conference.Hamburg,Deutschland:The Modelica Association,2005:467-477 [7] Casella F,Lovera M.High-accuracy orbital dynamics simulation through keplerian and equinoctial parameters//Proceedings of the 6th International Modelica Conference.Bielefeld,Deutschland:The Modelica Association,2008:505-514 [8] 吴民峰,吴义忠,周凡利,等.多领域建模语言Modelica 类型解析研究与实现[J].计算机工程与应用,2006,42(25):80-83 Wu Minfeng,Wu Yizhong,Zhou Fanli,et al.Design and implementation of type parsing for multi-domain modeling language Modelica[J].Computer Engineering and Application,2006,42(25):80-83 (in Chinese) [9] Argonne National Laboratory.MPICH2:a high performance and widely portable implementation of MPI. 2008-12. http://www.mcs.anl.gov/research/projects/mpich2/ [10] OpenMP Architecture Review Board.OpenMP application program interface 3.0. 2008-05. http://openmp.org/wp/openmp-specifications/ [11] Wolf F,Mohr B.Automatic performance analysis of hybrid MPI/OpenMP applications[J].Journal of Systems Architecture,2003,49(10/11):421-439
点击查看大图
计量
- 文章访问数: 2059
- HTML全文浏览量: 276
- PDF下载量: 601
- 被引次数: 0