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 -0600

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 -0600

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 -0600 )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 -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

1 follower

Stats

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

Seen: 229 times

Last updated: Jan 27 '16