Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using Local Weather Data for specified range with the Buildings Model in Modelica Buildings Library #4053

Open
Shalom6624 opened this issue Nov 14, 2024 · 3 comments

Comments

@Shalom6624
Copy link

Hello, I am trying to run a simulation similar to the Buildings.ThermalZones.EnergyPlus_9_6_0.Examples.SingleFamilyHouse.AirHeating model in the Modelica Buildings Library. But I wanted to use my own weather data. I have generated my EPW weather file and converted to a .mos file and successfully run the simulation. However, on trying to rerun the simulation using just a month data, I got the error below:

13219200.000 AirHeating_testing_BEEL.building: Error from EnergyPlus: GetNextEnvironment: Runperiod [mm/dd] (Start=01/01,End=12/31) requested not within Data Period(s) from Weather File
13219200.000 AirHeating_testing_BEEL.building: Error from EnergyPlus: Weather Data Period (Start=06/01/,End=06/30/)
13219200.000 AirHeating_testing_BEEL.building: Fatal from EnergyPlus: GetNextEnvironment: Program terminates due to preceding condition.

Meanwhile, I separately ran the same one month weather file using the Buildings.BoundaryConditions.WeatherData.ReaderTMY3 and it worked successfully. I also specified the runperiod in my IDF file and tested it by running a standalone simulation with EnergyPlus and it also ran successfully. So, I am unclear what is meant by the error that Runperiod [mm/dd] (Start=01/01,End=12/31) requested not within Data Period(s) from Weather File considering that I already specified my runperiod in my IDF and confirmed that it works. WOuld gladly appreciate any help on how to fix this as the weather data I need for my work is 2024 data which I cannot get annual readings for at the moment. Thanks

@mwetter mwetter transferred this issue from lbl-srg/BuildingsPy Nov 15, 2024
@mwetter
Copy link
Member

mwetter commented Nov 15, 2024

@Shalom6624 : In Spawn, the RunPeriod entry of the idf file is ignored.
Please make sure your weather file has the same structure as the original weather data file. If the problem persists, perhaps @kbenne has some insight as this error is triggered in the EnergyPlus source code.

@Shalom6624
Copy link
Author

Shalom6624 commented Nov 15, 2024

@Shalom6624 : In Spawn, the RunPeriod entry of the idf file is ignored. Please make sure your weather file has the same structure as the original weather data file. If the problem persists, perhaps @kbenne has some insight as this error is triggered in the EnergyPlus source code.

Dear Michael,

Thank you very much for your kind feedback. I have rechecked the .mos file to confirm by comparing with "C:\Users\Buildings 10.0.0\Resources\Data\BoundaryConditions\WeatherData\Validation\DecemberToJanuary.mos". Though by running mine with the ReaderTMY3 model, it ran successfully and also ran successfully in EnergyPlus, I noticed my .mos file started from 0.0 as shown below

image

While the DecemberToJanuary.mos started from the time seconds corresponding to the day of the year as shown below

image

So, I manually adjusted my start time to correspond to June 1st, 2024, 00:59, as well as 01:00 as shown below,

image

but this did not fix the issue and still gave same error from the Spawn simulation. It further caused the standalone simulation with ReaderTMY3 to fail.

@mwetter
Copy link
Member

mwetter commented Nov 20, 2024

For Spawn, it looks like weather files must start at 0.
@kbenne : Can you confirm, and if so, is this a limitation that could be removed?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants