Acausal model towards FMU subsystem integration

8 次查看(过去 30 天)
Assume a system modeled entirely with Simscape components. If I need to split this model into multiple FMUs (one per subsystem) to then integrate them later as an FMU based system model.
The question: is there any way to obtain the causality of the connetions between components automatically from Simcape?. I know this is something done by the software after compilation of the model. Is there any way to show it? this would really facilitate the FMU Export later on.
  3 个评论
CAME
CAME 2025-2-8
编辑:CAME 2025-2-8
I am using mechanical, thermal, electrical, and fluids. In general, I would need to be able to check the causality regardless of the domain since I expect to export components and/or subassemblies of multiphysics systems of one or multiple domains.
I assume that once the physical networks are implemented and compiled, the solver in the background identifies the information flux (causality), regardless of the domain. The requirement would be to check the direction of the information flowing through the physical conserving connectors between the blocks.
For example:
  • current [A] information exits the node, and voltage [V] information enters the node (+) of block x.
  • pressure enters the block port, mass flow rate exits the block port.
to name a few.
Yifeng Tang
Yifeng Tang 2025-2-10
Getting information like direction of current, voltage at the port, flow rate etc., is definitely possible as they are available in the logged Simscape results. But, here is a maybe philosophical question: does such information shows causality? For example, if the model shows a current flows into the + node of a resistor, and it's + node has a higher voltage value than the - node, what is the implied causality here? Current driving the voltage or voltage difference causing the current? For some components, like a pump with a map, or a battery with a I-V curve, this causality is even more ... unclear. Sorry I don't have an answer to your question. But I really find it interesting :)

请先登录,再进行评论。

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Variable Initialization 的更多信息

产品


版本

R2024b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by