EMS Implementation on Outdoor Air Free Cooling

asked 2023-07-31 22:50:15 -0500

lrebello's avatar

updated 2023-08-01 12:04:38 -0500

Hello all,

So I am tring to automate a HVAC system so it can run with 100% outdoor air when outdoor ait is both below DBT of 23ºC and RH of 80%.

I tried to create a schedule for a whole year where when outdoor air is both below 23ºC and 80%, the schedule is set to 1 and when that criteria is not met the schedule is set to 0. (But looks like there is a 3 months displacement os results graph. What I set to january in my schedule happens in april on my results graph).

So I tried to write a EMS code, even though I have never done this before. I have no idea on how to test it in my Open Studio model. Does anyone know how to do it? I am using OpenStudio and EnergyPlus, (running OS version 1.6.0, OpenStudio SDK (core) version 3.6.1). (Code I write is in Picture 1)

EMS Code for OutDoorAir

I am also not sure if I called the nodes and zones accordingly in this code. There is just one ThermalZone in the model I want to test the code. Basicaly, my idea was to set two external sensors (one for Dry Bulb Temperature and one for Relative humidity) and one actuator (that should open outdoor air damper (economizer) when temperature and relative humidity is below 23ºC and 80%, respectvely) which I am not sure how to call it no the code. So the code is a sequence of two "if" and "else" that check if outdoor air temperature and relative humidity is below the criteria and set "Air_Exchange_Flow_Rate_<loopzonevariablename>" to 1 if the criteria applies and to 0 if the criteia does not apply. (Not sure if object "Air_Exchange_Flow_Rate_<loopzonevariablename>" will controll the economizer airflow. Also, with this configuration I want to supply 100% outdoor air when criteria is met and supply 0% outdoor air when criteria is not met.)

I also do not know if I need to delete anything of my airloop. (Picture 2 is my airloop on OS) AirLoop

Does anyone did that already of have any piece of advice that may help me?

Thanks a lot

edit retag flag offensive close merge delete