Sorry, this content is no longer available
0

How to define start time in EnergyPlus models

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

Mohammad's avatar
330
Mohammad
asked 2021-01-11 12:19:01 -0500, updated 2021-08-05 14:47:31 -0500
edit flag offensive 0 remove flag close merge delete

Comments

1

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

Mostafa Meimand's avatar Mostafa Meimand (2021-01-11 15:07:26 -0500) edit

Thanks @Mostafa Meimand
I'm using Python - Eppy

Mohammad's avatar Mohammad (2021-01-12 21:24:26 -0500) edit
add a comment see more comments

1 Answer

1

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.

Aaron Boranian's avatar
14.1k
Aaron Boranian
answered 2021-07-14 17:29:12 -0500
edit flag offensive 0 remove flag delete link

Comments

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

Mohammad's avatar Mohammad (2021-07-15 01:31:09 -0500) edit
add a comment see more comments