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 5 years ago

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

Preview: (hide)

2 Answers

Sort by » oldest newest most voted
1

answered 5 years ago

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

Preview: (hide)
link

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  ( 5 years ago )

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  ( 5 years ago )
1

answered 5 years ago

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?

Preview: (hide)
link

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  ( 5 years ago )

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: 5 years ago

Seen: 478 times

Last updated: Apr 30 '20