针对Simulink模型重用到更高阶的Modelica平台上的需求,分析Simulink模型的数学本质和代码表达,以及Modelica对外部函数和外部类的支持,重用Simulink模型转换生成的S-function目标C 代码,实现Simulink模型到Modelica模型转换.
As to the requirement of reusing the Simulink models on Modelica platform, the mathematicalessence and code expression of Simulink model and the support of Modelica for external functions andexternal classes are analyzed. The Simulink model is converted to the Modelica model by reusing theS-function target C code which is generated by the Simulink model.