Causality for FMU in simscape electrical : how to separate an electrical conserving port into 2 physical or simulink signal ports to create an FMU with it.
23 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Hi everyone,
I need some help to generate FMUs of electrical systems.
i have just one resistor connected to a capacitor, both from the simscape eletrical toolbox, and i want to create an FMU of it. As FMI doesn't support acausal connections, i need to change the input and output of my system because otherwise the FMU won't be generated. The 2 components are still connected with an electrical "cable" but i need other kind of input and output ports to create the FMU and i don't know how to make them.
In other terms, i just want to create an FMU with a resistor connected to a capacitor just like the picture, and make a FMU of it, to later be able to connect this FMU with other FMU of this kind to create a bigger electrical distribution.
I was able to do this on OpenModelica thanks to this link : Using physical connectors with an FMU - Claytex
It's actually almost the same problem as : Export Simscape components to FMU - MATLAB Answers - MATLAB Central (mathworks.com)
Thanks.
0 comentarios
Respuestas (1)
Javier Gazzarri
el 1 de Ag. de 2023
Hello Enzo,
Do you want to create an FMU block for both components connected in series, or one FMU block for each of them?
In general, you can transform acausal connection to inputs and outputs using PS->Simulink converters (and their inverse) and Simscape sources and sensors. Once this is done, you encapsulate the blocks as a subsystem and generate an FMU from it.
Please let me know if this is what you were looking for.
Javier
Ver también
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!