Unmet Hours - RSS feedhttp://unmethours.com/questions/Question-and-Answer Resource for the Building Energy Modeling CommunityenThu, 21 May 2020 13:12:40 -0500How to implement subroutine to calculate mean of daily recorded attributes every 3 month?http://unmethours.com/question/44257/how-to-implement-subroutine-to-calculate-mean-of-daily-recorded-attributes-every-3-month/I a new to energyplus. I am running a code to estimate min Lux every day. I want to use subroutine to calculate mean of these recorded daily min lux every quarter. It means that I want to run the code for whole year and at the end I just want to receive 4 output which are the mean of min lux for each quarter.
your help is highly appreciated.Sun, 10 May 2020 11:05:24 -0500http://unmethours.com/question/44257/how-to-implement-subroutine-to-calculate-mean-of-daily-recorded-attributes-every-3-month/Answer by Ag for <p>I a new to energyplus. I am running a code to estimate min Lux every day. I want to use subroutine to calculate mean of these recorded daily min lux every quarter. It means that I want to run the code for whole year and at the end I just want to receive 4 output which are the mean of min lux for each quarter. </p>
<p>your help is highly appreciated.</p>
http://unmethours.com/question/44257/how-to-implement-subroutine-to-calculate-mean-of-daily-recorded-attributes-every-3-month/?answer=44563#post-id-44563You have to code it in Erl through EMS EnergyPlus class objects.
You should use a TrendAevrage variable on your min values.
See below a screenshot from EMS ApplicationGuide, EnergyPlus Documentation
![image description](/upfiles/15900847549640127.png)Thu, 21 May 2020 13:12:40 -0500http://unmethours.com/question/44257/how-to-implement-subroutine-to-calculate-mean-of-daily-recorded-attributes-every-3-month/?answer=44563#post-id-44563