[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [EnergyPlus_Support] Re: Post processing on number of hours when room air temperature was more than 25[C]





Hi,

 

You have made a good start.  You need to introduce time and zero it when not overheating.   “ZoneTimeStep” is a special built-in variable for how long the timestep is in hours.  Here is how I would approach this

 

EnergyManagementSystem:Program,

    OverheatingCheck,        !- Name

    SET UpperLimit = 25,  !- Program Line 1

    IF T1 > UpperLimit,

            SET OverheatingRate = ZoneTimeStep,  !- Program Line 2

    Else,

SET OverheatingRate = 0.0 ,

    ENDIF;  !- A4

 

 

From: EnergyPlus_Support@xxxxxxxxxxxxxxx [mailto:EnergyPlus_Support@xxxxxxxxxxxxxxx]
Sent: Friday, February 20, 2015 3:06 AM
To: EnergyPlus_Support@xxxxxxxxxxxxxxx
Subject: Re: [EnergyPlus_Support] Re: Post processing on number of hours when room air temperature was more than 25[C]

 

 

Hello,

 

I send bellow the code to do that.

But in my case I want to develop this with the limits imposed by EN15251.

Anybody can give my an help?

 

Thanks,

António

 

!-   ===========  ALL OBJECTS IN CLASS: ENERGYMANAGEMENTSYSTEM:SENSOR ===========

 

EnergyManagementSystem:Sensor,

    T1,                      !- Name

    Thermal Zone 6,          !- Output:Variable or Output:Meter Index Key Name

    Zone Mean Air Temperature;  !- Output:Variable or Output:Meter Name

 

 

!-   ===========  ALL OBJECTS IN CLASS: ENERGYMANAGEMENTSYSTEM:PROGRAMCALLINGMANAGER ===========

 

EnergyManagementSystem:ProgramCallingManager,

    Annual Discomfort Time,  !- Name

    EndOfZoneTimestepBeforeZoneReporting,  !- EnergyPlus Model Calling Point

    OverheatingCheck;        !- Program Name 1

 

 

!-   ===========  ALL OBJECTS IN CLASS: ENERGYMANAGEMENTSYSTEM:PROGRAM ===========

 

EnergyManagementSystem:Program,

    OverheatingCheck,        !- Name

    SET UpperLimit = 25,  !- Program Line 1

    SET Temperature = T1 > UpperLimit,  !- Program Line 2

    SET OverheatingRate = Temperature;  !- A4

 

 

!-   ===========  ALL OBJECTS IN CLASS: ENERGYMANAGEMENTSYSTEM:GLOBALVARIABLE ===========

 

EnergyManagementSystem:GlobalVariable,

    OverheatingRate;         !- Erl Variable 1 Name

 

 

!-   ===========  ALL OBJECTS IN CLASS: ENERGYMANAGEMENTSYSTEM:OUTPUTVARIABLE ===========

 

EnergyManagementSystem:OutputVariable,

    Discomfort Time,         !- Name

    OverheatingRate,         !- EMS Variable Name

    Summed,                  !- Type of Data in Variable

    ZoneTimeStep;            !- Update Frequency

 

 

!-   ===========  ALL OBJECTS IN CLASS: OUTPUT:VARIABLEDICTIONARY ===========

 

Output:VariableDictionary,

    IDF,                     !- Key Field

    Unsorted;                !- Sort Option

 

 

!-   ===========  ALL OBJECTS IN CLASS: OUTPUT:ENERGYMANAGEMENTSYSTEM ===========

 

Output:EnergyManagementSystem,

    Verbose,                 !- Actuator Availability Dictionary Reporting

    Verbose,                 !- Internal Variable Availability Dictionary Reporting

    Verbose;                 !- EMS Runtime Language Debug Output Level

 



__._,_.___

Posted by: "Brent Griffith" <Brent.Griffith@xxxxxxxxxxxxxxxxxx>


Primary EnergyPlus support is found at:
http://energyplus.helpserve.com or send a message to energyplus-support@xxxxxxxx

The primary EnergyPlus web site is found at:
http://www.energyplus.gov

The group web site is:
http://groups.yahoo.com/group/EnergyPlus_Support/

Attachments are currently allowed but be mindful that not everyone has a high speed connection.  Limit attachments to small files.

EnergyPlus Documentation is searchable.  Open EPlusMainMenu.pdf under the Documentation link and press the "search" button.





__,_._,___