Question-and-Answer Resource for the Building Energy Modeling Community
Get started with the Help page
Ask Your Question
1

Modelica: Using temperature sensor to measure temperature of room

asked 2020-04-28 14:22:21 -0600

sreemohan's avatar

Hi, I am trying to model a system where the temperature of the room is measured and fed into a PID to control the air flow rate of the HVAC system. I am trying to use a temperature sensor [senTem]but it is not measuring the temperature of the room[HVAC_Zone] when the initial mass flow rate is 0. I have provided the nominal mass flow rate to be 0.066kg/s. image description. I am trying to model it such that the temperature of the room increases due to the heat load and the temperature sensor measures it and depending on the difference between measured temperature and temperature, the setpoint of the Air flow rate is varied and fed into the air flow inlet [boundary]. \What am I doing wrong or missing? Any help is appreciated. Thank you

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
1

answered 2020-04-30 11:28:45 -0600

I suggest using Modelica.Thermal.HeatTransfer.Sensors.TemperatureSensor and connect it to the HeatPort of your HVAC_Zone. Would that work?

edit flag offensive delete link more

Comments

This is the right approach. The schematics that is shown above shows that there is no flow through senTem if there is no flow through the volume, so it will not be able to measure the volume's temperature.

Michael Wetter's avatar Michael Wetter  ( 2020-04-30 11:46:17 -0600 )edit

Hi Thankyou for the response. I tried your method and it has worked. Just to clarify and get my concepts right, the temperature measured by the TemperatureSensor at the HeatPort of HVAC_Zone will be the temperature of the fluid in the entire volume right?

sreemohan's avatar sreemohan  ( 2020-04-30 12:44:57 -0600 )edit
1

answered 2020-04-29 04:18:10 -0600

aubr's avatar

Hello, in the documentation for Buildings.Fluid.Sensors.TemperatureTwoPort, I read

Setting transferHeat = true is useful, for example, if the sensor is used to measure the fluid temperature in a system with on/off control on the mass flow rate. If transferHeat were false, then the sensor output T would remain constant if the mass flow rate is set to zero, and hence the controller may never switch the mass flow rate on again.

Maybe this relates to your issue here?

edit flag offensive delete link more

Comments

Hi thanks for the response. I want the temperature sensor to measure the temperature of the room which it isnt doing. In the settings for the temperature sensor I set the transferHeat=true and the TAmb= Mixingvolume.T. This setting is not working since the temperature of the mixing volume is highly varying. I need the sensor to measure the temperature of the room irrespective of the mass flow rate. Is there any way for doing that

sreemohan's avatar sreemohan  ( 2020-04-30 11:01:00 -0600 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Training Workshops

Careers

Question Tools

1 follower

Stats

Asked: 2020-04-28 14:22:21 -0600

Seen: 381 times

Last updated: Apr 30 '20