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

Trick to simulate for a leap year with weather file for "normal" year

(Related to https://unmethours.com/question/22577 where I initially posted, but this is actually a new question)

I was wondering how the CO2 concentration could raise in my classrooms during the weekends and realized that it is because I am simulating for 2020 which is a leap year, but my weather file is not describing a leap year. I use compact schedules with "Monday, Tuesdays..." or "Weekends" so from March everything got messed up.

I guess that to trick energyplus and making it believe that my weather file was written for 2020 does not make a lot of sense, it won't change the results... but I still want to do this. So I modified the weather file's header (to set the "Leap Year" flag to "Yes" and set the "Day of Week for Start Day" to the good value, for instance "Wednesday") and copied the data from February 28 to create some for February 29 because I had only 8760 entries in my weather file. Then I had to replace all the occurrences of the previous year with 2020.

This "procedure" is based on the referenced thread that is 3 years old, so my question is: is this still the right way to simulate for a leap year without having the appropriate weather file, or is there a better way?

Trick to simulate for a leap year with weather file for "normal" year

(Related to https://unmethours.com/question/22577 where I initially posted, but this is actually a new question)

I was wondering how the CO2 concentration could raise in my classrooms during the weekends and realized that it is because I am simulating for 2020 which is a leap year, but my weather file is not describing a leap year. I use compact schedules with "Monday, Tuesdays..." or "Weekends" so from March everything got messed up.

I guess that to trick energyplus and making it believe that my weather file was written for 2020 does not make a lot of sense, it won't change the results... but I still want to do this. So I modified the weather file's header (to set the "Leap Year" flag to "Yes" and set the "Day of Week for Start Day" to the good value, for instance "Wednesday") and copied the data from February 28 to create some for February 29 because I had only 8760 entries in my weather file. Then I had to replace all the occurrences of the previous year with 2020.

This "procedure" is based on the referenced thread that is 3 years old, so my question is: is this still the right way to simulate for a leap year without having the appropriate weather file, or is there a better way?