2

Generate Schedule:File from Schedule:Compact

I currently have my schedules defined as Schedule:Compact in my IDF files. I would like to automatically convert these to 8760 files suitable for use in an IDF as a Schedule:File input.

Is there a way I can use EnergyPlus to read in my IDFs containing Schedule:Compact elements and somehow generate the equivalent hourly 8760 data file for use as a Schedule:File?

Thank you!

k's avatar
57
k
asked 2018-11-01 14:59:07 -0500
__AmirRoth__'s avatar
4.4k
__AmirRoth__
updated 2018-11-01 16:42:10 -0500
edit flag offensive 0 remove flag close merge delete

Comments

Sniff. Sniff sniff. I smell a Python script!

__AmirRoth__'s avatar __AmirRoth__ (2018-11-01 16:43:01 -0500) edit

A python script would be the preferred solution - can you point me in the right direction?

I have tried using both the epquery and ladybug python modules to do this, but neither seem to have an internal representation of Schedule that would allow converting from Schedule:Compact to Schedule:File.

k's avatar k (2018-11-01 17:32:48 -0500) edit

What I meant was "you could probably write a python script to do this." Not that one already existed. Sorry.

__AmirRoth__'s avatar __AmirRoth__ (2018-11-02 09:34:17 -0500) edit
add a comment see more comments

1 Answer

5

One method I can think of is to run your simulation and report only 1 variable as:

Output:Variable,"schedule name",Schedule Value,hourly;

Then you will have "YourFileName.csv" and will be an 8760 data file. You can then use that file, after changing the name to whatever you like, as a schedule file.

rraustad's avatar
13.8k
rraustad
answered 2018-11-02 20:15:28 -0500
edit flag offensive 0 remove flag delete link

Comments

This works! Thank you!

k's avatar k (2018-11-05 15:31:38 -0500) edit

Could you confirm whether the "schedule name" stands for one of the Schedule:compact?

where will be the "YourFileName.csv" generated?

Revathi's avatar Revathi (2021-06-02 22:15:36 -0500) edit

"schedule name" is the name of any of the schedule types. "YourFileName.csv will be in the same output folder as all the results in your simulation.

rraustad's avatar rraustad (2021-06-21 13:41:20 -0500) edit
add a comment see more comments