• 中国计算机学会会刊
  • 中国科技核心期刊
  • 中文核心期刊

J4 ›› 2015, Vol. 37 ›› Issue (08): 1540-1545.

• 论文 • 上一篇    下一篇

面向半物理仿真的陈述式模型求解方法研究

熊涛,丁建完,陈立平   

  1. (华中科技大学国家CAD支撑软件工程技术研究中心,湖北 武汉 430074)
  • 收稿日期:2014-06-27 修回日期:2014-10-11 出版日期:2015-08-25 发布日期:2015-08-25
  • 基金资助:

    国家科技支撑计划资助项目(2012BAF16G02)

A method for solving semi-physical
simulation declarative models  

XIONG Tao,DING Jianwan,CHEN Liping   

  1. (National CAD Support Software Engineering Research Center,
    Huazhong University of Science and Technology,Wuhan 430074,China)
  • Received:2014-06-27 Revised:2014-10-11 Online:2015-08-25 Published:2015-08-25

摘要:

通过符号操作和数值计算相结合,提出了一种求解半物理仿真模型的新方法。为了满足半物理仿真对实时性的要求,在模型编译阶段将代表数值积分的隐式离散公式插入到仿真模型中,增广后的方程系统伴随着非线性方程的出现,需要在积分的每一步对这些非线性方程进行迭代求解,而求解非线性方程的时间复杂度随维度的变大成指数增加,因此引入代数环撕裂减小代数方程块耦合变量数,以满足实时求解对粒度的要求。最后通过实例对文中提出的方法进行了验证。

关键词: 半物理仿真, 微分代数离散, 代数环撕裂, 实时积分

Abstract:

We propose a new method for solving semi-physical simulation models using a mixed symbolic and numeric approach. In order to meet the real-time requirement of semi-physical simulations, implicit discretization formulae representing the numerical integration algorithm are inserted into the DAEs symbolically at compile stage. Then nonlinear equations will appear in the augmented equation system and all these nonlinear equations should be solved together at each integration step. In order to meet the fine granularity required for solving the models in real-time, tearing algebraic loop is introduced. After that the dimensions of nonlinear equation blocks can be reduced as the time complexity of calculating nonlinear equations increases exponentially with the growth of dimensions. Finally, an example is given to show that the proposed method is not only easy to implement but also efficient.

Key words: semi-physical simulation;discrete DAEs;tearing algebraic loops;real-time integration