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

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

Comments

2

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
1

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
1

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
1

@rpg777 Fix it!

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

@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

How do I get the CSV files? I have tried using the reporting measure ExportScheduleCSV and schedule_profile_report but it does not export the dimming schedules created by Radiance.

edixon16's avatar edixon16  ( 2016-01-21 17:17:50 -0500 )edit
1

@Julien Marrec per your request, my profile pic has been updated to yet another image of Not Me.

rpg777's avatar rpg777  ( 2016-01-21 19:43:50 -0500 )edit

@edixon16, yes, the Radiance-created lighting schedules are generated on the fly by that Ruby script I linked to, so you can't request them as an output variable or as part of a report measure, unfortunately. You could write them out yourself, though. The new schedule is created here, as an OpenStudio object. You could write it out as is, or to CSV or json, and then push it into other models. Does this make sense?

rpg777's avatar rpg777  ( 2016-01-21 20:00:13 -0500 )edit

Yes, that makes sense now. I just started using OS a few months ago and have yet to create or modify my own measures so I may have to wait for this to be implemented. Although I am finding the solution to a lot of questions posted on here is usually creating a measure so I might have to start learning how to sooner rather than later.

edixon16's avatar edixon16  ( 2016-01-22 10:13:10 -0500 )edit
1

Measures are what makes OS great. And it's really not that complicated, you can start by finding a measure that does soemthing similar and modify it slightly to achieve your goal. Doing a quick beginner tutorial on ruby is probably not a bad idea either

Julien Marrec's avatar Julien Marrec  ( 2016-01-22 10:24:31 -0500 )edit

I was able to generate a csv file of the daylighting schedules. I tried importing an IDF with the Schedule:File objects I need for each schedule with both OS and the SketchUp plugin but it appears that this type of schedule can't be imported. Any suggestions for importing schedules to OS from a csv?

edixon16's avatar edixon16  ( 2016-01-23 22:11:59 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
1

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

Comments

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

Training Workshops

Careers

Question Tools

1 follower

Stats

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

Seen: 498 times

Last updated: Jan 21 '16