Is it possible to pass time series vectors into simscape blocks for block characterization?

1 回表示 (過去 30 日間)
Thilo Krause
Thilo Krause 2020 年 8 月 3 日
コメント済み: Vasco Lenzi 2020 年 8 月 5 日
I am building a system with simscape fluid blocks. To characterize the fluid blocks, for example a controlled pressure source block, i built another system in simulink that calculates these parameters, like the pressure differential in my example. The calculated pressure differential is no fixed variable but changes within the simulation of my simulink model. So far i only managed to pass a constant variable into the simscape blocks which would lead to a static simscape model.
Is there a possibility to pass the vector containing delta_p and the time into the simscape block so that the dynamics will be considered for the simulation of the simscape model?
Thank you in advance.

回答 (1 件)

Vasco Lenzi
Vasco Lenzi 2020 年 8 月 5 日
Hi Thilo
Can you not simply connected your subsystem output to the controlled pressure source using a Simulink-PS converter?
Here a screenshot of what I mean:
  2 件のコメント
Thilo Krause
Thilo Krause 2020 年 8 月 5 日
Thanks for your answer. Your suggestion should work for my example with the controlled pressure source. But i have other blocks in my system, for example a flow resistance block, which does not have a port for a physical signal. The nominal pressure drop in this block should also not be a constant. Do you know a possibility to solve this?
Vasco Lenzi
Vasco Lenzi 2020 年 8 月 5 日
Hi Thilo
you could replace the flow resistance block with a controlled pressure source going against the flow, to represent a pressure drop, and you then feed any profile to the pressure source.
Alternatively, you can change the underlying code of the flow resistance valve and create your own component with an input port instead of a fix parameter. Check the documentation for more details on Simscape Language and component customization. This should be failry straightforward to implement if you dig a bit in the documentation:

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeFoundation and Custom Domains についてさらに検索

製品


リリース

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by