필터 지우기
필터 지우기

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 CenterFile Exchange에서 Programmatic Model Editing에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by