摘要
研究了基于Modelica语言的复杂机械系统统一建模平台MWorks的关键技术。在分析Modelica模型描述和Modelica标准库(MSL)结构的基础上,设计了基于Modelica语言的可视化建模系统框架,提出了基于有向无环图的MSL内存存储模式,提高了可视化建模速度;提出了基于实体句子匹配的快速图文切换算法;设计了基于句子的线性二叉树结构,实现了文本和图形编辑环境相统一的恢复操作。最后给出了MWorks系统的建模实例。
Several key technologies of the hybrid modeling platform based on Modelica language for complex machinery system MWorks was researched. After analyzing the model description of Modelica and its structure of standard library (i. e. MSL), the visual modeling framework based on Modelica was designed. And the memory storage mode of MSL based on directional graph without loop was put forward, which increases the speed of visual modeling. Then the algorithm of quick switching between text and graphics view was developed based on the matching of the entities and sentences. Line- ar binary tree structure based on sentence was implemented, which realizes the unified undo/redo operations under both text view and graphics view. Lastly, a modeling example using MWorks was presented.
出处
《中国机械工程》
EI
CAS
CSCD
北大核心
2006年第22期2391-2396,共6页
China Mechanical Engineering
基金
国家863高技术研究发展计划资助项目(2003AA001031)
国家重点基础研究发展计划资助项目(2003CB716207)
国家自然科学基金资助项目(60574053)