Changing Thermal Liquid Properties in Simscape

2 ビュー (過去 30 日間)
Kyle Winters
Kyle Winters 2024 年 3 月 7 日
回答済み: Yifeng Tang 2024 年 3 月 11 日
I saw this thread describing how to use get_param() and set_param() to populate fluid properties:
I dont have enough reputation points to ask a follow up.
I am wondering though how to accomplish this when
get_param(gcb, 'DialogParameters')
just tells me all the things that are in the dialog box for a fluid which I can already change. Using 'ObjectParameters' doesn't seem to get me access to the parameters like density, specific heat, etc. either.
Let's say I wanted to put in new values for the matrix of thermal conductivity for water or other preselectable liquid. How might I find the right parameter to overwrite using set_param() do that?

回答 (1 件)

Yifeng Tang
Yifeng Tang 2024 年 3 月 11 日
If you'd like to manually set the properties like density, Cp, etc., the right block to use is "Thermal Liquid Settings (TL)" from the foundation library. The icon looks identical to that of the "Thermal Liquid Properties (TL)" block.
See attached simple model and script. Hope that's what you are looking for.

カテゴリ

Help Center および File ExchangeThermal Liquid Library についてさらに検索

製品


リリース

R2023a

Community Treasure Hunt

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

Start Hunting!

Translated by