Modelica语言采用微分方程描述系统,此外它还具备面向对象编程语言的特性,因此它不仅适用于连续系统的建模,还支持离散系统的模型架构.因此,可以将Modelica作为一种混合系统的建模语言.提出了一个Modelica语言描述的DEVS(Discrete EVent System specification离散事件系统规范)模型架构,并通过对模型的编译过程产生C++代码,获取了同时描述连续系统和离散系统建模的能力.最后给出了用Modelica语言描述的一个飞机导航控制连续-离散仿真系统的例子.%Modelica describes the system by equations, which is good to modeling for continuous system. In addition, as the feature of object-orientation, Modelica can well support the discrete system modeling architecture. As a result, Modelica is the best choice for hybrid system modeling. The paper introduces the features and specification of Modelica first. Then the DEVS (Discrete EVent System specification) model architecture in Modelica is proposed. Through the compiling process, the C+ + code is generated to support the continuous and discrete system. In the end, the example of flight navigation and control system is given.
展开▼