Borrar filtros
Borrar filtros

Temperature varying input for outdoor temperature in refrigeration cycle

2 visualizaciones (últimos 30 días)
Kai Men
Kai Men el 11 de En. de 2024
Comentada: Kai Men el 16 de En. de 2024
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 comentario
Kai Men
Kai Men el 11 de En. de 2024
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.

Iniciar sesión para comentar.

Respuestas (1)

Sam Chak
Sam Chak el 11 de En. de 2024
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 comentario
Kai Men
Kai Men el 16 de En. de 2024
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.

Iniciar sesión para comentar.

Categorías

Más información sobre Programmatic Model Editing en Help Center y File Exchange.

Etiquetas

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by