How can we use FMU models of Motor and Battery Pack to simulate an EV without the Simscape toolbox?
7 次查看(过去 30 天)
显示 更早的评论
I have the Response Surface Model for the Motor which gives output as the current required which needs to be inputted into the Battery Pack FMU. Now, for the Battery pack FMU, I have the ECM for 2nd order thevenin cell model which has been scaled to a module of 36 cells each. These modules were connected in another software by Positive and Negative terminals and a closed loop circuit having a current source and voltage sensor. These options are available in the Simscape toolbox, which I currently don't have access to. Can you suggest some work around?
0 个评论
回答(1 个)
Deepak
2025-6-26
We can run EV model in Simulink using FMUs for the motor and battery without needing the Simscape toolbox. Just treat the FMUs like normal Simulink blocks. Use the FMU Import block to bring in your motor and battery FMUs, and connect them with regular signal lines. For example, if the motor FMU gives the current demand, we can send that as input to the battery FMU. The battery FMU then gives you the output voltage, which we can also send back to the motor FMU if needed. This way, we create a working loop without using any electrical components from Simscape.
To mimic the behavior of an electric circuit (which Simscape would normally handle), we can use basic Simulink blocks like Gain, Sum, Integrator, and Unit Delay to create the control or feedback logic. Also, make sure the battery’s negative terminal is tied to a reference, like a constant zero block, so the voltage is defined properly. This method keeps everything within standard Simulink and supports co-simulation by simply passing signals between the FMUs. Just be sure the solver settings and sample times are set up correctly so everything stays in sync during simulation.
Please find attached the relevant documentation for reference:
I hope this helps.
0 个评论
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!