Convert Simulink Model into Dymola
显示 更早的评论
Hey guys,
I have a problem. I have to convert my Matlab/Simulink models to Dymola.
I have seen using a FMI but I don't know how to do it. So if someone could help me it must be fine.
Thank you for your answer!
5 个评论
Sanjal C C
2018-4-5
Hi guys i wanted to convert dymola to simulink.can anyone please help me
Gabriel Delcros
2018-4-5
Sanjal C C
2018-4-9
移动:Walter Roberson
2026-10-23
Is there a possibility to convert the Dymola model to a S-function in Simulink? If so how should I do that?
mouna fradi
2018-4-10
I have the same problem, ! I need to convert a model in simulink to a model in Dymola
Henry
2026-10-22
Answer from Simulink Copilot
There is no general one-click conversion from MATLAB/Simulink models to native Dymola/Modelica models. Typical approaches are:
FMI co-simulation
Export the Simulink model as an FMU using an FMI-compatible exporter.
Import the FMU into Dymola.
This preserves Simulink execution rather than translating the model into Modelica source.
Manual Modelica redevelopment
Recreate the model using Dymola/Modelica components.
Translate MATLAB algorithms into Modelica equations or functions.
Rebuild Simulink control logic, discrete states, lookup tables, and solver behavior.
Validate outputs against the original model.
Hybrid workflow
Keep complex Simulink control logic as an FMU.
Implement the physical plant in Dymola.
Exchange signals through FMI co-simulation.
For the reverse direction, Simulink provides an FMU Import block for loading FMUs generated by tools such as Dymola: Import Co-Simulation FMU into Simulink
For your open model untitled, first determine whether you need a Dymola-runnable FMU or editable Modelica source code. The FMU route is usually faster; source-code conversion requires substantial manual restructuring and verification.
回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Simulink Coder 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!