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

How to define start time in Energyplus models

asked 2021-01-11 12:19:01 -0500

Mohammad gravatar image

updated 2021-07-14 16:14:35 -0500

@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.

edit retag flag offensive close merge delete

Comments

1

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

Mostafa Meimand gravatar image Mostafa Meimand  ( 2021-01-11 15:07:26 -0500 )edit

Thanks @Mostafa Meimand
I'm using Python - Eppy

Mohammad gravatar image Mohammad  ( 2021-01-12 21:24:26 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
1

answered 2021-07-14 17:29:12 -0500

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.

edit flag offensive delete link more

Comments

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

Mohammad gravatar image Mohammad  ( 2021-07-15 01:31:09 -0500 )edit

Your Answer

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

Add Answer

 

Question Tools

3 followers

Stats

Asked: 2021-01-11 12:19:01 -0500

Seen: 213 times

Last updated: Jul 15