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

OpenStudio and Radiance lighting schedule export

asked 2016-01-21 10:18:38 -0500

edixon16's avatar

updated 2016-01-21 10:22:12 -0500

Is there a way to apply the lighting schedules that are created by Radiance from one iteration to another? In other words, I have a model that has the envelope finalized, the only modifications I am making are to HVAC equipment. I could save a lot of time, and hard drive space, by running my first simulation with Radiance and then using the same lighting schedules created by that simulation in later simulations, instead of running the radiance simulation every single time I want to see the impact of changing a non-daylighting related parameter. Is this possible?

This would also be helpful for when I need to make modifications to the .idf file that I cannot make in OpenStudio. I would then be able to run a simulation directly in E+ with the Radiance lighting schedules.

edit retag flag offensive close merge delete



You could always output the schedules to a file (csv or json) when running the Radiance measure and reimport them and apply to model (openstudio measure) before running the simulation.

Julien Marrec's avatar Julien Marrec  ( 2016-01-21 10:21:57 -0500 )edit

Julien's point is well taken. The OpenStudio Radiance measure does save the shade schedules to CSV, but not the lighting schedules. Can I get a feature request up in here?

rpg777's avatar rpg777  ( 2016-01-21 11:27:17 -0500 )edit

I have another feature request: could you update your picture to another john doe please?

Julien Marrec's avatar Julien Marrec  ( 2016-01-21 11:41:25 -0500 )edit

@rpg777 Fix it!

Jason DeGraw's avatar Jason DeGraw  ( 2016-01-21 13:23:52 -0500 )edit

@edixon16, I'm sure the measure mavens here could point you to something more concrete, but the general idea is you could write a custom measure that reads in your CSV and your model, gets the schedule(s) you wish to replace or update, and then applies them as a series of "OS:Schedule:FixedInterval" objects. Have a look at this script for sample code.

rpg777's avatar rpg777  ( 2016-01-21 14:26:48 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2016-01-21 10:56:54 -0500

Chris Jones's avatar

I recently discovered that a schedule can be imported directly into the .idf by defining the schedule in a .csv file then specifying the name of the .csv file in the .idf. The .csv file I used is one row per hour. My example is an equipment schedule defined in the .idf: Schedule:File, Art_Class_Flr_2_Kiln_Sch, !- Name Fraction, !- Schedule Type Limits Name Kiln_Sch.csv, !- File Name 5, !- Column Number 1, !- Rows to Skip at Top 8760, !- Number of Hours of Data Comma; !- Column Separator

The .csv is defined: Count Month Day Hour Sec

1 1 1 1 0

Note, there is no blank row in the .csv file but I can't get the numbers to appear on the row below the header row without the blank in this answer.

edit flag offensive delete link more


Thanks Chris. I would like to import the csv file schedules into OpenStudio rather than E+. Is this possible?

edixon16's avatar edixon16  ( 2016-01-25 12:09:45 -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

1 follower


Asked: 2016-01-21 10:18:38 -0500

Seen: 481 times

Last updated: Jan 21 '16