Simulink家用热力系统作为AC [英] Simulink home thermal system as an AC

查看:166
本文介绍了Simulink家用热力系统作为AC的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试修改房屋的热系统,以使其成为交流电而不是加热器.页面上说,如果要修改它,则需要添加冷空气输入部分并编辑恒温器.我设法修复了恒温器,现在当交流电打开(温度下降)时状态为1,而当交流电关闭时(温度升高)状态为0.

I'm trying to modify this thermal system of a house to make it for an AC instead of a heater. The page says that if I want to modify it I need to add the cold air input part and edit the thermostat. I managed to fix the thermostat and now I can get the status as 1 when the AC is on (temperature drops) and 0 when it's off (temperature rises).

我如何翻转传热方程以获得冷空气增益而不是热量增益.他们在链接中使用了一些方程式,可以按原样使用它们并翻转(t_room-t_heater)减法,还是应该使用一组完全不同的方程式.

How do I flip the heat transfer equations to get the cold air gain instead of the heat gain. They are using some equations in the link, is it okay to use them as they are and flip the (t_room-t_heater) subtraction or should I use a totally different set of equations.

这是在更改恒温器型号后作为加热器运行时的输出(我对温度(黄色)和状态(橙色)感兴趣)

This is the output when it runs as a heater after changing the thermostat model (I'm interested in the temperature (yellow) and the status(orange))

这是加热器子模型的内部结构

This is the internal structure of the heater submodel

现在,我将减法更改为troom-theater以获取冷空气,答案如下:

Now, I changed the subtraction to become troom-theater to get the cold air gain, the answer is as the following:

蓝色正弦波只是室外温度的变化. 谢谢

The blue sine wave is just the outdoor temperature variations. Thanks

推荐答案

我在设置所有初始点的sldemo_househeat_data.m文件中进行了一些更改.我更改了以下值:

I made some changes in the sldemo_househeat_data.m file that sets up all the initial points. I changed the follwing values:

% The air exiting the heater has a constant temperature which is a heater
% property. THeater = 50 deg C
THeater = 15;
% TinIC = initial indoor temperature = 20 deg C
TinIC = 26;

我还更改了交流温度的设定点,如下图所示:

I also changed the set point for the AC's temprature as shown in the figure bellow:

此外,通过将温度比较的符号与图表开头的设置点进行翻转,也可以翻转我的恒温器模型.我在继电器块中保持状态(0,1)不变,仅在加热器模型中将它们翻转,如图所示

Also, my thermostat model was flipped by flipping the sign of the temperature comparison with the set point at the beginning of the diagram. I kept the status (0,1) the same in the relay block, I only flipped them in the heater model as shown in the figure

通过这种方式,将恒温器设置的任何1减去1都将其翻转为0.这同样适用于恒温器设置的任何0.

This way, any 1 set by the thermostat is flipped into a 0 by subtracting it from 1. The same applies to any 0 set by the thermostat.

在房屋子模型中,我将温度差方程中的减法按如下方式翻转(tout-tin而不是tin-tout)

Inside the house submodel, I flipped the subtraction in the temprature difference equation as the following (tout-tin instead of tin-tout)

最后,我的AC的响应如下所示.

Finally, the response of my AC is shown as the following.

我希望这可以帮助广告谢谢

I hope this helps ad thanks

这篇关于Simulink家用热力系统作为AC的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆