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

How to define start time in EnergyPlus models

asked 4 years ago

updated 3 years ago

@Aaron Boranian I read your comment how to start simulation at custom hour and understood/agreed that we "can't start an EnergyPlus simulation at a custom hour, it will always start at the beginning of the first day in the run period."

However, I was wondering if you could do me a favor and let me know with any potential solution to "define start time in my Energyplus model". In particular, I already wrote a (MATLAB) code to run my idf through it. In this code, I have a for-loop and I need to run my idf file starting from h to h+24 (h=1:24). In other words, I need to have results generated per hour, which entitles defining start time in the idf file.

P.S. I'm running/optimizing my model only for one day (MPC Application, runperiod= 1 day).

I truly appreciate all your continued support.

Preview: (hide)

Comments

1

which platform do you use for co-simulation between Matlab and EnergyPlus?

Mostafa Meimand's avatar Mostafa Meimand  ( 4 years ago )

Thanks @Mostafa Meimand
I'm using Python - Eppy

Mohammad's avatar Mohammad  ( 4 years ago )

1 Answer

Sort by » oldest newest most voted
1

answered 3 years ago

EnergyPlus reports results using the beginning of the timestep ("0:00" is for 12 AM until 1 AM). It sounds like your MATLAB code reports the end of the timestep (h=1 is for 12 AM until 1 AM). If your MATLAB code is hard-wired to run 24 hours, and you can start the MATLAB code at a specific time like 7 AM, then EnergyPlus will need to run a 2-day simulation even though you're really only interested in 24 hours of results.

Preview: (hide)
link

Comments

Thank you so much, Aaron. As always, you're more than helpful support is much appreciated!

Mohammad's avatar Mohammad  ( 3 years ago )

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Training Workshops

Careers

Question Tools

3 followers

Stats

Asked: 4 years ago

Seen: 423 times

Last updated: Aug 05 '21