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

Revision history [back]

click to hide/show revision 1
initial version

EMS failed in changing actuator

I'm using EnergyManagementSystem in EnergyPlus for research. For now, I'm trouble in modeling. I was trying to open the window, operate the fan and activate the air conditioner according to the indoor thermal situation and outdoor situation. When my model include AirflowNetwork, ZoneHVAC:PacakagedTerminalHeatPump and ZoneHVAC:OutdoorAirUnit,EMS failed to change the opening factor and availability schedule. (the fan flow rate has not been test yet). I tried to debug with simple model by just changing the opening factor and found out that even though the EMS worked but the opening factor number was empty. Here are part of line from my .edd file:

WORKING_TIME_NEW,Line 1,SET LOCHOUR = HOUR,17.000000, Occurrence info=FOUR, 04/14 17:04 - 17:05
WORKING_TIME_NEW,Line 2,SET LOCDAYOFWEEK=DAYOFWEEK,6.000000, Occurrence info=FOUR, 04/14 17:04 - 17:05
WORKING_TIME_NEW,Line 3,IF DAYOFWEEK==1 || DAYOFWEEK==7,0.0, Occurrence info=FOUR, 04/14 17:04 - 17:05
WORKING_TIME_NEW,Line 6,ELSEIF HOUR<9 || HOUR>=18,0.0, Occurrence info=FOUR, 04/14 17:04 - 17:05
WORKING_TIME_NEW,Line 9,ELSEIF HOUR==9 && MINUTE<=5,0.0, Occurrence info=FOUR, 04/14 17:04 - 17:05
WORKING_TIME_NEW,Line 12,ELSEIF HOUR==9 && MINUTE>5,0.0, Occurrence info=FOUR, 04/14 17:04 - 17:05
WORKING_TIME_NEW,Line 15,ELSEIF HOUR>=10 && HOUR<=17,1.000000, Occurrence info=FOUR, 04/14 17:04 - 17:05
WORKING_TIME_NEW,Line 16,SET OPENING_FACTOR=0.5,0.500000, Occurrence info=FOUR, 04/14 17:04 - 17:05
WORKING_TIME_NEW,Line 17,SET LOCOPENING_FACTOR5=OPENING_FACTOR,, Occurrence info=FOUR, 04/14 17:04 - 17:05
WORKING_TIME_NEW,Line 18,ENDIF,, Occurrence info=FOUR, 04/14 17:04 - 17:05

In Line 16 the Opening_Factor was set to 0.5, while in Line 17 the value of Opening_Factor was empty. I don't know what to do now.

EMS failed in changing actuator

I'm using EnergyManagementSystem in EnergyPlus for research. For now, I'm trouble in modeling. I was trying to open the window, operate the fan and activate the air conditioner according to the indoor thermal situation and outdoor situation. When my model include AirflowNetwork, ZoneHVAC:PacakagedTerminalHeatPump and ZoneHVAC:OutdoorAirUnit,EMS failed to change the opening factor and availability schedule. (the fan flow rate has not been test yet). I tried to debug with simple model by just changing the opening factor and found out that even though the EMS worked but the opening factor number was empty. Here are part of line lines from my .edd file:

WORKING_TIME_NEW,Line 1,SET LOCHOUR = HOUR,17.000000, Occurrence info=FOUR, 04/14 17:04 - 17:05
WORKING_TIME_NEW,Line 2,SET LOCDAYOFWEEK=DAYOFWEEK,6.000000, Occurrence info=FOUR, 04/14 17:04 - 17:05
WORKING_TIME_NEW,Line 3,IF DAYOFWEEK==1 || DAYOFWEEK==7,0.0, Occurrence info=FOUR, 04/14 17:04 - 17:05
WORKING_TIME_NEW,Line 6,ELSEIF HOUR<9 || HOUR>=18,0.0, Occurrence info=FOUR, 04/14 17:04 - 17:05
WORKING_TIME_NEW,Line 9,ELSEIF HOUR==9 && MINUTE<=5,0.0, Occurrence info=FOUR, 04/14 17:04 - 17:05
WORKING_TIME_NEW,Line 12,ELSEIF HOUR==9 && MINUTE>5,0.0, Occurrence info=FOUR, 04/14 17:04 - 17:05
WORKING_TIME_NEW,Line 15,ELSEIF HOUR>=10 && HOUR<=17,1.000000, Occurrence info=FOUR, 04/14 17:04 - 17:05
WORKING_TIME_NEW,Line 16,SET OPENING_FACTOR=0.5,0.500000, Occurrence info=FOUR, 04/14 17:04 - 17:05
WORKING_TIME_NEW,Line 17,SET LOCOPENING_FACTOR5=OPENING_FACTOR,, Occurrence info=FOUR, 04/14 17:04 - 17:05
WORKING_TIME_NEW,Line 18,ENDIF,, Occurrence info=FOUR, 04/14 17:04 - 17:05

In Line 16 the Opening_Factor was set to 0.5, while in Line 17 the value of Opening_Factor was empty. I don't know what to do now.

Addition: Here is the program WORKING_TIME_NEW. It's the only program in EMS and the calling point is 'BeginTimestepBeforPredictor'. OPENING_FACTOR is the actuator of a window. LOCOPENING_FACTOR5 is a variable for debugging to see if the opening factor was changed by EMS correctly.

working_time_New,        !- Name
    Set locHour = Hour,      !- Program Line 1
    Set locDayofWeek=DayofWeek,  !- Program Line 2
    IF DayofWeek==1 || DayofWeek==7,  !- A4
    SET Opening_Factor=0,    !- A5
    Set locOpening_Factor1=Opening_Factor,  ! echo out for debug
    ELSEIF Hour<9 || Hour>=18,  !- A7
    SET Opening_Factor=0,    !- A8
    Set locOpening_Factor2=Opening_Factor,  ! echo out for debug
    ELSEIF Hour==9 && Minute<=5,  !- A10
    SET Opening_Factor=0.5,  !- A11
    Set locOpening_Factor3=Opening_Factor,  ! echo out for debug
    ELSEIF Hour==9 && Minute>5,  !- A13
    SET Opening_Factor=0.5,  !- A14
    Set locOpening_Factor4=Opening_Factor,  ! echo out for debug
    ELSEIF Hour>=10 && Hour<=17,  !- A16
    SET Opening_Factor=0.5,  !- A17
    Set locOpening_Factor5=Opening_Factor,  ! echo out for debug
    ENDIF;                   !- A19

EMS failed in changing actuator

I'm using EnergyManagementSystem in EnergyPlus for research. For now, I'm trouble in modeling. I was trying to open the window, operate the fan and activate the air conditioner according to the indoor thermal situation and outdoor situation. When my model include AirflowNetwork, ZoneHVAC:PacakagedTerminalHeatPump and ZoneHVAC:OutdoorAirUnit,EMS failed to change the opening factor and availability schedule. (the fan flow rate has not been test yet). I tried to debug with simple model by just changing the opening factor and found out that even though the EMS worked but the opening factor number was empty. Here are part of lines from my .edd file:

WORKING_TIME_NEW,Line 1,SET LOCHOUR = HOUR,17.000000, Occurrence info=FOUR, 04/14 17:04 - 17:05
WORKING_TIME_NEW,Line 2,SET LOCDAYOFWEEK=DAYOFWEEK,6.000000, Occurrence info=FOUR, 04/14 17:04 - 17:05
WORKING_TIME_NEW,Line 3,IF DAYOFWEEK==1 || DAYOFWEEK==7,0.0, Occurrence info=FOUR, 04/14 17:04 - 17:05
WORKING_TIME_NEW,Line 6,ELSEIF HOUR<9 || HOUR>=18,0.0, Occurrence info=FOUR, 04/14 17:04 - 17:05
WORKING_TIME_NEW,Line 9,ELSEIF HOUR==9 && MINUTE<=5,0.0, Occurrence info=FOUR, 04/14 17:04 - 17:05
WORKING_TIME_NEW,Line 12,ELSEIF HOUR==9 && MINUTE>5,0.0, Occurrence info=FOUR, 04/14 17:04 - 17:05
WORKING_TIME_NEW,Line 15,ELSEIF HOUR>=10 && HOUR<=17,1.000000, Occurrence info=FOUR, 04/14 17:04 - 17:05
WORKING_TIME_NEW,Line 16,SET OPENING_FACTOR=0.5,0.500000, Occurrence info=FOUR, 04/14 17:04 - 17:05
WORKING_TIME_NEW,Line 17,SET LOCOPENING_FACTOR5=OPENING_FACTOR,, Occurrence info=FOUR, 04/14 17:04 - 17:05
WORKING_TIME_NEW,Line 18,ENDIF,, Occurrence info=FOUR, 04/14 17:04 - 17:05

In Line 16 the Opening_Factor was set to 0.5, while in Line 17 the value of Opening_Factor was empty. I don't know what to do now.

Addition: Here is the program WORKING_TIME_NEW. program WORKING_TIME_NEW. It's the only only program in EMS and the calling point is 'BeginTimestepBeforPredictor'. OPENING_FACTOR is the actuator of a window. LOCOPENING_FACTOR5 is a variable for debugging to see if the opening factor was changed by EMS correctly.

working_time_New,        !- Name
    Set locHour = Hour,      !- Program Line 1
    Set locDayofWeek=DayofWeek,  !- Program Line 2
    IF DayofWeek==1 || DayofWeek==7,  !- A4
    SET Opening_Factor=0,    !- A5
    Set locOpening_Factor1=Opening_Factor,  ! echo out for debug
    ELSEIF Hour<9 || Hour>=18,  !- A7
    SET Opening_Factor=0,    !- A8
    Set locOpening_Factor2=Opening_Factor,  ! echo out for debug
    ELSEIF Hour==9 && Minute<=5,  !- A10
    SET Opening_Factor=0.5,  !- A11
    Set locOpening_Factor3=Opening_Factor,  ! echo out for debug
    ELSEIF Hour==9 && Minute>5,  !- A13
    SET Opening_Factor=0.5,  !- A14
    Set locOpening_Factor4=Opening_Factor,  ! echo out for debug
    ELSEIF Hour>=10 && Hour<=17,  !- A16
    SET Opening_Factor=0.5,  !- A17
    Set locOpening_Factor5=Opening_Factor,  ! echo out for debug
    ENDIF;                   !- A19