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

Openstudio Measure structure

asked 2016-01-27 11:55:52 -0500

ngkhanh's avatar

Hello, I want to make both OS model measure : OpenStudio::Ruleset::ModelUserScript and OpenStudio::Ruleset::WorkspaceUserScript in one .rb file. May i do like this or need to separate two difference things ?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
5

answered 2016-01-27 13:24:16 -0500

You need to make two separate measures, each with its own directory and file structure. Check out the measure writing guide for more information.

edit flag offensive delete link more

Comments

3

An example of two measures that work together as an OS and E+ measure pair, check out https://github.com/NREL/OpenStudio-PT... and https://github.com/NREL/OpenStudio-PT....

The OS measure gets the necessary data and passes it to the E+ measure thru a json file and the E+ measure inserts the EMS code into the IDF.

BrianLBall's avatar BrianLBall  ( 2016-01-27 13:53:12 -0500 )edit

Thank anyway 2 different .rb are necessary. Need to make them work separately first.

ngkhanh's avatar ngkhanh  ( 2016-01-27 14:56:44 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Careers

Question Tools

1 follower

Stats

Asked: 2016-01-27 11:55:52 -0500

Seen: 215 times

Last updated: Jan 27 '16