摘要
分析了基于Modelica语言的多领域物理系统混合建模平台的功能需求,采用基于组件的系统体系结构,完全从底层开发出可视化的图形建模工具———MWorks系统.提出一种基于句子的模型数据结构,实现了基于句子的图文动态编辑与转换;提出用于存储模型层次信息的三叉树结构,实现了基于实体集的模型子部件的块表达,以及系统模型库中可重用模型(部件)的拖放式建模.最后给出了系统建模实例.
To meet the function requirements of Modelica-based hybrid modeling platform for multidomain physical system, a kind of COM-based system architecture is adopted and a totally self-developed visual graphical modeling system-MWoks is implemented. A sentence object and a kind of data structure of model object based on sentences are designed. Based on the sentences of a model, dynamic bidirectional eonvertion between graphics view (including Icon view and Diagram view) and text view of the model is realized. Also a trifurcate tree structure storing the information of the hierarchy of models is proposed. And then a block object based on the entity set representing a model's part is implemented, as well as the dragand-drop modeling from the re-usable models (i.e. components) in MSL (Modelica Standard Library) to the Diagram view of current model is realized. Finally a modeling instance on the MWorks system is given.
出处
《计算机辅助设计与图形学学报》
EI
CSCD
北大核心
2006年第1期120-124,共5页
Journal of Computer-Aided Design & Computer Graphics
基金
国家自然科学基金(60574053)
国家"八六三"高技术研究发展计划(2003AA001031)
国家重点基础研究发展规划项目(2003CB716207)