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

Generate Schedule:File from Schedule:Compact

asked 2018-11-01 14:59:07 -0600

k's avatar

updated 2018-11-01 16:42:10 -0600

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!

edit retag flag offensive close merge delete

Comments

Sniff. Sniff sniff. I smell a Python script!

__AmirRoth__'s avatar __AmirRoth__  ( 2018-11-01 16:43:01 -0600 )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 -0600 )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 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted
5

answered 2018-11-02 20:15:28 -0600

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.

edit flag offensive delete link more

Comments

This works! Thank you!

k's avatar k  ( 2018-11-05 15:31:38 -0600 )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 -0600 )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 -0600 )edit

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

2 followers

Stats

Asked: 2018-11-01 14:59:07 -0600

Seen: 405 times

Last updated: Nov 02 '18