Changing Simscape Block Properties during simulation

3 ビュー (過去 30 日間)
Christian
Christian 2014 年 1 月 14 日
コメント済み: Christian 2014 年 1 月 16 日
Hi MATLAB Community, I'm trying to build a thermal model using Simscape Blocks. During the simulation I'm constantly calculating the heat transfer constant (htc) and want to use this calculated constant for my convection blocks. I tried to export the htc as variable into Workspace and use this variable in the convection blocks but it seems like the block only queries the variables when the simulation starts.
Does someone know how I could solve this problem?
I'm using Simulink 2011b so unfortunately the thermal liquid library isn't available.
Thanks in advance Christian
  1 件のコメント
Christian
Christian 2014 年 1 月 15 日
It seems like this problem is much bigger than I thought. Does no one have an idea for a workaround?

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

採用された回答

Christian
Christian 2014 年 1 月 16 日
Using the Custom Block worked well.
Thanks Christian

その他の回答 (1 件)

Ryan G
Ryan G 2014 年 1 月 15 日
Depending on your implementation this may work (post a picture of what you've got or upload a model for better answer).
You can use a lookup table (see physical signals library) connected to an inport of a custom simscape block that performs this calculation. Often, with simscape, you can view the block source. This allows you to customize a block beyond than what the default does.
Which block is giving you this problem right now?
  2 件のコメント
Christian
Christian 2014 年 1 月 15 日
編集済み: Christian 2014 年 1 月 16 日
hi I wanted to change the heat transfer coefficient in a convectiv heat transfer block but I may have found a solution I already googled a lot but now i found somehthing ( CostumeBlock ) I'm going to test it tomorrow
Christian
Christian 2014 年 1 月 16 日
Thanks for your Answer. I'm going to test your way for times when there isn't a ready to download custom block.

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

カテゴリ

Help Center および File ExchangeCreating Custom Components and Libraries についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by