フィルターのクリア

Temperature varying input for outdoor temperature in refrigeration cycle

2 ビュー (過去 30 日間)
Kai Men
Kai Men 2024 年 1 月 11 日
コメント済み: Kai Men 2024 年 1 月 16 日
I am trying to model an air-conditioning system, and I need to know if it's possible to implement some sort of a temperature varying input block to simulate real-life outdoor temperature scenarios. (T_env)
I am working on the pre-made model by MathWorks, the Refrigeration Cycle for air conditioning, inside the External Environment subsystem, I was thinking if I can replace 'Air Outlet' and 'Air Inlet' with some sort of post-processed interpolated temperature series in excel format, in the seconds denomination, and let SimuLink run through those temperatures for T-env instead of a constant set at 30 degC.
  1 件のコメント
Kai Men
Kai Men 2024 年 1 月 11 日
Also, just to clarify, 'Air inlet' and 'Air Outlet' are not constant blocks, they are Reservoirs, so they have parameters. I want to set one of the parameters, 'Reservoir Temperature', to a varying temperature instead of just a constant labelled by fixed variable T_env. Is it possible to store the varying temperatures in a placeholder, and then use the placeholder's variable name inside the Reservoir parameters?
So I store the entire array or list of varying temperatures and store them inside of 'T_real_env' and then use this for my parameter in the Reservoir.

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

回答 (1 件)

Sam Chak
Sam Chak 2024 年 1 月 11 日
Yes, technically it can be done using the From Workspace block:
This block can read data from the Workspace and into into a Simulink model, providing the data as a signal at the block's output.
  1 件のコメント
Kai Men
Kai Men 2024 年 1 月 16 日
I encountered a problem where I did this, and the data I provided was a 2 dimensional matrix ( N x 2 ), however after passing it into a MATLAB Function block to set_param, the data becomes a 1 x 1, which caused an error because I tried indexing to dynamically change the temperature and relative humidity for my reservoir.
Where the 1st column acts as time in seconds, and the second column holds the value I want the parameters to change to.

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

カテゴリ

Help Center および File ExchangeProgrammatic Model Editing についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by